1.安装 dante-server
apt-get install dante-server
修改配置文件
备份配置文件
mv /etc/danted.conf /etc/danted.conf.bak
新建配置文件
vim /etc/danted.conf
内容如下:
#ifconfig 查看网卡, port 设置为自己想要的端口 ##internal 表示进口 ip 设置。这里可以是网卡名,也可以是外网 ip internal: eth0 port = 1080 #填写外网 IP external: 123.123.123.123 #method 加入 none 可以实现匿名代理 method: username none clientmethod: none user.privileged: root 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 protocol: tcp udp }
启动 Dante
/etc/init.d/danted start
检测是否启动成功
netstat -anp | grep 1080
登陆是用本机用户名和密码即可。建议将用户的 shell 设置为 nologin