transocks
transocks copied to clipboard
How to bind transocks on primary address of internal network interface
There is a note on the README:
NOTE: If you are going to use transocks on Linux gateway to redirect transit traffic, you have to bind transocks on primary address of internal network interface because iptables REDIRECT action in PREROUTING chain changes packet destination IP to primary address of incoming interface.
I'm going to use transocks on Linux gateway, how do I do the binding? I'm a newbie. Sorry about the stupid question.
Use "0.0.0.0" as your binding address:
proxy_url = "socks5://0.0.0.0:1080" # for SOCKS5 server
#proxy_url = "http://0.0.0.0:3128" # for HTTP proxy server