Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual networkinterface and routing

Status
Not open for further replies.

MartinAB

Programmer
Jun 11, 2001
11
JP
Hello,

I have two webservers (I call them web1 and web2).
Web1 is the one connected to the internet an web2 is located in my internal network. On both I use Apache 1.3.28.
Web1 works as proxy and builds the connection to web2 for clients in the internet.
Now I have configured two networkinterfaces, one physical and one virtual (eth0 and eth0:1) on web1. On the ip-address from eth0 I can access the website located on web1.
When I open a connection to the ip-address from eth0:1 the proxy-rule should redirect the clientsrequest to web2. It already works at the moment but if you watch the networktraffic on web2 all request are comming from the ip-address from the interface eth0!
I have the need that the traffic comes from eth0:1.

Could anyone give me some advice how I could handle that? It would be a great help for me!

Thanks in advance

Martin Broll
 
Is that an apache proxy rule or an iptables/ipchains proxy rule. If it it the first, then that's what is supposed to be happening, if it is the second then you are clearly insane and I must stop talking to you.
 
Hi.

No I am using the apache proxymodule.

I need this constelation because the projects hosted on these servers are using SSL and so I need a seperate ip-address cause of the differently domainnames.

rgds
martin
 

You can plumb multiple IP addresses on the same interface and assign different names to them.
 
# ifconfig eth0:1 192.xx.xx.xx.xx
virtual ethernet on eth0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top