Skip to contentSkip to conversation

'-m owner' problem (bug?)

DISCUSSION Dan Aloni 2 participants 3 messages Sep 18, 2002 – Sep 20, 2002 netfilter

lore
Share & tools
lore

Dan Aloni

author
#0 lore raw

(not subscribed to the list, please CC)

This command used to work in the past:

   iptables -A OUTPUT -o eth1 -m owner --uid-owner 0 -d 192.168.1.6/32 -j ACCEPT

Now it doesn't I get:

iptables: Invalid argument

This *does* work (only removed '-m owner --uid-owner 0'. Weird, huh?):

iptables -A OUTPUT -o eth1 -d 192.168.1.6/32 -j ACCEPT

The owner module is loaded:

   ipt_MASQUERADE          1208   1  (autoclean)
   iptable_nat            13784   1  (autoclean) [ipt_MASQUERADE]
   ipt_owner               1368   0  (autoclean)
   ipt_state                568   2  (autoclean)
   ip_conntrack           16224   2  (autoclean) [ipt_MASQUERADE iptable_nat ipt_state] 
   ipt_REJECT              2840   7  (autoclean)
   ipt_multiport            632   6  (autoclean)
   iptable_filter          1668   1  (autoclean)
   ip_tables              10456   9  [ipt_MASQUERADE iptable_nat ipt_owner ipt_state ipt_REJECT

ipt_multiport iptable_filter]

The kernel is 2.4.20-pre7 vanilla.
Usermode iptables is iptables v1.2.7a vanilla.

I started debugging iptables and I found that the kernel returns this error from a setsockopt() in iptc_commit().

Comments? Suggestions?

Signature · 2 lines
Dan Aloni
[email protected]
author
#2 lore raw
Quoted 5 lines · Harald Welte
Quoted 4 lines · Dan Aloni

(not subscribed to the list, please CC)

This command used to work in the past:

Quoted 8 lines
Quoted 2 lines
   iptables -A OUTPUT -o eth1 -m owner --uid-owner 0 -d 192.168.1.6/32 -j
   ACCEPT

can you try to recompile the latest iptables package (1.2.7a) and see if the problem persists?

This is not supposed to be the solution, I just want to know where the problem comes from...

Apparently, the problem comes from me. I compiled iptables without specifing KERNEL_DIR= to the location of the 2.4.20-pre7 source tree.

I was assuming that the Makefile would pickup /lib/modules/uname -r/build, but now I see that it defaults to /usr/src/linux.

Well, it works now. Thanks.

Signature · 2 lines
Dan Aloni
[email protected]