Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to accept and queue packet in iptables simultaneosly

I want to accept the packets and analyze them too. The packet should go to its intended application and a copy should also be available in queue

like image 857
adnan kamili Avatar asked Sep 27 '12 05:09

adnan kamili


1 Answers

When you queue the packet, the packets can be retrieved by a c program using libnetfilter_queue library. There you can issue the verdict NF_ACCEPT after analyzing the packet in the call back function.

like image 154
adnan kamili Avatar answered Oct 02 '22 07:10

adnan kamili