Skip to contentSkip to conversation

Using -j QUEUE

DISCUSSION raquel toribio 2 participants 2 messages Nov 26, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

Hello,
I am using the following rule in iptables:

iptables -A INPUT -p TCP -j QUEUE

and I would expect all incoming tcp traffic, independently of the destination IP to be fetched by my userspace program. Nevertheless, what I get, is that only tcp packets destined for the linux machine arrive to the userspace program. Is that the correct behaviour? If so, how should I configure the iptables to get all the tcp packets independently of the destination IP?

Regards
Raquel

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es

#1 lore raw
Quoted 12 lines · raquel toribio

Hello,
I am using the following rule in iptables:

iptables -A INPUT -p TCP -j QUEUE

and I would expect all incoming tcp traffic, independently of the destination IP to be fetched by my userspace program. Nevertheless, what I get, is that only tcp packets destined for the linux machine arrive to the userspace program. Is that the correct behaviour? If so, how should I configure the iptables to get all the tcp packets independently of the destination IP?

You need a rule in the FORWARD chain.

Signature · 2 lines
James Morris
<[email protected]>