Multiple NICs + GW's
From: Michael Bellears (MBellears_at_staff.datafx.com.au)
Date: 11/30/04
- Previous message: Dave Thayer: "Re: how to mount a windows 'share' under linux"
- Next in thread: Laurent CARON: "Re: Multiple NICs + GW's"
- Reply: Laurent CARON: "Re: Multiple NICs + GW's"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 15:14:18 +1000 To: <debian-user@lists.debian.org>
I have a test webserver with two NICs:
Eth0: xxx.xxx.ba.3/24
Eth1: xxx.xxx.bb.115/28
Route Table:
Destination Gateway Genmask Flags Metric Ref Use
Iface
xxx.xxx.bb.112 xxx.xxx.bb.113 255.255.255.240 UG 0 0 0
eth1
xxx.xxx.bb.112 0.0.0.0 255.255.255.240 U 0 0 0
eth1
xxx.xxx.ba.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
0.0.0.0 xxx.xxx.ba.254 0.0.0.0 UG 0 0 0
eth0
Eth0 is directly connected to core router, which has an IP of
xxx.xxx.ba.254
Eth1 is connected to a Loadbalancer, which has an IP of xxx.xxx.bb.113
(Which is connected to core Router)
Core Router has route for xxx.xxx.bb.112/28 -> xxx.xxx.bb.113
Traffic from external:
Connections to xxx.xxx.ba.3 are all successful.
Connections to xxx.xxx.bb.115 all fail.
Connections to xxx.xxx.bb.113(Loadbalancer) are all successful.
If I run tcpdump on eth1, I can see the traffic hitting the webserver,
but it never returns - It appears to throw it back out via the
webservers default gw (xxx.xxx.ba.254).
FYI: I have another test webserver (Single NIC), sitting behind
loadbalancer, with IP of xxx.xxx.bb.114/28 (Def. GW xxx.xxx.bb.113)
which can successfully be contacted from external.
Is there anyway I can force traffic to go back out via the NIC it came
in on?
Regards,
MB
- Previous message: Dave Thayer: "Re: how to mount a windows 'share' under linux"
- Next in thread: Laurent CARON: "Re: Multiple NICs + GW's"
- Reply: Laurent CARON: "Re: Multiple NICs + GW's"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- How would you do this ...
... eth0 is on our 192.168.0.* LAN ... eth1 is on another 192.168.0.* LAN
... (these could be adjustable so eth1 is 192.168.1.*) ... no machines on eth1 can
send any new connections back to eth0 side, ... (comp.os.linux.networking) - Router with two WAN connections
... I have a Linux router with an ethernet and pppoe outbound connection. ... eth0
is active and works like a charm, whereas ppp0 seems to be active, ... connections work
at a time (ssh connections should be routed through ... while all other traffic will go through
eth0 - don't ask why). ... (comp.os.linux.networking) - Re: Wireless
... > to simply route the traffic via both interfaces. ... > If you really
want to use both connections at the same time, ... Though the thing I want to do is to
start eth0 automatically if the ... wire is present and start eth1 if the wire is
not present. ... (comp.os.linux.networking) - Re: Iptables Forwarded traffic
... Since all connections coming from the outside world can't contact the local network
directly, it seems impossible that a connection marked as new could try to reach another computer than
my router? ... All that is needed is that packets arrive at eth0 with the destination
address of one of your private hosts, and your Linux-based router will happily route them to their destination.
... (comp.os.linux.networking) - prevent dhclient from exting
... connections drops for various reasons: ... Oct 17 09:13:29 localhost kernel:
eth1: Tx timed out, ... Oct 17 09:13:30 localhost dhclient: No working leases in
persistent ... I tried installing ifplugd and configured it for eth1, ... (Debian-User)