Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

How to bind transocks on primary address of internal network interface #32

Open
yoyocat opened this issue Sep 8, 2022 · 1 comment
Open

Comments

@yoyocat
Copy link

yoyocat commented Sep 8, 2022

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.

@pooladkhay
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants