By default, PF limits the maximum number of connections by 5000.

Source: Internet
Author: User
If you know the problem, PF does have the default settings. man checked PF. conf and found the cause.
# Pfctl-
TCP. First 30 s
TCP. Opening 5S
TCP. Established 18000 s
TCP. Closing 60 s
TCP. finwait 30 s
TCP. Closed 30 s
TCP. tsdiff 10 s
UDP. First 60 s
UDP. Single 30 s
UDP. Multiple 60 s
ICMP. First 20 s
ICMP. Error 10 s
Other. First 60 s
Other. Single 30 s
Other. Multiple 60 s
Frag 30 s
Interval 10 s
Adaptive. Start 6000 states
Adaptive. End 12000 states
SRC. Track 0 s

States hard limit 10000
Src-nodes hard limit 20000
Frags hard limit 5000
Tables hard limit 10000
Table-entries hard limit 100000

OS fingerprints:
696 fingerprints loaded

Frags hard limit 5000 sets the maximum number of connections for a single node (IP) to 5000.

So I added the following settings to PF. conf to optimize the default settings of PF.
Set limit States 200000.
Set limit frags 200000
Set limit Src-nodes 20000
Set limit tables 100000
Set limit table-entries 100000
Set Optimization aggressive

States hard limit 200000
Src-nodes hard limit 20000
Frags hard limit 200000
Tables hard limit 100000
Table-entries hard limit 100000


In this way, there will be no problem. The connection will go smoothly to 10000. Other new users, or stupid ones like me, will be taken as a warning in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.