hooks
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
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: badhook_mask4/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).
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: badhook_mask4/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).
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 argumentand 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: badhook_mask4/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).