Re: Linux multihomed routing (2 ISP, 1 internal network) problem
- From: Clifford Kite <kite@xxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 13:13:28 -0500
andy_occ@xxxxxxxxxxx wrote:
Hi all !!
I'm having a little trouble with a multihomed setup I am running here.
I'll try to give as much information as possible.
I am using the latest Debian release with kernel 2.6.18-4-686.
I am doing the routing using iproute2. the rules are setup with
iptables.
The system has 3 NICs: eth0 has the cable ISP (called "TELENET"), eth1
has the ADSL ISP (called "SKYNET") (with external modem) and eth2 is
my internal network (called "INTERN"). The ADSL line has a fixed IP,
and is used to connect to one of our servers from remote locations
(the modem is setup to forward everything that hits it to my IP on
eth1)
The cable ISP is the preferred ISP (ie: all undefined outgoing traffic
goes thru the cable provider).
All clients on the lan have full access, no restrictions, to do
whatever they want online.
I am using ip route rules and iptables with --set-mark to tell certain
traffic which routing table to use.
When I finished configuring Saturday evening, everything was working
like a charm. When I tested again today, suddenly it didn't work
as good anymore ...
Something has changed overnight but I have no clue what it is.
After some testing, I figured out 2 things: my dns traffic suddenly
wants to go thru the DSL line and my clients can not directly connect
to the internet anymore. After setting a clients dns servers to the
DSL ISP's dns servers, they could resolve again, but they can still
not surf anymore. The Linux machine itself can still perfectly do
everything.
All posted information considered, one guess would be that IP forwarding
is not working. Does cat /proc/sys/net/ipv4/ip_forward yield 1 or 0?
Another guess would be the LAN interface isn't working, but that would
also prevent LAN<->Linux_box traffic.
Although I'm no expert, the two iptables network forwarding rules for
LAN<->TELENET looked reasonable. However, the unfettered inbound Internet
traffic would worry me.
<snip technical stuff>
--
Clifford Kite
/* Speak softly and carry a +6 two-handed sword. */
.
- References:
- Linux multihomed routing (2 ISP, 1 internal network) problem
- From: andy_occ
- Linux multihomed routing (2 ISP, 1 internal network) problem
- Prev by Date: Re: What is NAT?
- Next by Date: Re: Linux multihomed routing (2 ISP, 1 internal network) problem
- Previous by thread: Linux multihomed routing (2 ISP, 1 internal network) problem
- Next by thread: Re: Linux multihomed routing (2 ISP, 1 internal network) problem
- Index(es):
Relevant Pages
|