You are not logged in.

#1 2010-03-10 02:57:46

davidm
Member
Registered: 2009-04-25
Posts: 371

[solved] Proxy which allows binding to a specific interface only?

I have a server which has five IP addresses.  The main interface is on eth0 and then there are other external interfaces which each correspond to a separate distinct IP address on eth0:0, eth0:0, eth0:1, eth0:2, and eth0:3 respectively.

What I want to do is make it so that I can have two different proxies which appear to be from separate IP addresses as opposed to being from the same (main) IP. I can already set a proxy such as polipo to listen on a specific IP address and port but unfortunately that's not enough.  I need the external requests to be routed through a different external interface such as eth0:1 (thus having a different IP address), not just eth0 (the server's main IP).

Any suggestions?

Last edited by davidm (2010-03-11 15:59:47)

Offline

#2 2010-03-11 13:50:20

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: [solved] Proxy which allows binding to a specific interface only?

configure your proxy to listen on every interface, and then block all requests for the proxy to the interfaces that you do not want (or alternatively, allow the only one and block all others) using iptables.

Offline

#3 2010-03-11 14:24:16

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] Proxy which allows binding to a specific interface only?

tinyproxy can be configured to bind only on which interface you want


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2010-03-11 15:58:47

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: [solved] Proxy which allows binding to a specific interface only?

wonder wrote:

tinyproxy can be configured to bind only on which interface you want

From reading the documentation on the config file (specifically the BIND keyword) :

https://www.banu.com/docs/tinyproxy/1.8 … .conf.html

In fact BINDSAME looks as if it might even save me from having to run multiple instances of the proxy.

It appears that this will be perfect.  Thank you very much. smile

Last edited by davidm (2010-03-11 16:18:16)

Offline

Board footer

Powered by FluxBB