From mboxrd@z Thu Jan 1 00:00:00 1970 From: bert hubert Date: Thu, 06 Dec 2001 19:18:50 +0000 Subject: Re: [LARTC] policy routing Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/