OPNsense Forum

English Forums => General Discussion => Topic started by: rural_oxen on November 12, 2023, 02:51:17 PM

Title: Help with NAT needed - connecting to a device that can't set a default gateway
Post by: rural_oxen on November 12, 2023, 02:51:17 PM
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!
Title: Re: Help with NAT needed - connecting to a device that can't set a default gateway
Post by: Maurice on November 16, 2023, 02:31:13 AM
Simply create an outbound NAT rule for the WAN_FIBRE interface.

Cheers
Maurice
Title: Re: Help with NAT needed - connecting to a device that can't set a default gateway
Post by: rural_oxen on November 19, 2023, 06:16:06 PM
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.