how to block packets
i am trying to develop an application to block network packets(using c++)(as in a firewall), with the help of pcap library but only able to capture the packet not block it.
can somebody suggest some solution to it, like which library to use??
thanks in advance.
Well knowing which OS and compiler you're using would be a start.
using ubuntu 8.10 and g++ compiler.
Originally Posted by Salem
It appears libpcap is just for capturing packets, and not controlling them, as you mentioned. You'll probably need a lower-level library. Look into iptables and netfilter, to see if you can interface with them to control (reject) packets.