correct routing for multiple devices
Posted
by
helmi
on Server Fault
See other posts from Server Fault
or by helmi
Published on 2012-06-28T11:56:26Z
Indexed on
2012/06/29
3:17 UTC
Read the original article
Hit count: 491
I have Debian Lenny machine with 3 interfaces enabled (eth0-2), and I have problems as follow.
- eth1 is connected to a router and this router has portforwarding for port80.
- eth2 is connected direct to the internet
If I open a website hosted on my system via the router it works fine. If I try to open the same via the eth2 connetion it does not!
tshark
shows incomming trafic on eth2 but nothing goes out there.
iptabes
accepts all
My routing table:
Ziel Router Genmask Flags Metric Ref Use Iface
10.9.0.2 * 255.255.255.255 UH 0 0 0 tun0
212.236.24.128 * 255.255.255.224 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
10.9.0.0 10.9.0.2 255.255.255.0 UG 0 0 0 tun0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
default 212.236.024.129 0.0.0.0 UG 0 0 0 eth2
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
© Server Fault or respective owner