Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
"ping: sendto: No buffer space available" under heavy load using pfatt bypass
« previous
next »
Print
Pages: [
1
]
Author
Topic: "ping: sendto: No buffer space available" under heavy load using pfatt bypass (Read 527 times)
neel
Newbie
Posts: 5
Karma: 0
"ping: sendto: No buffer space available" under heavy load using pfatt bypass
«
on:
August 30, 2024, 05:59:38 pm »
I have Minisforum MS-01 running OPNsense 24.7. This is connected to Frontier FiberOptic (ex-AT&T Fiber) using 802.1X with the AT&T Fiber bypass here:
https://github.com/MonkWho/pfatt
My connection runs 6 Tor relays where each instance has 8000+ TCP sessions open at once.
I have a problem: when running my server for more than a couple hours, the WAN goes down and I get an "ping: sendto: No buffer space available" issue. Rebooting brings back the connection until this happens again. If I use the Minisforum i226 NICs, it happens within 1-2 hours. Using a Dell Broadcom BCM5720 NIC, it lasts longer but goes down around 12 hours.
Is there a way to solve this?
When I had the issues, I didn't have any tunables but I'm going to try this in /boot/loader.conf.local:
Code:
[Select]
kern.ipc.maxsockbuf=68194304
kern.ipc.nmbclusters=32311168
kern.ipc.nmbjumbop=16155584
Logged
Patrick M. Hausen
Hero Member
Posts: 6799
Karma: 571
Re: "ping: sendto: No buffer space available" under heavy load using pfatt bypass
«
Reply #1 on:
August 30, 2024, 09:56:01 pm »
Use System > Settings > Tunables instead of loader.conf.local if you want the tunables to take effect.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
neel
Newbie
Posts: 5
Karma: 0
Re: "ping: sendto: No buffer space available" under heavy load using pfatt bypass
«
Reply #2 on:
August 30, 2024, 11:10:23 pm »
That's what I'm actually doing now, using the tunables section in the WebUI.
Logged
neel
Newbie
Posts: 5
Karma: 0
Re: "ping: sendto: No buffer space available" under heavy load using pfatt bypass
«
Reply #3 on:
August 31, 2024, 08:21:44 pm »
I've found the real culprit (hopefully), apparently logging while using pfatt causes issues, that or the buffers were too small.
Tor relays open a lot of TCP connections and trying to log each session while running bypass for some reason kills my internet. pfSense+ does have the advantage of a built-in AT&T bypass but CE lacks it and Netgate no longer gives homelab licenses.
I've had 24 hours of uptime since I disabled logging while allowing ~150-250 Mbps concurrent Tor traffic.
Logged
neel
Newbie
Posts: 5
Karma: 0
Re: "ping: sendto: No buffer space available" under heavy load using pfatt bypass
«
Reply #4 on:
September 01, 2024, 04:29:23 am »
Nevermind, it crashed after about 30 hours. I'm trying something else now: the obscure net.graph.maxdgram and net.graph.recvspace tunables. For some reason they were very small and while it works for most bypass applications crashes with Tor relays.
This forum post had some tunables and got me thinking, it must be netgraph buffers:
https://freebsd-questions.freebsd.narkive.com/lPixO7df/ping-sendto-no-buffer-space-available
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
"ping: sendto: No buffer space available" under heavy load using pfatt bypass