Results 1 to 3 of 3

Thread: A firewall program

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    29

    A firewall program

    I am interested in making a program that will be able to view all of the remote IP addresses and ports that the user's computer is communicating with. Sort of like netstat, except continuous monitoring. I also want it to be able to allow or deny connections attempts both from the user and to the user, and also allow the user to pause or completely terminate any connections already open. And I'm not sure if this last one is even possible, but can is there any way to do this except have it apply to every system on the local area network (just a home network with a router)? I have worked quite a bit with the winsock control, but I don't even know where to start with this. If anyone could point me in the right direction that would be great .

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2007
    Posts
    29

    Re: A firewall program

    I figured out how to do the netstat thing. I'll just put GetTcpTable on a timer. But I'm still don't know how to manipulate the connections. The winsock API it way more complicated than the control -_-
    The only references I can find are for the C language...

  3. #3
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: A firewall program

    Hi Spasm
    Code:
    Private Declare Function SetTcpEntry Lib "iphlpapi.dll" (pTcpTableEx As MIB_TCPROW) As Long
    That is one API you will need when terminating a connection

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width