transocks icon indicating copy to clipboard operation
transocks copied to clipboard

How to bind transocks on primary address of internal network interface

Open yoyocat opened this issue 2 years ago • 1 comments

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.

yoyocat avatar Sep 08 '22 14:09 yoyocat

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

pooladkhay avatar Sep 27 '22 13:09 pooladkhay