Skip to contentSkip to conversation

hooks

DISCUSSION Tobias Koeck 2 participants 4 messages Dec 17, 2008 – Dec 19, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

Hello

I'm programing module and in the register function I've included

	.hooks		= (1 << NF_INET_FORWARD),

If I want to append a rule with iptables I get the following error message in /var/log/syslog:

tron kernel: ip_tables: RARQOS target: bad hook_mask 4/16

I'm using mangle and forwarding

What could be the problem?

Greetings
tobias

#1 lore raw
Quoted 10 lines · Tobias Koeck

I'm programing module and in the register function I've included

	.hooks		= (1 << NF_INET_FORWARD),

If I want to append a rule with iptables I get the following error message in /var/log/syslog:

tron kernel: ip_tables: RARQOS target: bad hook_mask 4/16 What could be the problem?

In the invocation of the iptables command.
You are trying to use your target in the POSTROUTING chain (16) but you only allow it to be used in FORWARD (4).

#2 lore raw

Hi Jan

For instance I can use

tron:/home/joblack/rarqos/iptables/iptables-1.4.0# iptables -t mangle
-A FORWARD -j RARQOS
iptables: Invalid argument

and I have the same output in the syslog file.

---
I don't have additional arguments ... strange behaviour.

Greetings
tobias

Quoted 17 lines · Jan Engelhardt
Quoted 10 lines · Tobias Koeck

I'm programing module and in the register function I've included

.hooks = (1 << NF_INET_FORWARD),

If I want to append a rule with iptables I get the following error message in /var/log/syslog:

tron kernel: ip_tables: RARQOS target: bad hook_mask 4/16 What could be the problem?

In the invocation of the iptables command.
You are trying to use your target in the POSTROUTING chain (16) but you only allow it to be used in FORWARD (4).

#3 lore raw
Quoted 9 lines · Tobias Koeck

Hi Jan

For instance I can use

tron:/home/joblack/rarqos/iptables/iptables-1.4.0# iptables -t mangle
-A FORWARD -j RARQOS
iptables: Invalid argument

and I have the same output in the syslog file.

Can't debug without source.

Quoted 13 lines
Quoted 13 lines
Quoted 9 lines

I'm programing module and in the register function I've included

.hooks = (1 << NF_INET_FORWARD),

If I want to append a rule with iptables I get the following error message in /var/log/syslog:

tron kernel: ip_tables: RARQOS target: bad hook_mask 4/16 What could be the problem?

In the invocation of the iptables command.
You are trying to use your target in the POSTROUTING chain (16) but you only allow it to be used in FORWARD (4).