• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

State Table Timeout

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 8.8k Views
Loading More Posts
  • 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.
  • J
    jlepthien
    last edited by Sep 27, 2011, 9:48 AM

    Hi there,

    I am just curious what the default tcp timeout for an entry in the state table might be. I am looking at the state table right now and see the following:

    tcp 80.67.x.x:993 <- 10.0.100.2:61538                          ESTABLISHED:ESTABLISHED
    tcp 74.125.x.x:5222 <- 10.0.100.2:51210                         ESTABLISHED:ESTABLISHED
    tcp 80.67.x.x:993 <- 10.0.100.2:54622                                 ESTABLISHED:ESTABLISHED
    tcp 10.0.100.2:54622 -> 87.184.x.x:51160 -> 80.67.x.x:993 ESTABLISHED:ESTABLISHED
    tcp 74.125.x.x:5222 <- 10.0.100.2:54624                         ESTABLISHED:ESTABLISHED
    tcp 10.0.100.2:54624 -> 87.184.x.x:63754 -> 74.125.x.x:5222 ESTABLISHED:ESTABLISHED

    The computer with the ip 10.0.100.2 is shutdown since last night, so for about 14 hours now…why are these states still kept? Shouldn't these have timed out long before?

    Thanks

    | apple fanboy | music lover | network and security specialist | in love with cisco systems |

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Sep 28, 2011, 6:57 PM

      It depends on what your firewall optimization settings are, but you can check the timers with pfctl -st.

      For example, on a vm I just grabbed the console from, it shows:

      : pfctl -st
      tcp.first                   120s
      tcp.opening                  30s
      tcp.established           86400s
      tcp.closing                 900s
      tcp.finwait                  45s
      tcp.closed                   90s
      tcp.tsdiff                   30s
      udp.first                    60s
      udp.single                   30s
      udp.multiple                 60s
      icmp.first                   20s
      icmp.error                   10s
      other.first                  60s
      other.single                 30s
      other.multiple               60s
      frag                         30s
      interval                     10s
      adaptive.start            28200 states
      adaptive.end              56400 states
      src.track                     0s
      

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 2
      • J
        jlepthien
        last edited by Sep 28, 2011, 6:59 PM

        Thanks jimp. Well the tcp.established 86400s is the root of all evil… ;-)

        Isn't that quite long?

        | apple fanboy | music lover | network and security specialist | in love with cisco systems |

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Sep 28, 2011, 7:01 PM

          Not for an established connection.

          If a system properly terminates its connections, the entries go away immediately. They don't hang out there forever unless one side believes it is still open.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received