ubuntu通过danted搭建socks5代理

ubuntu通过danted搭建socks5代理服务端配置转自:https://blog.csdn.net/qq_29663071/article/details/53337975客户端使用proxifier_3.211.安装dante-serverapt-getinstalldante-server2.修改配置文件:备份原配置文件mv/etc/danted.conf/etc/danted.conf.bak新建配置文件touch/e…

大家好,欢迎来到IT知识分享网。

服务端配置转自:https://blog.csdn.net/qq_29663071/article/details/53337975(过时)

1.4.2版本参考How to Set Up Dante Proxy for Private Connections on Ubuntu 20.04 | DigitalOcean

客户端使用proxifier_3.21

1.安装dante-server

apt-get install dante-server

 

2.修改配置文件:
备份原配置文件

mv /etc/danted.conf /etc/danted.conf.bak

新建配置文件

touch /etc/danted.conf
nano /etc/danted.conf

匿名配置内容

logoutput: /var/log/danted.log
internal: 你的内网IP地址 port = 1080
external: 你的内网IP地址
method: username none
user.privileged: proxy
user.notprivileged: nobody
user.libwrap: nobody
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
}

3.创建log文件夹
mkdir /var/log/sockd

4.启动Dante
/etc/init.d/danted start
 

5.检测是否启动成功
netstat -anp | grep 1080
 

用户连接后查看连接情况

开启用户身份验证

sudo nano /etc/danted.conf

logoutput: /var/log/danted.log
internal: 192.168.237.25 port = 8001
external: 192.168.237.25
method: username  #none
user.privileged: root
user.notprivileged: 用户名(注意前面的空格。。。。)
user.libwrap: nobody
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
        command: bind connect udpassociate
        log: error # connect disconnect iooperation
        method: username
}
block {

from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect error

}

可以使用useradd指令添加一个用户 如danted

然后设置密码passwd danted

 

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/24068.html

(0)

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

关注微信