* lib ipq
@ 2004-12-23 19:29 Unix User
2005-06-21 20:07 ` Unix User
0 siblings, 1 reply; 3+ messages in thread
From: Unix User @ 2004-12-23 19:29 UTC (permalink / raw)
To: netfilter
hi all
I use the lib ipq. I want to know how one can make the difference
between an outgoing and incoming packets with the lib ipq . I queued
incoming and outgoing packets .
thanks ;)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lib ipq
2004-12-23 19:29 lib ipq Unix User
@ 2005-06-21 20:07 ` Unix User
2005-06-22 11:28 ` Christian Theil
0 siblings, 1 reply; 3+ messages in thread
From: Unix User @ 2005-06-21 20:07 UTC (permalink / raw)
To: netfilter
hi all
I use the lib ipq. I want to know how one can make the difference
between an outgoing and incoming packets with the lib ipq . I queued
incoming and outgoing packets .
i use the packet information to look at the tcp/ip headers and check the ip
addresses to see if it is incoming or outgoing but it doesnt work if
the localhost send a packet at his self (ex : source adress: 127.0.0.1
, dest adress: 127.0.0.1).
how can i make the difference ?
sorry for my bad english :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: lib ipq
2005-06-21 20:07 ` Unix User
@ 2005-06-22 11:28 ` Christian Theil
0 siblings, 0 replies; 3+ messages in thread
From: Christian Theil @ 2005-06-22 11:28 UTC (permalink / raw)
To: netfilter
You could probably mark the packet using the nfmark field of the skb.
If you are doing this with iptables, use the -j MARK target to do
this; something
ala this:
iptables -A OUTPUT -t mangle -i eth0 -j MARK --set-mark 42
Make sure you do this before you queue the packet to userspace.
Regards,
Christian Theil Have.
If you need to do this from userspace with iptables probably
On 6/21/05, Unix User <kerneland@gmail.com> wrote:
> hi all
> I use the lib ipq. I want to know how one can make the difference
> between an outgoing and incoming packets with the lib ipq . I queued
> incoming and outgoing packets .
> i use the packet information to look at the tcp/ip headers and check the ip
> addresses to see if it is incoming or outgoing but it doesnt work if
> the localhost send a packet at his self (ex : source adress: 127.0.0.1
> , dest adress: 127.0.0.1).
>
> how can i make the difference ?
>
> sorry for my bad english :)
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-22 11:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-23 19:29 lib ipq Unix User
2005-06-21 20:07 ` Unix User
2005-06-22 11:28 ` Christian Theil
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.