Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel 2.6.28, iptables MARK target
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dairinin
n00b
n00b


Joined: 03 Feb 2008
Posts: 64
Location: MSK, RF

PostPosted: Wed Jan 07, 2009 6:26 pm    Post subject: kernel 2.6.28, iptables MARK target Reply with quote

I'm having troubles with iptables after kernel upgrade from 2.6.27 line to 2.6.28. My working rules-save script does not work any more. Particulary I'm using some rules wich set MARK for packet, and then in POSTROUTING chain of mangle tables I set one bit in the MARK according to destination network:
Code:
iptales -t mangle -A POSTROUTING -o eth1 -d x.x.x.x/y -j MARK --or-mark 0x10


The results is this string in rule-save file:
Code:
[191021423:261063439591] -A POSTROUTING -d x.x.x.x/y -o eth1 -j MARK --set-xmark 0x10/0x10


New kernel stops loading rules and complains about
Quote:
iptables v1.4.2: Unknown arg `(null)'


iptables do not understand --set-xmark for MARK target any more, but it still understand --set-mark (though it cannot help in my case).
As man for iptables states, --or-mark, xor-mark and --and-mark are just macros for --set-xmark, and they do not work either, complaining about my kernel being too old (sic) for theese parameters.

BTW, CONNMARK target, which supports same arguments according to man, does not accept --set-xmark also.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum