* kernel 2.6.28/iptables <=1.4.2 not working together?
@ 2009-01-31 17:17 J.O. Aho
2009-02-03 12:23 ` Pascal Hambourg
0 siblings, 1 reply; 5+ messages in thread
From: J.O. Aho @ 2009-01-31 17:17 UTC (permalink / raw)
To: netfilter; +Cc: trizt
I have a iptables script that I have been using for quite many years and
from time to time I have been updating as iptables changes.
If I run the script on a machine running kernel 2.6.23 everything works
fine together with iptables 1.4.0.
Running the same script on a 2.6.28 kernel (the latest one I have tried is
2.6.28.2) with iptables 1.4.0/1.4.2 will not manage to run all the rules
The one of the lines (the others are similar, different port numbers)
looks like this:
iptables -t mangle -A OUTPUT -p tcp --dport 20:21 -j TOS --set-tos 16
Running it with verbose output, I get the following result:
TOS tcp opt -f in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpts:20:21 TOS
set 0x10
iptables: No chain/target/match by that name
I think I have loaded all the modules that kernel 2.6.28.2 offers and
trying to run that line, but every time I get the same result.
Modules that I always have loaded are:
xt_dscp, x_tables, ip_tables and iptable_mangle
Keep in mind that ipt_TOS has been merge into xt_dscp and modinfo on
xt_dscp gives an alias list with ipt_tos.
I'm quite lost how to fix this and would need some help.
Keep in mind I'm not a member of the maillist, so keep the cc: when
replying the thread.
--
//Aho
------------------------------------------------------------------------
E-Mail: trizt@iname.com URL: http://www.kotiaho.net/~trizt/
ICQ: 13696780 Skype: jo_aho
System: Linux System (PPC7447/1000 AMD K8/2500)
------------------------------------------------------------------------
EU forbids you to send spam without my permission
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: kernel 2.6.28/iptables <=1.4.2 not working together?
2009-01-31 17:17 kernel 2.6.28/iptables <=1.4.2 not working together? J.O. Aho
@ 2009-02-03 12:23 ` Pascal Hambourg
2009-03-14 10:04 ` J.O. Aho
0 siblings, 1 reply; 5+ messages in thread
From: Pascal Hambourg @ 2009-02-03 12:23 UTC (permalink / raw)
To: J.O. Aho; +Cc: netfilter
Hello,
J.O. Aho a écrit :
>
> Keep in mind that ipt_TOS has been merge into xt_dscp and modinfo on
> xt_dscp gives an alias list with ipt_tos.
Since kernel 2.6.25, ipt_TOS has been merged into xt_DSCP (target), not
ipt_dscp (match).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kernel 2.6.28/iptables <=1.4.2 not working together?
2009-02-03 12:23 ` Pascal Hambourg
@ 2009-03-14 10:04 ` J.O. Aho
2009-03-14 10:32 ` Pascal Hambourg
0 siblings, 1 reply; 5+ messages in thread
From: J.O. Aho @ 2009-03-14 10:04 UTC (permalink / raw)
To: Pascal Hambourg; +Cc: netfilter
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1094 bytes --]
On Tue, 3 Feb 2009, Pascal Hambourg wrote:
> J.O. Aho a écrit :
>> The one of the lines (the others are similar, different port numbers)
>> looks like this:
>> iptables -t mangle -A OUTPUT -p tcp --dport 20:21 -j TOS --set-tos 16
>> Keep in mind that ipt_TOS has been merge into xt_dscp and modinfo on
>> xt_dscp gives an alias list with ipt_tos.
> Since kernel 2.6.25, ipt_TOS has been merged into xt_DSCP (target), not
> ipt_dscp (match).
So back to my question, how to rewrite the rule to work with target
instead of the old match?
--
//Aho
------------------------------------------------------------------------
E-Mail: trizt@iname.com URL: http://www.kotiaho.net/~trizt/
ICQ: 13696780 Skype: jo_aho
System: Linux System (PPC7447/1000 AMD K8/2500)
------------------------------------------------------------------------
EU forbids you to send spam without my permission
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: kernel 2.6.28/iptables <=1.4.2 not working together?
2009-03-14 10:04 ` J.O. Aho
@ 2009-03-14 10:32 ` Pascal Hambourg
2009-03-14 10:59 ` J.O. Aho
0 siblings, 1 reply; 5+ messages in thread
From: Pascal Hambourg @ 2009-03-14 10:32 UTC (permalink / raw)
To: J.O. Aho; +Cc: netfilter
J.O. Aho a écrit :
> On Tue, 3 Feb 2009, Pascal Hambourg wrote:
>> J.O. Aho a écrit :
>>>
>>> iptables -t mangle -A OUTPUT -p tcp --dport 20:21 -j TOS --set-tos 16
>>> Keep in mind that ipt_TOS has been merge into xt_dscp and modinfo on
>>> xt_dscp gives an alias list with ipt_tos.
>> Since kernel 2.6.25, ipt_TOS has been merged into xt_DSCP (target),
>> not ipt_dscp (match).
>
> So back to my question, how to rewrite the rule to work with target
> instead of the old match?
You do not have to rewrite the rule. But since the TOS target is now
handled by the xt_DSCP kernel module, you must have this module enabled
in your kernel configuration (CONFIG_NETFILTER_XT_TARGET_DSCP=y or m).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: kernel 2.6.28/iptables <=1.4.2 not working together?
2009-03-14 10:32 ` Pascal Hambourg
@ 2009-03-14 10:59 ` J.O. Aho
0 siblings, 0 replies; 5+ messages in thread
From: J.O. Aho @ 2009-03-14 10:59 UTC (permalink / raw)
To: Pascal Hambourg; +Cc: netfilter
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1499 bytes --]
On Sat, 14 Mar 2009, Pascal Hambourg wrote:
> J.O. Aho a écrit :
>> On Tue, 3 Feb 2009, Pascal Hambourg wrote:
>> > J.O. Aho a écrit :
>> > >
>> > > iptables -t mangle -A OUTPUT -p tcp --dport 20:21 -j TOS --set-tos 16
>> > > Keep in mind that ipt_TOS has been merge into xt_dscp and modinfo on
>> > > xt_dscp gives an alias list with ipt_tos.
>> > Since kernel 2.6.25, ipt_TOS has been merged into xt_DSCP (target), not
>> > ipt_dscp (match).
>>
>> So back to my question, how to rewrite the rule to work with target
>> instead of the old match?
>
> You do not have to rewrite the rule. But since the TOS target is now handled
> by the xt_DSCP kernel module, you must have this module enabled in your
> kernel configuration (CONFIG_NETFILTER_XT_TARGET_DSCP=y or m).
Thanks for the reply, I was so sure that I had enabled the module when I
built the kernel, but I guess I checked the kernel config for a virtual
machine.
--
//Aho
------------------------------------------------------------------------
E-Mail: trizt@iname.com URL: http://www.kotiaho.net/~trizt/
ICQ: 13696780 Skype: jo_aho
System: Linux System (PPC7447/1000 AMD K8/2500)
------------------------------------------------------------------------
EU forbids you to send spam without my permission
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-03-14 10:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 17:17 kernel 2.6.28/iptables <=1.4.2 not working together? J.O. Aho
2009-02-03 12:23 ` Pascal Hambourg
2009-03-14 10:04 ` J.O. Aho
2009-03-14 10:32 ` Pascal Hambourg
2009-03-14 10:59 ` J.O. Aho
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.