1. apt-get install dante-server
2.編輯 /etc/danted.conf
mv /etc/danted.conf /etc/danted.conf.ori
cat >/etc/danted.con <<EOF
# /etc/danted.conf
logoutput: syslog
user.privileged: root
user.unprivileged: nobody
# The listening network interface or address.
internal: 0.0.0.0 port=1080
# The proxying network interface or address.
external: eth0
# socks-rules determine what is proxied through the external interface.
# The default of "none" permits anonymous access.
#socksmethod: username
socksmethod: none
# client-rules determine who can connect to the internal interface.
# The default of "none" permits anonymous access.
clientmethod: none
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
}
EOF
3.systemctl enable danted;systemctl start danted
4.測試
curl -v -x socks5://192.168.1.1:1080 http://www.google.com/
2020年12月30日 星期三
Debian 10 安裝 dante-server
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言