Ubuntu安装Socks代理dante

chao 2015-12-15 23:42 CentOS&Ubuntu 抢沙发 7080IT人生
socks代理有很多,之前有提到过ss5,今天给大家介绍一款更容易安装和配置的dante-server,
也是是一个不错的socks4/5代理服务器软件。

1、使用apt-get安装 ,ubuntu自带,可以直接安装
apt-get install dante-server

提示:如果安装出错  就先升级一下系统源
apt-get install update

2、如果你使用的是Ubuntu 64位系统,执行以下操作:
cd /lib/x86_64-linux-gnu/
ln -s libc.so.6 libc.so

3、添加一个代理使用用户
useradd socks5test
passwd  qwer1234

4、禁止添加到用户socks5test登录系统(安全考虑)
vi /etc/passwd
将socks5test的shell改成 /bin/false

5、配置danted.conf

vi /etc/danted.conf

输入以下内容(原来danted.conf的内容都不要):

logoutput: /var/log/sockd.log
internal: eth0 port = 10080   //端口
external: eth0
method: username
clientmethod: none
user.privileged: root
user.notprivileged: proxyuser   //帐号
user.libwrap: nobody
compatibility: sameport
compatibility: reuseaddr
extension: bind
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp
}

wq

6、启动dante-server
/etc/init.d/danted start

7、查看是否监听成功:
netstat -anp | grep 10080

8、开机自动启动服务
vi /etc/rc.local
/etc/init.d/danted start
service danted restart
正文部分到此结束

版权声明:除非注明,本文由( chao )原创,转载请保留文章出处

本文链接:Ubuntu安装Socks代理dante

继续浏览:Socks

分享文章:QQ空间腾讯微博新浪微博网易微博人人网开心网腾讯朋友百度搜藏

CentOS/Ubuntu安装Socks代理kingate
CentOS安装Socks代理dante