Recent posts

#1
26.1, 26,4 Series / Re: 26.1.6 only works with E10...
Last post by meyergru - Today at 06:55:41 PM
The physical interface is limited to 1 Gbps, I doubt that the driver itself does anything w/r to timing. However, virtio on the vistualisation border should work just fine. IDK how SR-IOV comes into play here, because you do not / should not pass thru the NICs.

Just to make this clear: There are two basic ways you can do this:

1. By passing thru the physical NIC hardware to the VM guest. This absolutely needs a working FreeBSD for the hardware. I do not recommend it. This is where technologies like SR-IOV comes into play.

2. By attaching a virtual network card to the PVE host bridge. In the VM, you can then select which emulated hardware you want to present to the guest, so either E1000 or virtio or whatever hardware your guest supports. For OpnSense, I recommend this way and also, using the virtio drivers.
Virtio would show up as virtioX as network device names under OpnSense.

You MTU looks O.K., so this should work fine. Maybe the physical NIC has some optimisations to coalesce interrupts. This is often the case for high-speed NICs in order to handle traffic more efficiently. It may well be that this interferes and makes low-volume traffic look "choppy".

I would try to use another NIC type to rule out a hardware/driver problem on the PVE side of things, especially, because there are many problem reports for those adapters over on the Proxmox forum: https://forum.proxmox.com/search/19853344/?q=I40e+nic

#2
Isn't E1000 a 1Gbps interface? I thought that was the hard coded limit in the module hence why I'm shying away. I switched to vmxnet3 and it's working again. I suppose I just need this to spin up a basic config then will be able to switch to SR-IOV. One thing is sure: I have tried ever possible knob for virtio and it does not work. Here was the ping output:
QuoteC:\Users\bruh>ping 192.168.1.1 -l 1472 -f

Pinging 192.168.1.1 with 1472 bytes of data:
Reply from 192.168.1.1: bytes=1472 time=1ms TTL=64

Ping statistics for 192.168.1.1:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms
Control-C
^C
C:\Users\bruh>ping 192.168.1.1 -l 1473 -f

Pinging 192.168.1.1 with 1473 bytes of data:
Packet needs to be fragmented but DF set.

Ping statistics for 192.168.1.1:
    Packets: Sent = 1, Received = 0, Lost = 1 (100% loss),
Control-C
^C
C:\Users\bruh>ping 192.168.1.1 -l 4000

Pinging 192.168.1.1 with 4000 bytes of data:
Reply from 192.168.1.1: bytes=4000 time=1ms TTL=64
Reply from 192.168.1.1: bytes=4000 time=1ms TTL=64

Ping statistics for 192.168.1.1:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms
#3
it could be, but how to check it?

honestly, my FW ruleset is quite small (<200 rules) and most of them are the autogenerated ones, I will be surprised if it is something like this.

I dont know where or how to look at this point
#4
26.1, 26,4 Series / Re: 26.1.6 only works with E10...
Last post by meyergru - Today at 06:11:39 PM
I suppose there are no FreeBSD drivers for i40e, so you can only use virtio networking. The virtio drivers are pretty good in that there is no additional overhead to emulate any "real" hardware, so there should be no slowness, provided you do everything that is mentioned in the guide.

What I do not get: Even if virtio emulation does not work as expected and E1000 does, this is but a matter of performance, not functionality per se. So what is the problem with using E1000? AFAIK, there is no specific limit with either virtio nor E1000, modulo that any emulation layer through virtualisation limits performance with speeds way higher than 1 Gbps.

Without any specific details, it is hard to say more. Partial loading and general network slowness can be caused by many things that could also be occur if Proxmox was not involved, like wrong MTU settings (did you try to use jumbo packets?). By using OpnSense under Proxmox, you certainly make the setup more complex, that's for sure.
#5
Strangely, only the web UI seems impacted at this point. I can ssh fine. I tried large packet ping tests with DF bit set or off. Everything passes. So strange is almost like a TCP fragmentation issue but not
#6
Hmm. I looked through the doc, tried some tunables, but am not seeing network configuration I believe I should try. It looks like I have tried everything in that doc now, except for NATing between Proxmox and OPNSense which I don't believe I need or want.
#7
26.1, 26,4 Series / Re: Problem with shutdown/rebo...
Last post by mrzaz - Today at 05:12:52 PM
Hi Franco,

I have again ended up with same issue.
I tried to reboot opnsense from GUI and nothing happens on any stdout.

I then checked if suricata process is running which it does.
root@OPNsense:~ # ps aux | sort -nr -k4 | head -20
root    36693   0.0 24.8 16206888 5196580  -  Ss   Thu21     13:33.69 /usr/local/bin/suricata -D -d 8000 -d 8000 -d 8000 --pidfile /var/run/suricata.pid -c /usr/local/etc/suricata/suricata.yaml
root     9539   0.0 16.0  3698000 3337860  -  S    Thu21     17:14.09 /usr/local/bin/python3 /usr/local/share/maltrail/sensor.py (python3.13)
root    57558   0.0 11.9  2655060 2485608  -  S    Thu21     64:17.87 /usr/local/bin/python3 /usr/local/share/maltrail/sensor.py (python3.13)
root    45012   1.0  2.7  1915168  568444  -  S    Thu21     62:42.00 /usr/local/bin/tailscaled -port 41641 -tun tailscale0 -statedir /var/db/tailscale
root    80262   0.0  0.6   360832  116516  -  I    Thu21      3:27.83 /usr/local/bin/python3 /usr/local/opnsense/scripts/unbound/logger.py (python3.13)

root@OPNsense:~ # more /var/run/suricata.pid
36693

It should have been killed by now as I have waited several minutes.

I tried again in console and gets stuck killing suricata.

The system will reboot. Do you want to proceed? [y/N]: y

>>> Invoking stop script 'beep'
>>> Invoking stop script 'freebsd'
crowdsec_firewall is not running.
crowdsec not running? (check /var/run/crowdsec_daemon.pid).
lldpd not running? (check /var/run/lldpd.pid).
qemu_guest_agent not running? (check /var/run/qemu-ga.pid).
snmpd not running? (check /var/run/net_snmpd.pid).
Stopping suricata.
Waiting for PIDS: 36693

Same issue as before...

Not sure if related but have some issues with swap space so have added a second 2GB swap file.
swap_pager: out of swap space
swp_pager_getswapspace(18): failed

When I managed to clear the situation earlier by doing "/usr/local/etc/rc.d/suricata onestop"
and then it worked OK after reboot ro do another reboot using console.

But now back to hanging suricata. :-|

In system Backend log i found:
2026-06-26T23:48:48   Error   configd.py   Timeout (120) executing : 'ids' restart

Will try once more with /usr/local/etc/rc.d/suricata onestop

Not even that one managed to kill suricata.

root@OPNsense:~ # /usr/local/etc/rc.d/suricata onestop
Stopping suricata.
Waiting for PIDS: 36693

"kill -9 36693" was the only one tough enough to kill it.

I will try to reconfigure from "Divert(IPS) to Netmap(IPS) to see if issue persists.

/Dan Lundqvist
#8
26.7 Development Series / Re: OPNsense 26.7-BETA images
Last post by patient0 - Today at 04:59:06 PM
Quote from: franco on Today at 03:46:53 PMSure, open an issue, although it should fix it as it adds the parameter. I can check later.

I first try with a fresh installation and see if the same pops up.
#10
Hello,

I'm running a few i40e NICs on a Supermicro chassis for basic routing and SNAT. I haven't even gotten that far unfortunately though. Basically, with `qm set 100 --net0 virtio,bridge=vmbr0` I see slowness, partial loading, and inevitable unresponsiveness to the MGMT portal and therefore can't proceed. If I change `net0 e1000` everything works great without changing anything in `/etc/network/interfaces` or anywhere else. I have hardware offloading disabled (all 3). I tried disabling hardware offloading within Proxmox as well via `ethtool -k gro off`... and the rest of that command. Not sure what to do as without stable LAN over a bridge, this project is dead in the water with nothing I know that can easily replace it. i40e NICs are 10G so can't deal with e1000. I appreciate your help