OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: Jedis on October 07, 2023, 01:12:03 AM

Title: Update OPNsense from LAN interface
Post by: Jedis on October 07, 2023, 01:12:03 AM
Hello,

New OPNsense user as of today. I have to do some more work before I can migrate over my WANs to the new box that is running OPNsense.

I am able to connect to the web interface of OPNsense. I can use the ping utility to ping devices on the local LAN.

Is there a way to, temporarily, allow internet access via the LAN so I can check for updates? I am running the version on the website - 23.7, but figured it couldn't hurt to check for updates before I go any further.

My fall back option is going to be to connect another ethernet cable to the WAN0 and plug it into my LAN.

Thanks!
Title: Re: Update OPNsense from LAN interface
Post by: passeri on October 07, 2023, 01:29:06 AM
If I understood you correctly, I always use your fall back option.

Connect OPNsense WAN to your current network configured to receive an address from DHCP. Configure all of your LAN interfaces and rules. When that testing is complete, change your WAN config and drop it into place for the live WAN test. This is a normal routine which will give you a smoother path to your base configuration before you go live.
Title: Re: Update OPNsense from LAN interface
Post by: CJ on October 07, 2023, 02:35:40 PM
Are you just plugging one cable into the OPNSense LAN port and then connecting that to your existing network?  I'm trying to understand your setup and use case.

If you have console access, you can plug the WAN port only into your network and then use the console to perform all of the needed updates.
Title: Re: Update OPNsense from LAN interface
Post by: Patrick M. Hausen on October 07, 2023, 04:31:24 PM
Or connect only LAN, activate SSH, login and enter as root:
route add default <ip of your LAN router>
You should be able to install updates with an otherwise default installation, then.
Title: Re: Update OPNsense from LAN interface
Post by: Jedis on October 07, 2023, 06:09:05 PM
Thanks, all! Appreciate you all for offering solutions for either method!
Title: Re: Update OPNsense from LAN interface
Post by: Melroy vd Berg on November 21, 2024, 12:47:58 PM
Since nobody actually mention or explain how to do this properly via the GUI. And I also needed to add my OPNsense to a LAN interface temporally and running updates (before deployment).

1. I assume your LAN interface is enabled and basically configured like out of the box (eg. using a static IP address for OPNsense)
2. Let's create a upstream gateway, by going to: System -> Gateways -> Configuration -> Create a new gateway by clicking the + icon.
3. Now give the gateway a name, select the correct "LAN" interface, enter the upstream router under IP address (eg. 192.168.1.1).
Then check the "Upstream Gateway" checkbox. Press Save button.
4. Finally, press the Apply button.

See attachment how it should look like.

If you are done, you can remove the temp. gateway configuration again from above. Normally you will add a gateway configuration on your WAN interface.