Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 http://192.168.4.101 or http://192.168.2.101 from one of the networks it works just fine, but from outside one of the 2 nics seems to be unreachable.

More details:

#/etc/network/interfaces:
auto lo
iface lo inet loopback

auto eth0 
iface eth0 inet static 
        address 192.168.4.101 
        netmask 255.255.255.0 
        network 192.168.4.0 
        broadcast 192.168.4.255 
        gateway 192.168.4.1 

auto eth1 
iface eth1 inet static 
        address 192.168.2.101 
        netmask 255.255.255.0 
        network 192.168.2.0 
        broadcast 192.168.2.255 
        gateway 192.168.2.1 

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

1 Answer 1

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

 
discard

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.