I use ssh -D as SOCKS5 server at my VPS, and an dNAT is used to map local port to internal port on my VPS.
But Firefox+FoxyProxy usually get a connection closed while curl –socks5 works well.
I don’t try to dig on this, but replaced ssh -D with a standalone socks5 server, dante-server, on my VPS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# cat /etc/danted.conf | sed s/^#.*//g | sed -r /^$/d logoutput: stderr internal: INTERNAL_IP_1 port=31080 internal: INTERNAL_IP_2 port=31080 external: OUTGOING_IP method: username none #rfc931 clientmethod: none user.privileged: root user.notprivileged: nobody user.libwrap: nobody client pass { from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0 log: connect disconnect error } pass { from: 0.0.0.0/0 to: 0.0.0.0/0 protocol: tcp udp } |
Set up dante-server on Ubuntu by @sskaje: https://sskaje.me/2016/07/set-up-dante-server-ubuntu/
Incoming search terms:
- danted ipv6
- gone179
- socks 代理
- slightzst
- shoulderqt3
- shirtk1q
- recallps2
- opinionl41
- openvpn socks-proxy
- leavingr53
- haproxy danted
- clearlyipo
- gently32i
- fartheroog
- entirelyc63
- elevenlnd
- earlyumk
- dark4rp
- danted haproxy
Link to this post!