Skip to contentSkip to conversation

Policy routing - tables not working

LARTC Gregory OSINAIKE 2 participants 2 messages Mar 25, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

Simple question.

When i place a route in 'main' table packets are sent. When i place the same route in my table and make a rule to look up this table when packets match rule, the packets are not sent ('network unreachable').

The rule mathces packets with fwmark 1
(ip rule fwmark 1 table mail)

table mail has a route to subnet 50/8 via 30.0.0.1 (ip route add 50/8 via 30.0.0.1)

Have checked and packets are being marked correctly.

Have tried policy rouign with source address and still did not work.

Using linux -2.3.99-pre7

Have set up /etc/iproute2/rt_tables file

Any help would be appreciated.

Greg.

Signature · 8 lines
----------------------
Gregory OSINAIKE ([email protected])
Electronic Engineering Department
Queen Mary and Westfield College

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#1 lore raw
Quoted 6 lines · Gregory OSINAIKE

table mail has a route to subnet 50/8 via 30.0.0.1 (ip route add 50/8 via 30.0.0.1)

Have checked and packets are being marked correctly.

Have tried policy rouign with source address and still did not work.

Show your exact commandlines, your setup is not entirely clear to me.

Regards,

bert

Signature · 7 lines
http://www.PowerDNS.com      Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/