Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] policy routing
@ 2001-03-20 12:26 Gregory OSINAIKE
  2001-03-24 21:33 ` bert hubert
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Gregory OSINAIKE @ 2001-03-20 12:26 UTC (permalink / raw)
  To: lartc

Hello,

I'm trying to route packets based on 'mark' numbers i give to packets
according to their port number using iptables. I'm having real trouble
setting up routes based on this. I'm issuing the following commands
assuming i have marked packets of a certain type with a 1:


echo 201 first.table >> /etc/iproute2/rt_tables

ip rule add fwmark 1 table first.table
 
ip route add 30.0.0.0/8 dev eth0 table first.table

Basically its just like the exampls in the How To. I have to use Linux
kernel v-2.3.99-pre7, so am using iptables 1.0.0.

when i attempt to mark ICMP packets i get 'network unreachable' when i
ping another machine on our testbed which is not on the same subnet i.e
not 30.0.0.x

Can anyone help?
ThanKs!
Greg.
 



-- 
----------------------
Gregory OSINAIKE (ee9829@elec.qmw.ac.uk)
Electronic Engineering Department
Queen Mary and Westfield College

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-07 13:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2002-08-07 13:16 ` Stefan Kaiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox