From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] 3 internet connexions - Problem with my script
Date: Wed, 22 Jun 2005 14:22:39 +0000 [thread overview]
Message-ID: <42B9742F.73483942@iswest.com> (raw)
In-Reply-To: <42B94202.10904@giganet.ma>
> Jeremy SALMON wrote:
>
> Hi,
>
> I have a problem with my script.
>
> I have a debian with a kernel 2.6.8 patched with patch-2.6.8-ja1.diff
> of nano.txt site.
>
> I have 3 internet connections :
The following disagrees with the script. Double check your IP
addresses.
> - eth1 :
> - ip : 192.168.8.75
> - gw : 192.168.8.73
> - eth2 :
> - ip : 192.168.1.200
> - gw : 192.168.1.2
> - eth3 :
> - ip : 192.168.2.200
> - gw : 192.168.2.1
>
> and my eth0 for local network (ip : 192.168.212.235)
--=snip=--
> ip rule add prio 222 table 222
> ip route add default scope global \
> nexthop via $GWE1 dev $IFE1 weight 1 \
> nexthop via $GWE2 dev $IFE2 weight 4 \
Set the above to 2 and if that does not work well enough then devise a
round robin method that favors IFE2 more than 1 to 1 but less than 4.
> iptables -t nat -A POSTROUTING -o $IFE3 -s $NWI/$NMI -j MASQUERADE
If possible, use SNAT rather than MASQUERADE.
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
prev parent reply other threads:[~2005-06-22 14:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-22 10:48 [LARTC] 3 internet connexions - Problem with my script Jeremy SALMON
2005-06-22 14:22 ` gypsy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42B9742F.73483942@iswest.com \
--to=gypsy@iswest.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.