Answer the question
In order to leave comments, you need to log in
How to implement a proxy server with multiple output interfaces?
There is a physical machine. It has one input interface, for example, eth0. This interface is connected to the local network and has an address, for example 192.168.0.101. And there are 2 (two) output interfaces, such as ppp0 and ppp1, that look at the Internet.
It is necessary to implement the proxy function (socks) on this physical machine so that users of our local network can specify the address 192.168.0.101 and some port as a proxy in the browser and access the Internet. Depending on which port the user specifies, it will be determined through which interface (ppr0 or ppp1) he will access the Internet.
Answer the question
In order to leave comments, you need to log in
In 3proxy
socks -i192.168.0.101 -pport_1 -eaddress_ppp0 interface
socks -i192.168.0.101 -pport_2 -eaddress_ppp1 interface
You hang extra responsibility on the proxy, he should not be doing this. A proxy may not know anything at all about which paths packets follow it.
This must be done at the NAT level. To prevent HTTP and HTTPS clients from going crazy, the distribution rule should be like this - all connections from the same host on the internal network go through the same external connection. That is, roughly - even ip - ppp0, odd, ppp1
This is all done at the iptables level.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question