ubuntu复用danted匿名socks5服务器

1 2 3 4 5 6 7 8 9 10.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cat /etc/danted.conf
 
logoutput: /var/log/dante.log
 
internal: eth0 port = 1080
 
external: tun0
 
#external.rotation: route

socksmethod: username none
 
user.privileged: privoxy
 
user.notprivileged: nobody
 
user.libwrap: nobody
 
client pass {
 
    from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0
 
    log: connect disconnect error
 
}
 
#pass {

#    from: 0.0.0.0/0 to: 0.0.0.0/0 port gt 1023

#    command: bind

#    log: connect disconnect

#}

socks pass {
 
    from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0
 
    protocol: tcp udp
 
#    command: connect udpassociate

    log: connect disconnect error
 
}
 
#block {

#    from: 0.0.0.0/0 to: 0.0.0.0/0

#    log: connect error

#}