From: bert hubert <ahu@ds9a.nl>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: 3 interfaces in one linux box
Date: Fri, 12 Jul 2002 20:55:25 +0000 [thread overview]
Message-ID: <marc-lartc-102650738903835@msgid-missing> (raw)
On Fri, Jul 12, 2002 at 10:45:58PM +0200, G?czi Szabolcs wrote:
> Hello,
>
> first of all apologize for my bad english.
No problem.
> the facts :
> +-------+
> leased line------- eth0| Linux |
> | box |-eth1------subnet/switch ---clients, servers
> cablenetwork ----- eth2+-------+
>
>
> The eth0 interface has 5 aliased ip addresses which portforwarded to
> servers into subnet.
Ok. How is this forwarding performed? ipchains? rinetd?
> The eth2 interface has 1 ip address.
> The eth1 interface used for subnet.
> The linux box masquerades with ipchains (2.2.19 kernel).
The problems are:
* Making sure that the default gateway is the cablenet
* Except for sessions that went to the 5 aliased ip addresses on eth0,
which should have eth0 as their default gateway
I think this will be pretty easy with policy routing.
echo 200 leased >> /etc/iproute2/rt_tables
ip rule add from alias.1.ip.address table leased
ip rule add from alias.2.ip.address table leased
ip rule add from alias.3.ip.address table leased
ip rule add from alias.4.ip.address table leased
ip rule add from alias.5.ip.address table leased
ip route add default via leased.router.ip dev eth0 table leased
However, it *is* possible that this interferes with the aliases. Try this
and let us know!
See also http://lartc.org/howto/lartc.rpdb.html#LARTC.RPDB.SIMPLE
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-07-12 20:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-12 20:55 bert hubert [this message]
2002-07-17 6:11 ` [LARTC] Re: 3 interfaces in one linux box Géczi Szabolcs
2002-07-17 11:25 ` bert hubert
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=marc-lartc-102650738903835@msgid-missing \
--to=ahu@ds9a.nl \
--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.