Problem with Socket

G

Guest

i'm trying to write a firewall with packet filtering capability and I'm Using
Socket to Sniff Raw IP Packets from my NIC.
is it possible to Block the packet after sniffing?
 
W

Willy Denoyette [MVP]

Mdg said:
i'm trying to write a firewall with packet filtering capability and I'm
Using
Socket to Sniff Raw IP Packets from my NIC.
is it possible to Block the packet after sniffing?

Not sure this is supposed to be C# question?
Anyway, you can't write a firewall using C# or any other managed code
language, firewalls are running deep in the network stack as a filter driver
in kernel space not in user space, managed code cannot run in kernel space.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top