Linux · 2016-12-02

dante socks5代理 多IP出口

wget https://www.inet.no/dante/files/dante-1.3.2.tar.gz
./configure && make && make install
/usr/local/sbin/sockd -f /your_path/danted.conf -D

#danted.conf

internal: $IP port = $port
external: $IP
external.rotation: same-same
#method: username none #anonymous
method: username #username and password with OS
user.privileged: root
user.notprivileged : nobody
logoutput: /var/log/danted.log
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0 port gt 1023
command: bind
log: connect disconnect
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: connect udpassociate
log: connect disconnect
}
block {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error
}