Ubuntu下socks代理dante-server安装与配置

date: 2016.05.26; modification:2016.08.03

目录:

1 安装

apt-get install dante-server

2 配置

首先备份/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
}

3 检测是否启动成功

netstat -lnp | grep 1080

4 用户连接后查看连接情况

netstat -anp | grep 1080