hits Default deny / state violation rule
But I don't know if that is realistic behavior.
Any advice on how to investigate?
opnsense-update -zkr 24.7.3-no_sa
I don't run the IGMP Proxy service (actually not even using IGMP at all in my network).So, I would assume that this is not related.
As currently the other thread is more active I posted my assumption based on the current testing there just a few moments ago.But I am very open to switch to this one, if we feel like the "ICMP error message too short (ip6)" logs can be targeted with the full-revert kernel (and are therefore manageble), while the state losses don't seem to be affected by the -no_sa kernel.
❯ iperf3 -c 198.18.50.136 -t 3 --bidirConnecting to host 198.18.50.136, port 5201[ 5] local 198.18.178.160 port 42184 connected to 198.18.50.136 port 5201[ 7] local 198.18.178.160 port 42188 connected to 198.18.50.136 port 5201[ ID][Role] Interval Transfer Bitrate Retr Cwnd[ 5][TX-C] 0.00-1.00 sec 201 KBytes [color=red]1.64 Mbits/sec 2 [/color] 1.41 KBytes [ 7][RX-C] 0.00-1.00 sec 111 MBytes 931 Mbits/sec [ 5][TX-C] 1.00-2.00 sec 0.00 Bytes [color=red]0.00 bits/sec 1 [/color] 1.41 KBytes [ 7][RX-C] 1.00-2.00 sec 111 MBytes 932 Mbits/sec [ 5][TX-C] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec 0 1.41 KBytes [ 7][RX-C] 2.00-3.00 sec 111 MBytes 932 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - -
#iperf3 -c iperf.online.net 198.18.50.136 -t 3 --bidirConnecting to host iperf.online.net, port 5201[ 5] local 192.168.10.3 port 48222 connected to 51.158.1.21 port 5201[ 7] local 192.168.10.3 port 48226 connected to 51.158.1.21 port 5201[ ID][Role] Interval Transfer Bitrate Retr Cwnd[ 5][TX-C] 0.00-1.00 sec 60.2 MBytes 505 Mbits/sec 16 5.20 MBytes[ 7][RX-C] 0.00-1.00 sec 96.6 MBytes 810 Mbits/sec[ 5][TX-C] 1.00-2.00 sec 54.5 MBytes 457 Mbits/sec 64 3.24 MBytes[ 7][RX-C] 1.00-2.00 sec 132 MBytes 1.11 Gbits/sec[ 5][TX-C] 2.00-3.00 sec 53.2 MBytes 447 Mbits/sec 114 3.11 MBytes[ 7][RX-C] 2.00-3.00 sec 132 MBytes 1.11 Gbits/sec- - - - - - - - - - - - - - - - - - - - - - - - -[ ID][Role] Interval Transfer Bitrate Retr[ 5][TX-C] 0.00-3.00 sec 168 MBytes 470 Mbits/sec 194 sender[ 5][TX-C] 0.00-3.03 sec 146 MBytes 405 Mbits/sec receiver[ 7][RX-C] 0.00-3.00 sec 417 MBytes 1.16 Gbits/sec 3203 sender[ 7][RX-C] 0.00-3.03 sec 361 MBytes 1000 Mbits/sec
You could try with "-u" to see if UDP is faster. If it is, I would guess that your MTU is misconfigured. Can you try this to find your real maximum MTU?Probably, setting "-M 1400" would show if this is the problem.
The MTU I have set is (unfortunately) not the problem, as I am only testing between two local VLANs (MTU==1500) that are routed/filtered via opnsense. I could try jumbo frames, maybe it can get even worse ;-)
The reference to pppoe only referred to the fact that this is my slowest connection (100/40); however, the problem is not as obvious there as with my gigabit/VLAN/LAGG connections.I would like to point out that this topic is about allowed traffic inexplicably hitting the "last rule", a problem with pf and TCP states is suspected, and that this is interfering with TCP connections.
So there are alo VLANs and LAGGs in the mix? Maybe netmap and suricata as well?
# iperf3 -c iperf.online.net 198.18.50.136 --bidirConnecting to host iperf.online.net, port 5201[ 5] local 10.200.10.2 port 44254 connected to 51.158.1.21 port 5201[ 7] local 10.200.10.2 port 44266 connected to 51.158.1.21 port 5201[ ID][Role] Interval Transfer Bitrate Retr Cwnd[ 5][TX-C] 0.00-1.00 sec 6.12 MBytes 51.4 Mbits/sec 15 222 KBytes [ 7][RX-C] 0.00-1.00 sec 23.2 MBytes 195 Mbits/sec [ 5][TX-C] 1.00-2.00 sec 4.88 MBytes 40.9 Mbits/sec 59 222 KBytes [ 7][RX-C] 1.00-2.00 sec 26.7 MBytes 224 Mbits/sec [ 5][TX-C] 2.00-3.00 sec 4.75 MBytes 39.8 Mbits/sec 92 228 KBytes [ 7][RX-C] 2.00-3.00 sec 26.7 MBytes 224 Mbits/sec [ 5][TX-C] 3.00-4.00 sec 3.57 MBytes 29.9 Mbits/sec 77 222 KBytes [ 7][RX-C] 3.00-4.00 sec 27.0 MBytes 227 Mbits/sec [ 5][TX-C] 4.00-5.00 sec 4.76 MBytes 39.9 Mbits/sec 136 166 KBytes [ 7][RX-C] 4.00-5.00 sec 27.1 MBytes 227 Mbits/sec [ 5][TX-C] 5.00-6.00 sec 3.52 MBytes 29.5 Mbits/sec 145 225 KBytes [ 7][RX-C] 5.00-6.00 sec 26.9 MBytes 225 Mbits/sec [ 5][TX-C] 6.00-7.00 sec 4.76 MBytes 39.9 Mbits/sec 90 219 KBytes [ 7][RX-C] 6.00-7.00 sec 27.0 MBytes 227 Mbits/sec [ 5][TX-C] 7.00-8.00 sec 4.70 MBytes 39.4 Mbits/sec 84 148 KBytes [ 7][RX-C] 7.00-8.00 sec 26.3 MBytes 221 Mbits/sec [ 5][TX-C] 8.00-9.00 sec 3.52 MBytes 29.6 Mbits/sec 85 222 KBytes [ 7][RX-C] 8.00-9.00 sec 27.7 MBytes 232 Mbits/sec [ 5][TX-C] 9.00-10.00 sec 4.80 MBytes 40.3 Mbits/sec 123 152 KBytes [ 7][RX-C] 9.00-10.00 sec 26.9 MBytes 226 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - -[ ID][Role] Interval Transfer Bitrate Retr[ 5][TX-C] 0.00-10.00 sec 45.4 MBytes 38.1 Mbits/sec 906 sender[ 5][TX-C] 0.00-10.02 sec 42.3 MBytes 35.4 Mbits/sec receiver[ 7][RX-C] 0.00-10.00 sec 277 MBytes 233 Mbits/sec 2261 sender[ 7][RX-C] 0.00-10.02 sec 266 MBytes 222 Mbits/sec receiveriperf Done.
# iperf3 -c iperf.online.net 198.18.50.136 --bidirConnecting to host iperf.online.net, port 5201[ 5] local 10.200.10.2 port 52252 connected to 51.158.1.21 port 5201[ 7] local 10.200.10.2 port 52266 connected to 51.158.1.21 port 5201[ ID][Role] Interval Transfer Bitrate Retr Cwnd[ 5][TX-C] 0.00-1.00 sec 7.46 MBytes 62.6 Mbits/sec 91 382 KBytes [ 7][RX-C] 0.00-1.00 sec 23.7 MBytes 199 Mbits/sec [ 5][TX-C] 1.00-2.00 sec 4.66 MBytes 39.1 Mbits/sec 33 294 KBytes [ 7][RX-C] 1.00-2.00 sec 29.1 MBytes 244 Mbits/sec [ 5][TX-C] 2.00-3.00 sec 4.73 MBytes 39.7 Mbits/sec 12 259 KBytes [ 7][RX-C] 2.00-3.00 sec 30.2 MBytes 253 Mbits/sec [ 5][TX-C] 3.00-4.00 sec 4.70 MBytes 39.4 Mbits/sec 0 276 KBytes [ 7][RX-C] 3.00-4.00 sec 31.9 MBytes 267 Mbits/sec [ 5][TX-C] 4.00-5.00 sec 4.70 MBytes 39.4 Mbits/sec 0 253 KBytes [ 7][RX-C] 4.00-5.00 sec 30.7 MBytes 257 Mbits/sec [ 5][TX-C] 5.00-6.00 sec 4.63 MBytes 38.8 Mbits/sec 0 264 KBytes [ 7][RX-C] 5.00-6.00 sec 29.4 MBytes 247 Mbits/sec [ 5][TX-C] 6.00-7.00 sec 4.70 MBytes 39.5 Mbits/sec 0 273 KBytes [ 7][RX-C] 6.00-7.00 sec 33.6 MBytes 282 Mbits/sec [ 5][TX-C] 7.00-8.00 sec 4.67 MBytes 39.2 Mbits/sec 0 270 KBytes [ 7][RX-C] 7.00-8.00 sec 31.9 MBytes 267 Mbits/sec [ 5][TX-C] 8.00-9.00 sec 4.66 MBytes 39.1 Mbits/sec 0 262 KBytes [ 7][RX-C] 8.00-9.00 sec 31.5 MBytes 265 Mbits/sec [ 5][TX-C] 9.00-10.00 sec 4.70 MBytes 39.4 Mbits/sec 0 5.62 KBytes [ 7][RX-C] 9.00-10.00 sec 31.4 MBytes 264 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - -[ ID][Role] Interval Transfer Bitrate Retr[ 5][TX-C] 0.00-10.00 sec 49.6 MBytes 41.6 Mbits/sec 136 sender[ 5][TX-C] 0.00-10.02 sec 46.7 MBytes 39.1 Mbits/sec receiver[ 7][RX-C] 0.00-10.00 sec 320 MBytes 268 Mbits/sec 1054 sender[ 7][RX-C] 0.00-10.02 sec 303 MBytes 254 Mbits/sec receiveriperf Done.
2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 79.222.100.212:488 99.88.77.66:64307 stack: 79.222.100.212:488 10.0.1.7:56542 [lo=2251669520 high=2251734519 win=502 modulator=0 wscale=7] [lo=232729624 high=232785857 win=510 modulator=0 wscale=7] 10:10 R seq=232729624 (232721729) ack=2251669520 len=0 ackskew=0 pkts=12:16 dir=in,rev 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:56542 79.222.100.212:488 stack: - [lo=2251669520 high=2251734519 win=502 modulator=0 wscale=7] [lo=232729624 high=232785857 win=510 modulator=0 wscale=7] 10:10 R seq=232729624 (232721729) ack=2251669520 len=0 ackskew=0 pkts=12:15 dir=out,rev 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 79.222.100.212:488 99.88.77.66:64307 stack: 79.222.100.212:488 10.0.1.7:56542 [lo=2251669520 high=2251734519 win=502 modulator=0 wscale=7] [lo=232729624 high=232785857 win=510 modulator=0 wscale=7] 10:10 R seq=232729624 (232721729) ack=2251669520 len=0 ackskew=0 pkts=12:15 dir=in,rev 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 79.222.100.212:488 99.88.77.66:64307 stack: 79.222.100.212:488 10.0.1.7:56542 [lo=2251669520 high=2251734519 win=502 modulator=0 wscale=7] [lo=232723169 high=232785857 win=510 modulator=0 wscale=7] 9:4 R seq=2251669520 (2251669495) ack=232723169 len=0 ackskew=0 pkts=11:9 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:56542 79.222.100.212:488 stack: - [lo=2251669520 high=2251734519 win=502 modulator=0 wscale=7] [lo=232723169 high=232785857 win=510 modulator=0 wscale=7] 9:4 R seq=2251669520 (2251669495) ack=232723169 len=0 ackskew=0 pkts=11:9 dir=in,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 10.0.2.36:9443 10.0.1.7:48268 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=14:14 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:48268 10.0.2.36:9443 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=14:14 dir=in,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 10.0.2.36:9443 10.0.1.7:48268 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=13:14 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:48268 10.0.2.36:9443 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=13:14 dir=in,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 10.0.2.36:9443 10.0.1.7:48268 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=12:14 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:48268 10.0.2.36:9443 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=12:14 dir=in,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 10.0.2.36:9443 10.0.1.7:48268 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=11:14 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:48268 10.0.2.36:9443 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=11:14 dir=in,fwd 2024-09-09T10:30:02 Notice kernel TCP out wire: 10.0.2.36:9443 10.0.1.7:48268 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=10:14 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: pf: ICMP error message too short (ip6) 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:48268 10.0.2.36:9443 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009336067 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009336067 len=0 ackskew=0 pkts=10:14 dir=in,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP out wire: 10.0.2.36:9443 10.0.1.7:48268 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009332316 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009332316 len=0 ackskew=0 pkts=9:10 dir=out,fwd 2024-09-09T10:30:02 Notice kernel pf: loose state match: TCP in wire: 10.0.1.7:48268 10.0.2.36:9443 stack: - [lo=1094662497 high=1094727369 win=502 modulator=0 wscale=7] [lo=1009331028 high=1009389476 win=510 modulator=0 wscale=7] 10:10 R seq=1094662497 (1094662473) ack=1009331028 len=0 ackskew=0 pkts=9:9 dir=in,fwd 2024-09-09T10:30:01 Notice kernel pf: ICMP error message too short (ip6) 2024-09-09T10:30:01 Notice kernel pf: ICMP error message too short (ip6) 2024-09-09T10:30:01 Notice kernel pf: ICMP error message too short (ip6) 2024-09-09T10:30:00 Notice kernel pf: loose state match: TCP out wire: 157.240.252.35:443 99.88.77.66:18542 stack: 157.240.252.35:443 10.0.1.7:57294 [lo=3539577390 high=3539646254 win=502 modulator=0 wscale=7] [lo=4072763929 high=4072811232 win=269 modulator=0 wscale=8] 10:10 R seq=3539577390 (3539577366) ack=4072763929 len=0 ackskew=0 pkts=24:28 dir=out,fwd
I think I'm running into an issue which has the same root cause as reported here.....