From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory OSINAIKE Date: Tue, 20 Mar 2001 12:26:00 +0000 Subject: [LARTC] policy routing Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/