[LARTC] policy routing

Linux Advanced Routing and Traffic Control

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

 



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@xxxxxxxxxxxxxx)
Electronic Engineering Department
Queen Mary and Westfield College



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