dante-sock5代理服务器工具配置问题
- 配置文件如下,以下配置是需要主机上生成的用户名,密码才可以连接的方案。
- 开启防火墙:ufw allow 1080。
注意:
- user.privileged: root #必须是root,默认是proxy,无法验证用户
- external: eth0 # 有些主机网卡名称不是这个,应该用ifconfig查看网卡名称
- socksmethod: username # 代表着验证用户密码
- curl -v -x socks5://用户名:密码@服务器ip:端口 http://www.google.com/ 用这个命令后不显示reject等错误信息就说明服务器配置OK
logoutput: syslog
user.privileged: root
user.unprivileged: nobody
# The listening network interface or address.
internal: eth0 port=1080
# The proxying network interface or address.
external: eth0
# socks-rules determine what is proxied through the external interface.
socksmethod: username
# client-rules determine who can connect to the internal interface.
clientmethod: none
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}