Socks5搭建教程

安装Dante-Server:

Deb系:

1
apt install dante-server -y

添加代理用户名:

1
useradd 要设置的用户名

配置密码:

1
passwd 上面设置用户名

修改配置文件

写入配置文件到”/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
25
26
27
logoutput: syslog

internal: 网卡名 port = 1080

external: 网卡名

method: username

user.notprivileged: nobody

client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}

client pass {
from: ::/0 to: ::/0
}

pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
}

pass {
from: ::/0 to: ::/0
protocol: tcp udp
}

配置项说明:

1
external:网卡名,使用ip a查询(大多为eth、ens开头)
1
port = 1080:Socks5运行的端口

运行设置:

设置开机自启:

1
systemctl enable danted

重新启动服务(修改配置文件后需要执行):

1
systemctl restart danted
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2023-2026 Xiaolan

请我喝杯咖啡吧~