Re: [LARTC] policy routing

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux