Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables MARK and Routing

Reply
Thread Tools Display Modes

iptables MARK and Routing

 
 
Steve Wakelin
Guest
Posts: n/a

 
      07-01-2004, 12:06 AM
Hello,

FC1, Iptables 1.2.9

Perhaps someone could point me in the right direction.
I am simply ;-( trying to MARK packets and then route them according to the
mark.

[root@localhost sysconfig]# ip rule
0: from all lookup local
32760: from all fwmark 0x6 lookup T4
32761: from all fwmark 0x5 lookup T3
32762: from 192.168.252.1 lookup T2
32763: from 192.168.253.1 lookup T1
32764: from 192.168.252.1 lookup T2
32765: from 192.168.253.1 lookup T1
32766: from all lookup main
32767: from all lookup default
[root@localhost sysconfig]# ip route list table T3
10.3.0.1 via 10.3.0.2 dev tun1
default via 10.3.0.2 dev tun1
[root@localhost sysconfig]# ip route list table T4
10.3.0.1 via 10.3.0.3 dev tun2
default via 10.3.0.3 dev tun2
[root@localhost sysconfig]# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
MARK all -- 10.15.1.0/24 10.3.0.0/24 MARK set 0x5
MARK all -- 10.15.1.0/24 10.3.0.0/24 MARK set 0x6
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
[root@localhost sysconfig]# ping -I 10.15.1.1 10.3.0.1
PING 10.3.0.1 (10.3.0.1) from 10.15.1.1 : 56(84) bytes of data.
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable

Will someone please enlighten me as to what I have missed?

Thanks in advance.
Regards
/Steve


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"iptables mark with filter fw" vs "u32 match" =?ISO-8859-2?Q?Pawe=B3?= Staszewski Linux Networking 3 03-05-2005 09:23 PM
iptables mark qos moritz gartenmeister Linux Networking 0 08-20-2004 08:57 AM
iptables --set-mark problem kris wolff Linux Networking 2 06-01-2004 07:31 AM
iptables --set-mark and htb Ryan Alder Linux Networking 0 09-29-2003 02:30 PM
Re: HTB/CBQ and iptables MARK problem joseph philip Linux Networking 0 07-08-2003 06:00 PM



1 2 3 4 5 6 7 8 9 10 11