| To: | lartc@mailman.ds9a.nl |
|---|---|
| Subject: | [LARTC] problem with two default routes |
| From: | "francesco messineo" <francesco.messineo@gmail.com> |
| Date: | Fri, 16 Feb 2007 12:55:49 +0100 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | lartc-list@securepoint.com |
| Delivered-to: | lartc@outpost.ds9a.nl |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kxYIPiYRt/3K+FQgV2xLEjO+zPGrS6VIWcGSO1NjKvatkFKixsy/nFxLkXM6yg4k6z0ZZ4KNi3xkgbf0VkW61TW0xaj6zfO5FUJJbSEMLIX1JIflw38lOpxQED6CGRXUdZ1flssiA0KdRyDtUB8Tcf2JZSHmYt7fsH/rhHxvPM8= |
| In-reply-to: | <d9f2bc20702160353r25fc13efv3b258d3afdf21825@mail.gmail.com> |
| List-archive: | <http://mailman.ds9a.nl/pipermail/lartc> |
| List-help: | <mailto:lartc-request@mailman.ds9a.nl?subject=help> |
| List-id: | "Mailinglist of the Linux Advanced Routing & Traffic Control project" <lartc.mailman.ds9a.nl> |
| List-post: | <mailto:lartc@mailman.ds9a.nl> |
| List-subscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe> |
| List-unsubscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe> |
| References: | <d9f2bc20702160353r25fc13efv3b258d3afdf21825@mail.gmail.com> |
| Sender: | lartc-bounces@mailman.ds9a.nl |
Hello,
I'm trying to set up a gateway for a local network to use two dsl
lines. Ok, I read the LARTC howto and set up two routing tables and
the correct balancing default gw. It works fine for connections
originating locally on the gw machine. Then I added two iptables rules
on the nat table:
iptables -t nat -A POSTROUTING -s 192.168.4.0/24 -o $TI_IF -j SNAT
--to-source $TI_IP
iptables -t nat -A POSTROUTING -s 192.168.4.0/24 -o $MC_IF -j SNAT
--to-source $MC_IP
ok, now all local ip can go to the internet but all connections go to
the second route specified in the default, whatever it is.
Here's the default (as found on the howto):
ip route add default scope global \
nexthop via $MC_GW dev $MC_IF weight 1 \
nexthop via $TI_GW dev $TI_IF weight 1
If I reverse the position of the two nexthop then traffic from
localnet switches to the other dsl line.
Order of the iptables rules doesn't affect the behaviour.
Am I missing something?
TIA
Francesco
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [LARTC] monitoring hosts from my lan, Grzegorz Chwesewicz |
|---|---|
| Next by Date: | Re: [LARTC] ?OT? Linux 2.6: bridge + routing firewall, Покотиленко Костик |
| Previous by Thread: | [LARTC] monitoring hosts from my lan, gregori andres |
| Next by Thread: | [LARTC] traffic accounting again, foxy 202 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |