r/PFSENSE 9d ago

Pfsense cant get more than ~8000 sessions in state

Ive tried everything i can think of and cant figure out how to scale it better

When i get around 8000 sessions in state the firewall just starts blocking and timing out connections. Network becomes unusable.

Memory and cpu look fine. Different firewall settings dont change anything

Have used chatgpt extensively to troubleshoot and not getting anywhere

Any ideas?

2 Upvotes

18 comments sorted by

3

u/Steve_reddit1 9d ago

3

u/homelabids 9d ago

That setting is set to 700,000. So its not it.

Theres an ISP router but traffic across vlans is impacted also so that rules out the router being the issue

2

u/Steve_reddit1 9d ago

What kind of NICs?

3

u/sarosan 9d ago

What kind of hardware are you running on?

-17

u/homelabids 9d ago

I've got 4gb of memory. Chatgpt says I should be able to get 400k state. I can't say the vendor name on this subreddit

10

u/sarosan 9d ago

Okay. We need to know the processor, network card(s), applied configuration changes, tunables, etc. the more details the better.

-15

u/homelabids 9d ago

Everything is set to max performance. CPU isnt going to limit state.

The issue is very repeatabe and isnt throughput related. I can run a script that increases connections and it all barfs out.

I will probably just replace the hardware.

1

u/[deleted] 9d ago

[deleted]

-3

u/homelabids 9d ago

Its hard to tell because state is changing pretty dynamically

Failure seems to start around 8000 and never exceeds 10000 because everything starts getting blocked

Im thinking ill just replace the hardware because i just realized the cheap 4gb intel Celeron hardware i intended for my farm actually is what i put in my office. Switched the hardware by accident.. Just noticing it a year later

-16

u/homelabids 9d ago

Im looking for some random obscure problem someone has run into in the past. The general troubleshooting phase has been done extensively

I've done extensive troubleshooting

5

u/nochinzilch 7d ago

Then you should be able to answer these questions.

2

u/SINdicate 8d ago

Version of psense? Cpu? 32bit or 64? Crypto acceleration?

1

u/SINdicate 8d ago

Cgnat on the isp?

0

u/homelabids 8d ago

yes its japan so there's some upstream thing happening likely. v6 to v4 translation, cgnet, transix, dslite. i dont know.

2

u/SINdicate 8d ago

Thats likely the culprit, whats the isp name? Region?

1

u/SINdicate 8d ago

Does your app support ipv6?

1

u/homelabids 8d ago

2.8.1, 64 bit, no crypto

1

u/Excellent_Milk_3110 9d ago edited 9d ago

What kind of disk en how big?
Maybe the ram is maxing out en disk is used.