Any help out here? This has been a nightmare for me. My ISP had issues since Friday and when this happens, opnsense doesn't automatically "recover". So when I'm not home when there is a network outage, everybody is affected.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: EricPerl on January 20, 2025, 09:53:30 PMIt's in your HOWTO ;-)QuoteThat is, if the ZFS "autotrim" feature is not set manually. You can either set this via the OpnSense CLI with "zpool set autotrim=on zroot" or, better, add a daily cron job to to this (System: Settings: Cron) with "zroot" as parameter.
You can trim your zpool once via CLI with "zpool trim zroot".
Quote from: meyergru on January 20, 2025, 03:42:46 PMI do not know if autotrim has always been on with OpnSense. Maybe your initial installation did have it disabled?
Did you check with "zpool get all | fgrep autotrim"? All my instances have it enabled.
root@OPNsense:~ # zpool get all | fgrep autotrim
zroot autotrim off default
Quote from: meyergru on January 19, 2025, 04:37:14 PMQuote from: mooh on January 02, 2025, 06:31:49 PMYes, I you have a ZFS pool inside your VM, the VM needs to do the trimming and scrubbing. If this pools happens to be mapped to a file in a ZFS pool of the host, the scrubbing is not needed since it is done by the host. Actually, scrubbing a virtual ZFS pool doesn't make sense.
Sorry, but this is plain wrong or at least ambiguous.. The trimming and scrubbing taking place on the VM host works on its own ZFS pools, not on the OpnSense pools.
Within those pools, you have virtual disks, which are usually ZFS volumes. What the VM OS - in this case OpnSense - does with that, is its own business and the VM host does not look into it. OpnSense could as well be installed on UFS, which Proxmox would not even understand. On the other hand, you could have LVM filesystems on Proxmox and ZFS on OpnSense. You see: Even if both OpnSense and Proxmox use ZFS pools, they are independent of one another. If this wasn't clear already, just look at the names: Proxmox names its root zpool "rpool", whereas OpnSense names its pool "zroot".
Thus taking care of filesystems (or zpools) in an OpnSense VM is just as much its business as without virtualisation. Think of logical errors in the VM itself, which are not manifested on the underlying hardware.
For the default zroot pool, autotrim is on. While you could scrub, it would only be useful if you had multiple disks. If OpnSense is operated as VM, it would be more useful if the underlying Proxmox storage was redundant.
Quote from: pfry on January 19, 2025, 05:03:01 PMI haven't looked into the gateway monitoring mechanisms in OPNsense, but have you tried monitoring (pinging) a directly-connected IP (the immediate next-hop) instead of a remote?
Quote from: mooh on January 02, 2025, 04:12:00 PMUnless you have attached a ZFS pool to the VM, the machine hosting the zpool should do the trimming and scrubbing.
Quote from: franco on December 06, 2024, 08:51:40 AMGot it. So don't use that method for now?
Looks I did not respond here...Quote from: kevindd992002 on October 17, 2024, 08:14:34 AM
root@OPNsense:~ # opnsense-patch -a punktDeForks -c plugins a1f6543
fetch: https://github.com/punktDeForks/plugins/commit/a1f6543.patch: Not Found
How do I change the path to "opnsense-plugins" instead?
Since the repo is called "opnsense-plugins" just give it from the command line...
# opnsense-patch -a punktDeForks -c plugins -r opnsense-plugins a1f6543
However, there are a few bugs that I have to address for separate accounts and alternative repository names that don't match our defaults.
Cheers,
Franco
Quote from: franco on October 29, 2024, 08:35:38 AM
The patch in question was added to 24.7.x already. You can add the "Manual gateway switch" cron job to adjust the situation.
I don't know about the other *sense. You trade a bug for another either way I think, but whatever works works.
Cheers,
Franco
Quote2024-10-18T15:31:25 Error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-10-18T15:31:25 Error: Once the client is upgraded, set "require_message_authenticator = true" for client OPNsense
2024-10-18T15:31:25 Error: UPGRADE THE CLIENT AS YOUR NETWORK MAY BE VULNERABLE TO THE BLASTRADIUS ATTACK.
2024-10-18T15:31:25 Error: The packet does not contain Message-Authenticator, which is a security issue.
2024-10-18T15:31:25 Error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-10-18T15:31:25 Error: Setting "limit_proxy_state = true" for client OPNsense
2024-10-18T15:31:25 Error: BlastRADIUS check: Received packet without Proxy-State.
2024-10-18T15:31:25 Error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-10-18T15:31:25 Error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-10-18T15:31:25 Error: Once the client is upgraded, set "require_message_authenticator = true" for client OPNsense
2024-10-18T15:31:25 Error: UPGRADE THE CLIENT AS YOUR NETWORK IS VULNERABLE TO THE BLASTRADIUS ATTACK.
2024-10-18T15:31:25 Error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2024-10-18T15:31:25 Error: Setting "require_message_authenticator = false" for client OPNsense
2024-10-18T15:31:25 Error: BlastRADIUS check: Received packet without Message-Authenticator.