Skip to contentSkip to conversation

additional netfilter queue verdict

DISCUSSION Russell Miller 2 participants 2 messages May 4, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am the author/maintainer of a program called packetbl. It makes use of the netfilter/iptables QUEUE target in order to make decisions as to the disposition of packets based on the results of a DNS blocklist query. The functionality works quite well but I've already come upon several limitations of netfilter, and I would like to open up discussion on possible ways of getting around or eliminating these limitations.

I've had some feedback requesting some features to packetbl that are seemingly impossible to implement using the current netfilter base (in 2.6.5, fedora core 2, is what I'm using).

I have a user who would like to use netfilter to, instead of dropping the
packets, to rewrite them in order to bounce them to another machine to send fake SMTP responses. I have another user who would like to reject the packets with an icmp error if they're found in the blocklist. In order to do this, I was thinking of an additional verdict:

NF_CONTINUE

This verdict would remove the packet from the queue and allow processing to continue in the table that the rule is part of.

In the alternative or in addition, an NF_REJECT verdict might be nice too, but I note there are multiple ways to reject a packet, and perhaps it would be too much trouble to implement.

There are a couple of other things I can see being a good idea, but this is a start, and I won't bore you with the rest yet. Can you please give me feedback on this idea? I'm not averse to coding it, but I would like a general idea of a) how involved it would be, b) the degree of impossibility of the task I would be taking on, and c) how likely it is of being accepted were I to successfully do this. Of course, if someone else were to take the ball and run with it, I don't think I'd complain too loudly at all.

Thanks for your time.

- --Russell

- --

Russell Miller - [email protected] - Somewhere near Sioux City, IA. Youth cannot know age, but age is guilty if it forgets youth
- Professor Dumbledore
Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAlv8pURTA4VCI9OARAqwfAJ4vmsvMtEjH5CxofslrYu1YSCnIZwCfdmwf N11VXdgeY+9yiSeuGR6GHMA=
=B01B
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 4 lines · Russell Miller

NF_CONTINUE

This verdict would remove the packet from the queue and allow processing to continue in the table that the rule is part of.

This is not technically possible due to the way QUEUE works.. QUEUE is a Netfilter operation, not an iptables operation.

Quoted 3 lines

In the alternative or in addition, an NF_REJECT verdict might be nice too, but I note there are multiple ways to reject a packet, and perhaps it would be too much trouble to implement.

REJECT does not exists in Netfilter. This is an iptables thingy...

I think what would benefit you and many others of QUEUE is to add a nfmark field in the verdict. This has been discussed many times and done by several people but nobody seems to have submitted their results for inclusion in pom-ng...

Regards
Henrik