OPNsense Forum

English Forums => General Discussion => Topic started by: joergb on April 28, 2024, 10:37:35 AM

Title: Default route for LAN interface
Post by: joergb on April 28, 2024, 10:37:35 AM
By accident I added a route that forwards the opnsense web gui. On the console I removed that rule but now there is no rule at all for the standard LAN interface. Therefore I am still not able to access the web gui. Please give me advice how to fix this.
Title: Re: Default route for LAN interface
Post by: Saarbremer on April 28, 2024, 12:16:24 PM
Can you elaborate a little bit more what you did in the first place. And then afterwards?

Plus: What is you LAN IF config, your gateways (incl. upstream/default) and routes? Plus Plus: Did you change the webgui's ports?
Title: Re: Default route for LAN interface
Post by: joergb on April 28, 2024, 02:39:06 PM
Thank you for asking.

Everything worked fine for several days.
Today I added a route, wanted to add one single host, but typed 24 instead of 32 for the mask value. The host I wanted to add resides on the same subnet as the opnsense and its web gui.

After this change I no longer had access to the opnsense web gui.
So I used the console port to remove the route:

route del -net <host> <gateway> 255.255.255.0

I confirmed the removal:

netstat -4rn

In my opinion there should be entries for the LAN interface igb0 in the output list of netstat, but there is none. There are entries for localhost, WAN and VLAN interfaces, therefore my guess is to add entries for the LAN interface in oder to fix the current issue of not being able to access the opnsense web gui.

Unfortunately I am not familiar with console commands, so I don't know how to do this. I even don't know if this will be the only fix I have to do.

Title: Re: Default route for LAN interface
Post by: Patrick M. Hausen on April 28, 2024, 05:09:12 PM
Why don't you simply reboot the device? Nothing of what you did is permanent.