Mike的分享空间
date: 2016.05.26; modification:2016.08.03
目录:
apt-get install dante-server
首先备份/etc/danted.conf, 然后将其内容替换为:
logoutput: /var/log/danted.log
internal: 0.0.0.0 port = 1080
# 这里external为代理服务器上访问外网的网卡的IP.
external: 172.16.5.90
method: username none
user.privileged: proxy
user.notprivileged: nobody
user.libwrap: nobody
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
}
netstat -lnp | grep 1080
netstat -anp | grep 1080