Ubuntu配置socket5代理服务器

                                  配置socket5代理服务器

1. 安装dante-server

apt-get install dante-server

2. 创建代理用户

2.1 创建组

groupadd proxy

2.2 创建用户

useradd ss5 -g proxy

2.3 设置密码

passwd ss5

3. 禁止ss5登录

编辑 

/etc/passwd

 在ss5用户那行后增加: 

/bin/false

4. 编辑配置文件

4.1 备份原配置文件

mv /etc/danted.conf /etc/danted.conf.back

4.2 增加新配置文件

vim /etc/danted.conf

将如下内容复制到文件并保存

logoutput: /var/log/sockd.log
internal: eth0 port = 65522
external: eth0
method: username
clientmethod: none
user.privileged: root
user.notprivileged: ss5
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!

用户名(注意前面的空格。。。。)

4.3 启动代理服务

/etc/init.d/danted start

4.4 重启代理服务

/etc/init.d/danted restart

5. 检测是否成功

netstat -anp | grep 65522

  • 0
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值