Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Control outgoing TCP/IP connections

Control outgoing TCP/IP connections

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++json
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    od ananzi co za
    wrote on last edited by
    #1

    Hi All, I want to attempt to block a specific program from establishing outgoing TCP/UDP connections. Thus as the (external) app attempts to make a socket connection, I want to receive notification of the event and have the ability to allow or deny the connection attempt. (I know this is basic firewall functionality I am referring to here, but there is no firewall on the market that can do exactly what I want, when I want, and how I want it for this specific program) I have seen the packet filtering API that is provided by Windows, but that only seems to filter on IP's and Ports. I want to filter on application ! Can anybody please point my nose in the right direction here. Thanks OD VC++ .NET 2002 on Windows XP and above ...

    Richard Andrew x64R 1 Reply Last reply
    0
    • O od ananzi co za

      Hi All, I want to attempt to block a specific program from establishing outgoing TCP/UDP connections. Thus as the (external) app attempts to make a socket connection, I want to receive notification of the event and have the ability to allow or deny the connection attempt. (I know this is basic firewall functionality I am referring to here, but there is no firewall on the market that can do exactly what I want, when I want, and how I want it for this specific program) I have seen the packet filtering API that is provided by Windows, but that only seems to filter on IP's and Ports. I want to filter on application ! Can anybody please point my nose in the right direction here. Thanks OD VC++ .NET 2002 on Windows XP and above ...

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      Try implementing a Layered Service Provider. This is a DLL that gets loaded by every application that uses Winsock. Look up Winsock Layered Service Provider, or LSP.

      “Cannot find REALITY.SYS...Universe Halted.” ~ God on phone with Microsoft Customer Support

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups