Hello! I have been trying to search around for a similar question, but am having a hard time knowing *what* to type in! (e.g., redirect, route, multiple gateways, etc)
Here is the deal... I have a new server I am setting up with 3 NICs. eth0 and eth1 are connected to separate T1's, and eth2 is the internal 192.168.168.x network.
I have eth0 working just fine, and eth2. And I have figured out how to use shorewall masquerade to (S?)NAT between eth0 and eth2.
But... I want it instead to use shorewall to NAT between eth1 and eth2, but it won't work.
In fact, I cannot even ping the gateway on eth1. Here is what I am getting:
(IPs changed for security)
184.108.40.206 is the IP of eth1 and .61 is the gateway. But I left out the "gateway" part for eth1 in /etc/network/interfaces because if I didn't, my incoming connections on eth0 were being lost.
Destination Gateway Genmask Flags Metric Ref Use Iface
220.127.116.11 * 255.255.255.252 U 0 0 0 eth1
18.104.22.168 * 255.255.255.224 U 0 0 0 eth0
192.168.168.0 * 255.255.255.0 U 0 0 0 eth2
link-local * 255.255.0.0 U 1000 0 0 eth0
default 22.214.171.124 0.0.0.0 UG 100 0 0 eth0
$ ping 126.96.36.199
PING 188.8.131.52 (184.108.40.206) 56(84) bytes of data.
From 220.127.116.11 icmp_seq=2 Destination Host Unreachable
My gut is telling to running something like this
But what destination do I give it? If I run
$ route add gw 18.104.22.168 dev eth1
I am running in to the same issue with the incoming connections on eth0
$ route add -net 0.0.0.0 gw 22.214.171.124 dev eth1
Thank you very much in advance!