Recent posts

#1
General Discussion / Re: Release related end-user b...
Last post by OPNenthu - Today at 01:32:27 PM
Can't remember the last time I saw something like that on a minor release, but good to know that it would be there.  If something like that is maintained with whatever frequency of updates you guys are planning then it's all good, I think.  Thank you!
#2
Bigger manual intervention is stuff like this:

https://github.com/opnsense/changelog/blob/218ee41bc2860e1e1b38cafde5f8d8fcd47f644e/community/26.7/26.7#L95-L101
#3
General Discussion / Re: Release related end-user b...
Last post by OPNenthu - Today at 01:04:52 PM
I think the LLM summary still also misses on informing what (if anything) requires manual intervention.
#4
General Discussion / Re: Release related end-user b...
Last post by OPNenthu - Today at 12:59:40 PM
Yes, it's essentially a commit log for developers.

I have to agree that it gives more information and is preferred.  The plain-english LLM summary is also useful... in addition, not instead. :)
#5
General Discussion / Re: Release related end-user b...
Last post by sopex - Today at 12:55:44 PM
The "problem" with the changelog is that it is extremely detailed and lists every change.
To do this efficiently without using an LLM to write beautiful descriptions, you essentially get the relevant commit name.

Theoretically, the changes on minor releases are all benign :)

This is 26.7.9 fed through an LLM its surely more reassuring but you are losing information...

26.7.9
#6
26.7, 26.10 Series / Re: We need to configure certa...
Last post by gunking2 - Today at 12:30:42 PM
Quote from: (MARLOO) on <strong>Today</strong> at 05:46:46 AMHello, you have an asymmetric-routing issue.

Create a LAN firewall rule: Source = server IP xx, Destination = Any, Gateway = WAN01. Place it above any Multi-WAN rules.

In Firewall → NAT → Destination NAT, open the server's rule and set Firewall rule to Manual.

Then go to Firewall → Rules → WAN01, open the rule for the redirected service, click Show advanced options, and set Reply-to gateway to the WAN01 gateway.

This forces replies back through WAN01, preventing the issue when WAN02 or WAN03 are online.

I hope this helps




Thank you very much.

However,

Regarding the instructions provided—specifically, going to Firewall → NAT → Destination NAT, opening the server's rule, and setting the "Firewall rule" to "Manual"—this did not work. I tried an alternative:

I went to Firewall → NAT → Destination NAT, opened the server's rule, and set the "Firewall rule" to "Register rule." (This got the system working again.)
#7
General Discussion / Re: New ADGuardHome broken
Last post by mimugmail - Today at 12:06:12 PM
I heavily work with the logs as my kids an me are a purple team and regarding to logging in UI it's more a step forward.
Updating via Plugin went fine on my systems and I have no issues seen in reddit so I'm guessing everything is fine.
#8
Tutorials and FAQs / [HOWTO] Migrating from UniFi O...
Last post by meyergru - Today at 10:44:50 AM
Migrating from UniFi OS Server to a UDM-SE without replacing OPNsense

I recently replaced my self-hosted UniFi OS Server (UOS) with a Dream Machine SE. Not because I wanted another router, but because I wanted to use UniFi Protect, which isn't available as a supported self-hosted application. OPNsense already handles routing, firewalling and DHCP, and I had no intention of changing that. The Dream Machine was supposed to act as a Network/Protect controller and an additional Layer-2 switch. One disadvantage worth mentioning: unlike the self-hosted UOS, the Dream Machine doesn't support Multi-Site Management. If you depend on that, this probably isn't the right solution.

My setup uses OPNsense at 192.168.132.1, with the UDM-SE at 192.168.132.29. The existing VLANs (IoT, Guest and DMZ) are configured as third-party gateway networks. The Dream Machine's Default network is the exception, since UniFi insists on treating it as a routed network. The UDM-SE is connected to a Pro Max 16 PoE via a 10 Gbps SFP+ DAC.

Getting the Dream Machine online

Initially, I connected the Dream Machine through a LAN port, assigned 192.168.132.29/24 to its Default network and disabled DHCP. To provide Internet access without using the WAN interface, I added two static routes through the UniFi GUI:

0.0.0.0/1   via 192.168.132.1
128.0.0.0/1 via 192.168.132.1

These cover the entire IPv4 address space and take precedence over a conventional default route because of longest-prefix matching. They also survive reboots, so no SSH scripts are needed. DNS, ICMP and HTTPS worked, including firmware downloads. Unfortunately, UniFi OS still considered the console offline. Apparently, at least with the newer firmware, working Internet connectivity isn't enough; UniFi also expects an operational WAN interface. Updates were detected but couldn't be installed through the GUI.

My UDM-SE initially came with UniFi OS 4.4.6, and its Network application was too old to restore the configuration from my existing UOS. Since the actual Internet connection worked, I upgraded via SSH:

ubnt-systool fwupdate <firmware-download-URL>

I first upgraded UniFi OS to 5.1.35, then eventually to 6.x. The firmware images are available from Ubiquiti; obviously, use the correct image for the UDM-SE and observe any required intermediate versions. The Network application can also be updated from the CLI:

uos runnable latest-versions unifi-native
uos runnable install --progress --max-release-channel release --version 10.6.109-36013-1 unifi-native

In my case, Network 10.6.109 was required to match the source UOS installation. The Dream Machine now runs UniFi OS 6.x with Network 10.x.

Migrating the Network configuration

This turned out to be the troublesome part. My first attempt was to restore the complete .unifi backup from UOS. The Dream Machine promptly disappeared from the network and disrupted the production LAN badly enough that I had to disable its upstream switch port. Restoring only the Network configuration initially produced the same result. Even switching the upstream connection from trunk to access mode made no difference.

Eventually, I examined the configuration stored on the source UOS. The relevant API endpoint is:

https://<UOS-IP>/proxy/network/api/s/default/rest/networkconf

The Default network contained the following settings:

purpose:         corporate
gateway_type:    default
ip_subnet:       192.168.132.1/24
dhcpd_enabled:   true
ipv6_ra_enabled: true

That explained quite a lot. On the self-hosted UOS, these are stored network definitions; the server doesn't actually become the gateway at 192.168.132.1. On the Dream Machine, however, those settings can become active. In my case, this meant a potential IP conflict with OPNsense and a competing DHCP server. I didn't establish which was primarily responsible for the disruption, but neither was acceptable.

Unfortunately, the UOS GUI wouldn't let me change the Default network settings. The Network API has its own validation restrictions, so I went directly to MongoDB. Before doing this, take a VM snapshot, preferably working on an isolated clone rather than the production controller.

sudo uosserver shell
mongo --port 27117 ace

The relevant collection is networkconf. First find the Default network:

db.networkconf.findOne({name:"Default"})

Then modify the relevant fields. This is the actual change I made:

db.networkconf.updateOne(
  {
    _id: ObjectId("6735f9f333061255845d5b21"),
    name: "Default",
    ip_subnet: "192.168.132.1/24"
  },
  {
    $set: {
      ip_subnet: "192.168.132.29/24",
      dhcpd_enabled: false,
      ipv6_ra_enabled: false,
      auto_scale_enabled: false,
      setting_preference: "manual"
    }
  }
)

Obviously, substitute your own document ID and addresses. I deliberately left purpose=corporate and gateway_type=default unchanged, since the Dream Machine expects its Default network to be a gateway-type network. After restarting UOS, I checked the configuration through the Network API again and confirmed that the changes had survived.

Important: These database commands apply to UniFi Network 10.x. Starting with Network 11, Ubiquiti migrated the application database from MongoDB to PostgreSQL. Direct MongoDB modifications as described here are therefore not applicable to Network 11. See the official Network 11 release notes before attempting anything similar on newer versions.

With the corrected configuration, I exported the individual site directly through the Network UI on the source UOS (Settings / System / Site Management / Export Site). This produces a .unf file, so no external backup utility is needed. I checked the resulting file and confirmed that it contained the corrected address and disabled DHCP/RA settings. I then used this .unf to restore the Network configuration on the Dream Machine, rather than restoring the complete .unifi system backup.

One important detail: disable DHCP again after the restore. The Dream Machine initializes its Default network with certain assumptions of its own, and DHCP may become enabled even though it was disabled in the exported configuration. Don't rely on the contents of the .unf alone.

For a safe restore, the UDM-SE doesn't need to be connected to the production LAN. You can connect a PC directly to one of its LAN ports, give the PC a static address in the management subnet (e.g. 192.168.132.200/24), and access the UDM-SE at https://192.168.132.29. The .unf file is uploaded from that PC through the browser. This way, the production uplink can remain disconnected while you restore the configuration and check the result.

After the restore, use the same direct connection to verify the management IP, disable the DHCP server on the Default network again, and check that IPv6 router advertisements are disabled. Only then reconnect the UDM-SE to the production LAN. If you perform the restore over the production network instead, be aware that the imported settings can take effect immediately and disrupt connectivity before you get a chance to correct them.

Once the configuration is correct, the existing UniFi devices can be moved to the new controller, with their Inform address adjusted where necessary.

A working WAN connection without another cable to OPNsense

The remaining annoyance was UniFi OS reporting that the console was offline despite perfectly functional IPv4 connectivity. Rather than trying to manipulate its internal connectivity detection, I decided to provide a real WAN connection, but without running another cable to OPNsense.

I created an additional VLAN-only network called DREAM_WAN, using VLAN ID 99. OPNsense provides DHCP (192.168.99.0/24) and SLAAC with prefix 0x99 and thus provides Internet access on this VLAN, which is carried over the existing switch infrastructure. The UDM-SE supports WAN port remapping, so I configured port 7 as an access port for VLAN 99 and port 8 as a WAN port using DHCP. A short RJ45 cable now connects port 7 directly to port 8.

OPNsense
   |
   | Existing LAN/VLAN trunk
   |
Pro Max 16 PoE
   |
   | 10 Gbps SFP+ DAC, trunk configuration
   |
UDM-SE
   |
   +-- Port 1-6: cameras
   |
   +-- Port 7: LAN, Access VLAN 99 --+
   |                                 |
   +-- Port 8: WAN, DHCP ------------+
   |
   +-- Port 9: 2.5 Gbps LAN
   |
   +-- SFP+ Ports: configured as LAN, trunk configuration

VLAN 99 arrives over the existing LAN uplink, is presented untagged on port 7 and enters the WAN interface on port 8. This isn't an Ethernet loop because port 8 is configured as WAN and isn't part of the LAN bridge. Needless to say, the WAN port assignment and VLAN isolation must be configured before connecting the cable, and PoE should be disabled on port 7.

With this arrangement, the Dream Machine has a normal WAN connection and recognises its upstream router behind NAT. No additional cable to OPNsense is required. It costs two of the eight Gigabit ports, but leaves the 2.5 Gbps RJ45 port available for LAN use. That's quite useful considering the Pro Max 16 only has four 2.5 Gbps ports, which also happen to be its only PoE++ ports. Besides, the UDM-SE's integrated eight-port switch only has a 1 Gbps uplink to the CPU, whereas the 2.5 Gbps port is connected separately. I use ports 1-6 for the Protect cameras, because they only need Fast Ethernet (100 Mbps) anyway.

"Trunk" on OPNsense

Another neat trick is to set up the uplink port for OPNsense not as a "trunk" in the usual Unifi way, which is that the main LAN is untagged, while other VLANs are tagged, but as no default VLAN with VLAN 1 as being tagged. That way, you do not have to mix tagged and untagged VLANs on the OPNsense LAN interface. I have a separate "OPNsense Trunk" port profile for that on the Network controller. The alternative way of setting this up is to use two separate interfaces, one untagged, with another tagged only, but that takes up one more physical connection.

Final routing configuration

Although WAN is now operational, I deliberately kept the original two /1 IPv4 routes through the LAN interface. The WAN DHCP configuration supplies a conventional default route, but the more specific /1 routes still take precedence. Consequently, ordinary IPv4 traffic from the Dream Machine continues to use OPNsense through the LAN, while its directly connected WAN subnet remains reachable through WAN.

IPv6 is configured differently: it is enabled only on the WAN interface, using SLAAC from OPNsense. The IPv6 default route therefore goes through WAN, while IPv6 router advertisements on the Dream Machine's Default LAN remain disabled.

So the final arrangement is a Dream Machine with a working WAN connection, but with IPv4 Internet traffic routed through the existing LAN. Network and Protect run on the UDM-SE, its LAN ports provide additional Layer-2 connectivity, and OPNsense remains responsible for all production routing, firewalling and DHCP.

Apart from the initial CLI updates and the one-time MongoDB changes required for migration, everything is configured through the normal UniFi interface. There are no persistent SSH scripts or modifications to the running UniFi OS.

It's certainly not what Ubiquiti had in mind for the Dream Machine, but it works, and I get Protect without having to replace OPNsense. The loss of Multi-Site Management is the main compromise.

P.S.: If you want to separate your Protect cameras on a separate VLAN, you will have to open some ports to the UDM:

ProtocolPortPurpose
TCP6666AI detection metadata (reported by users; not officially documented)
TCP7441RTSPS (secure real-time streaming)
TCP7442Device communication (WebSocket)
TCP7443REST API
TCP7444Camera communication (WebSocket)
TCP7445Protect streaming
TCP7447RTSP (real-time streaming)
TCP7550Camera streams
TCP7552Encrypted camera connections
TCP7888TCP bridge
UDP10001Device discovery / adoption

Not all of these ports need to be allowed between the cameras and the Protect console. Some are used for client access or streaming. TCP port 6666 is particularly interesting because users have reported that blocking it prevents AI detection events from appearing in Protect's search filters, even though live video and on-screen object detection continue to work.
#9
Hello, Use the physical parent interface rather than individual VLAN interfaces, especially when running IPS with Netmap. This allows Suricata to inspect traffic across your VLANs.
#10
General Discussion / Re: New ADGuardHome broken
Last post by tangofan - Today at 07:33:31 AM
FWIW, I upgraded and I don't have any problems. Note, that I upgraded by updating the plug-in to a new version, not by using any update/upgrade option within AdGuard Home itself.