Click to See Complete Forum and Search --> : closing a port,to make sure of single application at one port


vni
July 25th, 2007, 07:03 AM
Hi all,
Can anyone help me,in closing a port.
wat i want is,i want to make sure that no application is running at a particular port.
How to do this,in C language.

ahoodin
July 25th, 2007, 07:23 AM
One possiblility is to check tcp headers of incoming packets. Firewalls work in this manner:

http://www.codeproject.com/internet/FwHookDrv.asp

HTH,

vni
July 25th, 2007, 07:33 AM
Hi,
Thanks for the reply.
I want to close particular port using C language on linux OS.
And can we use firewalls in Linux environment also?
And cant we do that manually using socket programming?

Thanks in advance.

ahoodin
July 25th, 2007, 11:12 AM
http://www.linuxjournal.com/article/1212

vni
July 26th, 2007, 03:31 AM
ha,i find that.Thanks for the help.