Skip to contentSkip to conversation

libipq: man page != online doc and a question

DISCUSSION Jvalencia 2 participants 5 messages Oct 15, 2004 – Oct 16, 2004 netfilter

lore
Share & tools
lore

Jvalencia

author
#0 lore raw

I've been looking at ipq_set_verdict man page, finding two verdicts: NF_ACCEPT and NF_DROP. This man page dates from 2001 :S

Online netfilter hacking guide tells about NF_ACCEPT, NF_DROP, NF_QUEUE and NF_REPEAT.

Can I send the packet to another chain with verdicts?

Thanks.

#1 lore raw
Quoted 3 lines · Jvalencia

I've been looking at ipq_set_verdict man page, finding two verdicts: NF_ACCEPT and NF_DROP.

correct

Quoted 5 lines

This man page dates from 2001 :S

Online netfilter hacking guide tells about NF_ACCEPT, NF_DROP, NF_QUEUE and NF_REPEAT.

yes, these are all possibles verdicts in a *kernel hook*, not in ip_queue

Quoted 3 lines

Can I send the packet to another chain with verdicts?

what do you mean?

regards,
Pablo

author
#2 lore raw
Quoted 8 lines · On Sat, 16 Oct 2004 18:29:04 +0200 Pablo Neira <[email protected]> wrote:
Quoted 3 lines · Jvalencia

I've been looking at ipq_set_verdict man page, finding two verdicts: NF_ACCEPT and NF_DROP.

correct

Quoted 7 lines
Quoted 5 lines

This man page dates from 2001 :S

Online netfilter hacking guide tells about NF_ACCEPT, NF_DROP, NF_QUEUE and NF_REPEAT.

yes, these are all possibles verdicts in a *kernel hook*, not in ip_queue

mmm but I was able to use NF_QUEUE in ipq_set_verdict using libipq.

ipq_set_verdict(h, m->packet_id, NF_QUEUE, 0, NULL); Exit code was 28, a success.

Quoted 7 lines
Quoted 4 lines

Can I send the packet to another chain with verdicts?

what do you mean?

In iptables you have various chains, as INPUT, OUTPUT and other user created as "icmp_traffic" for example. I want to move a packet to a chain as "strange_traffic" from libipq because of its content. Is this possible?

Quoted 2 lines

regards,
Pablo

#3 lore raw
Quoted 7 lines · Jvalencia
Quoted 7 lines
Quoted 7 lines

This man page dates from 2001 :S

Online netfilter hacking guide tells about NF_ACCEPT, NF_DROP, NF_QUEUE and NF_REPEAT.

Quoted 10 lines
Quoted 3 lines

yes, these are all possibles verdicts in a *kernel hook*, not in ip_queue

mmm but I was able to use NF_QUEUE in ipq_set_verdict using libipq.

ipq_set_verdict(h, m->packet_id, NF_QUEUE, 0, NULL); Exit code was 28, a success.

you are right, actually I was having a look at that right now :), but does it make any sense issuing NF_QUEUE as verdict from an ip_queue user space program?

You are right again, you can also issue a NF_REPEAT. Maybe you could update that manpage, have a look at the CVS and post a patch to the maillist.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Can I send the packet to another chain with verdicts?

Quoted 8 lines
Quoted 4 lines

what do you mean?

In iptables you have various chains, as INPUT, OUTPUT and other user created as "icmp_traffic" for example. I want to move a packet to a chain as "strange_traffic" from libipq because of its content. Is this possible?

no, AFAIK iptables and ip_queue doesn't have a way to interchange information between them. If you like, give me more information about you want to do, I'll see if I can help you out.

regards,
Pablo

author
#4 lore raw
Quoted 5 lines

no, AFAIK iptables and ip_queue doesn't have a way to interchange information between them. If you like, give me more information about you want to do, I'll see if I can help you out.

Not really, just trying what sort of things libipq let me do.

Thanks.