From: bert hubert <ahu@ds9a.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] policy routing
Date: Thu, 06 Dec 2001 19:18:50 +0000 [thread overview]
Message-ID: <marc-lartc-100766636713710@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98509121616631@msgid-missing>
On Fri, Dec 07, 2001 at 04:19:28AM -0600, Fabian Gervan wrote:
> Hello
> I am newbie with iproute2.
> I have redhat 6.2 with 2 default gateways:
> [...]
> $IP route add default nexthop via 200.47.43.254 dev eth1 weight 2 nexthop \
> via 200.41.233.209 dev eth2 weight 1
>
> now i want to force all outgoing connection to irc port (6667) use 200.47.43.254 as gw.
fwmark all packets going to port 6667, and then use
'ip rule add fwmark 1 table 200'
and then:
'ip route add default via 200.47.43.254 dev eth1 table 200'
To mark, see
http://ds9a.nl/lartc/HOWTO//cvs/2.4routing/output/2.4routing-11.html
Good luck!
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
Trilab The Technology People
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next prev parent reply other threads:[~2001-12-06 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-20 12:26 [LARTC] policy routing Gregory OSINAIKE
2001-03-24 21:33 ` bert hubert
2001-12-06 19:13 ` Fabian Gervan
2001-12-06 19:18 ` bert hubert [this message]
2002-08-07 13:16 ` Stefan Kaiser
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-100766636713710@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox