Linux routing fun

Brian brk-gnhlug at karas.net
Tue Oct 9 13:10:44 EDT 2007


I have a linux box, with a publicly routable class C subnet.
I also have a /28 subnet on the same box in a different address space.


I am trying to setup an apache proxy server on about 100 IP's, where  
any one of those IP's can accept an http proxy connection from a  
remote user.

I got a simple apache proxy setup, and it can accept connections on  
one of several IP's (I've setup about 10 of the IP's for now on  
eth1:2 - eth1:10).

However, all the outbound connections seem to originate from the  
lowest numbered IP on the /28 subnet.  I'd like the outbound  
connections to originate from the IP address that was used for the  
proxy.  Ie you can connect to 10.1.1.1 or 10.1.1.2 or 10.1.1.3 for an  
http proxy connection, but your IP address will appear to the remote  
server as 11.1.1.1 (with the 10. net being used for example to  
represent the class c subnet, and 11.x.x.x used to represent the /28).

If you connect on 10.1.1.2, I'd like the connection to the remote  
server to appear as coming from 10.1.1.2

If anyone has more experience with linux IP routing than I do, I  
would appreciate the assistance :)

--
brian




More information about the gnhlug-discuss mailing list