Linux – HTTP proxy to a specified interface (ppp0)

httplinuxPROXYvpn

I have a VPN which I want to route traffic for specific websites through. I know how to do it I just don't know which utilities to use and how to configure.

The proposed solution:

Firefox -> Foxyproxy (filtering on regex) -> HTTP proxy configured to send data to ppp0 -> VPN interface (ppp0).

I have Foxyproxy set up to use the HTTP proxy when it matches a pattern. The bit where I am stuck is getting a HTTP proxy that will send request out on a specific interface. I have tried 'tinyproxy' but it does not seem to take notice of the 'bind 192.168.100.170' which is the IP address of my ppp0 VPN interface.

Can someone suggest a HTTP proxy that will allow this on Linux.

Best Answer

Squid will allow you to do this with the tcp_outgoing_address directive

Of course squid is not really small footprint and can be daunting to configure, but the default config should be more then adequate for most uses.

Related Topic