Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Default route for LAN interface
« previous
next »
Print
Pages: [
1
]
Author
Topic: Default route for LAN interface (Read 456 times)
joergb
Newbie
Posts: 2
Karma: 0
Default route for LAN interface
«
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.
Logged
Saarbremer
Sr. Member
Posts: 353
Karma: 14
Re: Default route for LAN interface
«
Reply #1 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?
Logged
joergb
Newbie
Posts: 2
Karma: 0
Re: Default route for LAN interface
«
Reply #2 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.
Logged
Patrick M. Hausen
Hero Member
Posts: 6843
Karma: 574
Re: Default route for LAN interface
«
Reply #3 on:
April 28, 2024, 05:09:12 pm »
Why don't you simply reboot the device? Nothing of what you did is permanent.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Default route for LAN interface