Question
July 24, 2007 at 08:09 AM
vanlier

Recieve incoming connections on multiple nics in server

by vanlier . Updated 19 years ago

We have a server that has 2 nics installed with each an active internet connection. Each nic is connected to a router wich (by means of other routers) has an external ip associated. 1 is used for receiving connections like smtp and owa and browsing the internet. The other one is intended to be used as an fallback for receiving connections like smtp. I have 2 mxrecords set that points to the each of the external ip’s.

Current situation:

connection 1:

router A (internet connected)
wan: 210.1.1.1 (bogey address)
lan: 10.0.0.138
has DMZ to 10.0.0.151 (router B)

router B
wan: 10.0.0.151
lan: 192.168.253.100
has port 25 forwarded to 192.168.253.30 (NIC1)

NIC1
ip: 192.168.253.30
sm: 255.255.255.0
gw: 192.168.253.100

router C (internet connected)
wan: 180.5.5.5 (bogey address)
lan: 10.10.0.1
has DMZ to 10.10.0.30 (router D)

router D
wan: 10.10.0.30
lan: 192.168.168.1
has port 25 forwarded to 192.168.168.2 (NIC2)

NIC2
ip: 192.168.168.2
sm: 255.255.255.0
gw: –

When I do a telnet on port 25 from home via the internet to the internet ip of router A I get a nice prompt from the exchange server so that route is working correct.

If I do the telnet on port 25 to the internet ip of router C it doesn’t work. When I clear the gateway from NIC1 and put the address 192.168.168.1 in the gw of NIC2 then I do get a response when I retry the connection but then the route through router A and B to NIC1 doesn’t work anymore.

I read on the internet it is a routing problem concerning 2 nics with each a seperate gateway to 2 different networks. I can’t set a gateway for both connections because only 1 is used for the internet and it would generate untrusty behavior (or am i totally wrong again). Even if I do try for testing only 1 nic is responding to the incoming requests on port 25.

Having a gateway on NIC1 and none on NIC2, I put another computer on router C with the ip 10.10.0.10. When I do a telnet to 10.10.0.20 (router D) on port 25 I get no response. I discovered that if I do a ‘add route -p 10.10.0.0 MASK 255.255.255.0 192.168.168.1 METRIC 20’ I do get a response on 10.10.0.20 from the added computer. I tried adding several routes using 180.5.5.0 etc and other weird combinations (;-)) but no succesful connection from the internet on NIC2.

I read something about auto adding routes by macaddress, so every packet coming in at an interface is responded to at the same interface but that was for mac and not a windows computer. It looks to me that the problem is solved that way because now windows always responds to incoming packets from the internet on the nic with the gateway (or am i totally wrong again??)

I’m just looking into routing etc and I can’t get it to work! Please advice.

f.y.i.: the server is an 2003 windows server with exchange 2003 installed and routing and remote access is running.

This discussion is locked

All Comments