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. Windows API
  4. Windows Firewall Issue - is it me or is it a bug.

Windows Firewall Issue - is it me or is it a bug.

Scheduled Pinned Locked Moved Windows API
helpsysadminquestion
3 Posts 2 Posters 5 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.
  • M Offline
    M Offline
    Member 3717204
    wrote on last edited by
    #1

    I am trying to make a TCP connection to a port on another machine which may or may not have a service listening on it on any one time. Not having a listener is common and not a problem in that I can switch to an alternate server in a timely maner. The problem is that with out Windows Firewall on the server machine, the delay is about 1 second for the connect() call. With windows firewall the delay is 21 seconds and in fact the server does not sent a RST (Reset) at all. Would one consider this a bug? or feature?

    L 1 Reply Last reply
    0
    • M Member 3717204

      I am trying to make a TCP connection to a port on another machine which may or may not have a service listening on it on any one time. Not having a listener is common and not a problem in that I can switch to an alternate server in a timely maner. The problem is that with out Windows Firewall on the server machine, the delay is about 1 second for the connect() call. With windows firewall the delay is 21 seconds and in fact the server does not sent a RST (Reset) at all. Would one consider this a bug? or feature?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Member 3717204 wrote:

      Would one consider this a bug? or feature?

      Its absolutely a feature of most firewalls. Most servers will respond with a packet with the RST bit set when you attempt to connect to a closed socket. Its easy to imagine how this could be abused... if BadHacker forges packets with InnocentUsers IP address... BadHacker can cause thousands of RST packets to flood InnocentUsers IP. Anyway... why don't you just open that port so it is not filtered? Best Wishes, -David Delaune

      M 1 Reply Last reply
      0
      • L Lost User

        Member 3717204 wrote:

        Would one consider this a bug? or feature?

        Its absolutely a feature of most firewalls. Most servers will respond with a packet with the RST bit set when you attempt to connect to a closed socket. Its easy to imagine how this could be abused... if BadHacker forges packets with InnocentUsers IP address... BadHacker can cause thousands of RST packets to flood InnocentUsers IP. Anyway... why don't you just open that port so it is not filtered? Best Wishes, -David Delaune

        M Offline
        M Offline
        Member 3717204
        wrote on last edited by
        #3

        Ok, I understand the logic now.

        Randor wrote:

        Anyway... why don't you just open that port so it is not filtered?

        The application is entered as an exception, but since the application is designed for a LAN the port is not fixed, though I could change this. Thanks.

        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