Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello I have the following szenario:

I have 2 ISPs behind seperate routers, and one web/ssh-server with 2 ethernet cards.

I want the webserver to be reachable from both isp. I have forwarderd each router's port 80 to the local ip, but it seems that the server is only able to listen to 1 ip from outside. port-forwarding is fine, it must be a server issue (i changed ip to another webserver that worked)

If i access or from one of the networks it works just fine, but from outside one of the 2 nics seems to be unreachable.

More details:

auto lo
iface lo inet loopback

auto eth0 
iface eth0 inet static 

auto eth1 
iface eth1 inet static 

Any ideas? I think i have to adjust some internal routes on t

share|improve this question
What web server, and how is it configured? – Shane Madden Aug 2 '11 at 21:06
apache2, but it has to be a routing issue because i experienced the same problems with ssh as well... (port 22 is forwarded) – mightyuhu Aug 2 '11 at 21:15
Stop using NAT and it all becomes a lot freakin' easier. – womble Aug 2 '11 at 22:21
up vote 1 down vote accepted

You probably need to setup your routing such that you respond on the interface through which the client established a connection; ie: as is maybe it's going through your default route , which doesn't make it back to the client.

please include your apache config, routing and iptables.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.