安装
1
| apt-get install dante-server
|
配置
编辑/etc/danted.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| logoutput: stderr internal: 0.0.0.0 port = 1080 external: eth0
socksmethod: username clientmethod: none
user.privileged: root user.unprivileged: nobody
client pass { from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0 }
socks pass { from: 0.0.0.0/0 to: 0.0.0.0/0 }
|
重启
1
| systemctl restart danted
|
查看状态,启动成功即可
创建验证用户
该种方式使用系统用户进行验证,当然也可以使用其他方式,但很多登陆器都是使用用户名密码登录,所以创建一个不可登录系统的用户
1 2
| useradd -r -s /bin/false your_dante_user passwd your_dante_user
|
然后就可以愉快的使用啦!
参考