Help with NAT needed - connecting to a device that can't set a default gateway

Started by rural_oxen, November 12, 2023, 02:51:17 PM

Previous topic - Next topic
Hi,

I'm currently setting up my Ubiquiti UF-LOCO Fibre ONT and I can't seem to figure out how to make the web UI accessible from my LAN.

I gave it its' own network (192.168.24.0/30) on its' own interface (I called it WAN_FIBRE). If I connect directly to it using a laptop with the static IP of 192.168.24.1/30, I can access the web UI just fine. Now, since I can't set a default gateway on the UF-LOCO (well I can by SSH-ing into it and manually changing the settings in the config, but this change doesn't survive a reboot), I need to set masquerade rules to allow my PC in my LAN_CLIENT net to access the web UI of the ONT in the WAN_FIBRE net.

Can you please tell me what to do? I bunged around with NAT rules myself, but I didn't have any success yet. Thank you!

Simply create an outbound NAT rule for the WAN_FIBRE interface.

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

Oh my, thank you. I was faffing about with 1-to-1 and Port Forwarding.

To a potential future reader:



Interface Source Source Port Destination Destination Port NAT Address NAT Port
WAN_FIBRE any * fibre * WAN_FIBRE address *


"fibre" is my alias for the IP of the ONT, 192.168.24.2, "WAN_FIBRE" is the Interface I designated for this network.