I have a server with "inside" and "outside" NIC's. The inside NIC is running non-routable (say 192.168.100.20) and the outside NIC is routable (say 198.105.48.78).
The problem is that the inside NIC must have the Default Route configured to be 192.168.100.1 (our router with NAT/Firewall) because this is used for inbound Email. The outside NIC also needs to communicate with the outside world for HTTP, FTP, and Telnet/SSH.
How can I configure the system for 2 default gateways?
For better illustration:
ROUTER WAN: 198.105.48.74
ROUTER LAN: 192.168.100.1
UNIX NICa: 192.168.100.20
UNIX NICb: 198.105.48.78
Router has port-forward rule to pass all port-25 traffic to 192.168.100.20.
UNIX default gateway is 192.168.100.1
Telnet from "outside" world to 198.105.48.78 fails to connect, because the UNIX box can't reply without a gateway for that NIC.
Current route information:
This might be really basic, but I'm having a "Monday Morning" mental lapse.
Thanks.
"Proof that there is intelligent life in Oregon. Well, Life anyway.
The problem is that the inside NIC must have the Default Route configured to be 192.168.100.1 (our router with NAT/Firewall) because this is used for inbound Email. The outside NIC also needs to communicate with the outside world for HTTP, FTP, and Telnet/SSH.
How can I configure the system for 2 default gateways?
For better illustration:
ROUTER WAN: 198.105.48.74
ROUTER LAN: 192.168.100.1
UNIX NICa: 192.168.100.20
UNIX NICb: 198.105.48.78
Router has port-forward rule to pass all port-25 traffic to 192.168.100.20.
UNIX default gateway is 192.168.100.1
Telnet from "outside" world to 198.105.48.78 fails to connect, because the UNIX box can't reply without a gateway for that NIC.
Current route information:
Code:
# netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface
default 192.168.100.1 UGS 0 49683 net0
127.0.0.1 127.0.0.1 UH 3 772 lo0
192.168.100 192.168.100.20 UC 1 0 net0
192.168.100.20 127.0.0.1 UGHS 1 0 lo0
198.105.48.72/29 198.105.48.78 UC 1 0 net1
198.105.48.78 127.0.0.1 UGHS 3 8 lo0
224/8 192.168.100.20 UGS 0 0 net0
This might be really basic, but I'm having a "Monday Morning" mental lapse.
Thanks.
"Proof that there is intelligent life in Oregon. Well, Life anyway.