Dante搭设简易socks5代理服务器
Debian, Linux February 5th, 2006
ok,第一步当然是先安装啦(使用的系统为Debian)~
1 | apt-get install dante-server |
然后,就可以开始进行设置了…
因为个人懒得设太多限制,所以设成了可以匿名访问,编辑 dante 的配置文件
1 | vi /etc/danted.conf |
加入
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | internal: eth0 port = 1080 external: ppp0 method: username none user.notprivileged: nobody logoutput: /var/log/danted.log #log save as /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 } |
保存后重新启动 dante 服务即可
#/etc/init.d/danted restart
到了这步,一个简单的匿名连接 socks5 服务器就架设好了.
如果想多加些限制,可以继续修改 danted.conf 文件,或者修改 iptables…反正我是懒得继续折腾了…