Recent posts

#1
26.7, 26.10 Series / Re: Any way to automate update...
Last post by BrokenOnion - Today at 09:09:14 AM
Quote from: cookiemonster on <strong>Today</strong> at 12:15:45 AMLikely yes but if you look at the code behind a tool like sanoid, you'll realise that managing the snapshot is not trivial.
That's not even discussing the idea of auto updating without an admin eyes on the process.

Are there any scripts that you would recommend? I took a look online what Sanoid is but I could barely find anything, there were a few mentions about Zabix, ESXi but nothing for bare metal installation of OPNsense.
#2
26.7, 26.10 Series / Re: Https Squid Proxy
Last post by sopex - Today at 01:16:24 AM
It's too fragile to make sense in my experience.
#3
Tutorials and FAQs / Re: HOWTO - Redirect all DNS R...
Last post by nautilus7 - Today at 12:47:00 AM
Quote from: meyergru on September 04, 2025, 09:24:14 PMI just tried to do this on my own OpnSense, however, I noticed two problems:

1. I use an nmap scan like:

nmap -sn -n --reason -PE -PS135,445,3389,22,80,443,8888 -PU53 --min-parallelism 100 --max-rtt-timeout 100ms --host-timeout 5s -T4 -oX - $network

to detect live systems on my own VLANs and on some site-2-site networks connected over VPN.

Because of nmap checking if the UDP port 53 is open on the targets, it will issue DNS requests that are not targeted to the LAN address of OpnSense. Since those will then be redirected to OpnSense by the given NAT port forwarding rule:

Interface: LAN
Protocol: TCP/UDP
Destination / Invert: Checked
Destination: LAN address
Destination Port: DNS
Redirect target IP: 127.0.0.1
Redirect target port: DNS
NAT reflection: Disable

This will result in a positive answer - essentially, all hosts will be flagged as being "up".

I order to fix this, one should probably use an RFC1918 alias and use !RFC1918 for the destination. In my case, I grouped all the local VLANs together, so the NAT rule becomes:

Interface: LOCAL_VLANS (alias containing all local VLANs)
Protocol: TCP/UDP
Destination / Invert: Checked
Destination: RFC1918 (alias containing all RFC1918 networks)
Destination Port: DNS
Redirect target IP: 127.0.0.1
Redirect target port: DNS
NAT reflection: Disable

You could get away by using !"LOCAL_VLANs net" as destination, but this will exclude the site-2-site subnets, so !RFC1918 is safer.


2. I wanted the same functionality for IPv6 (this was once discussed without a solution here), for which you have to create a second NAT rule that looks like this:

Interface: LOCAL_VLANS (alias containing all local VLANs)
Protocol: TCP/UDP
Destination / Invert: Checked
Destination: This Firewall
Destination Port: DNS
Redirect target IP: LAN_IPv6 (alias containing a dynamic IPv6 host with the EUI-64 of any VLAN interface that listens to DNS)
Redirect target port: DNS
NAT reflection: Disable

Note that the LAN_IPv6 alias must contain a routeable IPv6 for this to work, so ::1 or fe80::xxxx are out of the question.

Can you explain a little bit how you created the LAN_IPv6 alias? I have several vlans and my dns server is adguardhome running on OPNsense and listening to all vlans. OPNsense itself has an ipv6 address that the lower 64 bits is just 252. Do I select "dynamic ipv6 host" as the alias type, set the appropriate vlan in "interface" and put ::252 in the "content"? Do I create one alias for each of my vlans and one NAT rule for each one aswell?

#4
Likely yes but if you look at the code behind a tool like sanoid, you'll realise that managing the snapshot is not trivial.
That's not even discussing the idea of auto updating without an admin eyes on the process.
#5
1) interfaces > assignments . Find your WAN device, edit with pencil icon. Drop down of "IPv4 Configuration Type". Change there.
#6
26.7, 26.10 Series / How can I switch WAN via PPPoe...
Last post by BrokenOnion - November 20, 2026, 11:50:55 PM
Hi,

I'm considering switching my current broadband to Virgin Media that will allow me to use 1gb broadband connection but I'm struggling to find how to make the configuration change in OPNsense.

Doing my research online, to make it work, I will need to switch the supplied router into modem mode then connect it to my OPNsense box and set it to use DHCP.

There are two issues with this currently:

1) I currently have my WAN interface set to use PPPoe connection and don't know how to make the change. I tried looking for it online but couldn't find much.

2) For many personal reasons, I currently still have my legacy firewall rules in place, would this change impact or be blocked from working because legacy firewall rules are still in place?

Thanks,
BrokenOnion
#7
26.7, 26.10 Series / Any way to automate updates wi...
Last post by BrokenOnion - November 20, 2026, 11:37:25 PM
Hi,

Are there any ways to automate creating snapshots by date as a title, activating it then doing a reboot to use the new snapshot then start any available updates, all of this done on a specific day of the week at a specific time?

I know there is Cron for scheduling and perhaps using Bash for the rest? Would this be feasible to script and implement into OPNsense? I would like to automate the update process so it's self maintained and I don't need to login into the firewall to kick off the update process.

Thanks,
BrokenOnion
#8
26.7, 26.10 Series / Re: Protectli VP-6630 Sporadic...
Last post by nero355 - November 20, 2026, 10:58:56 PM
Quote from: cynthrune on November 20, 2026, 10:28:30 PMmemtest86+ did one complete run, passed. Unsure if I should run more of them or for longer though?

we put artificial load on the system, pinning the CPU to 100% for around 2 minutes, not fully adqeuate for a full test but it would put more overall load than we would normally observe. ran fine, this also pushed temps higher than we would see during normal operation.
Push those two for at least 24 hours and see what happens :)
#9
Hardware and Performance / Re: Advice needed: Mini PC for...
Last post by nero355 - November 20, 2026, 10:52:47 PM
Quote from: OPNenthu on November 20, 2026, 10:06:38 PM
Quote from: nero355 on November 20, 2026, 05:43:25 PM- https://forum.opnsense.org/index.php?topic=48695.msg275909;topicseen#msg275909 <= Multiple posts about Protectli not upgrading the Intel i226 NICs to the latest firmware before shipping out their units or having access to the Intel files from Intel directly !!
That one's not fair.  Which vendor does provide the i226 bins?
Sadly... None...

And that's the whole issue I have with most "Which Mini PC to buy ?!" discussions :
People claiming more expensive brands are better/more reliable, while they don't offer that much more, but do ask a lot more money for their products!
#10
General Discussion / Re: Internet only vlan with IP...
Last post by nero355 - November 20, 2026, 10:48:25 PM
Quote from: Maurice on November 20, 2026, 06:36:52 PMPrevent what?
I meant the LAN traffic going out via the WAN, but I guess this :
QuoteFor packets handled by policy routing, a null route does nothing since the routing table is ignored.
Answers that part : It will not block it.