OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: Mr_G on March 25, 2023, 06:19:56 pm

Title: No GUI and no Lan access
Post by: Mr_G on March 25, 2023, 06:19:56 pm
The OPNsense is installed on a mini PC with 4 Ethernet ports. I can boot it and use the video out on it to see that I have internet to it and an Ip address. No Lan connection from it but it shows the IP I set?
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 26, 2023, 05:45:53 pm
After more testing it’s a double Nat issue, the router required by ISP has the same default Lan address. Can another router be added in between them be used to solve the issue? And yes I tried changing the Lan IP on the opnsense firewall. Still no Lan connection
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 26, 2023, 06:37:37 pm
You can hook up WAN of your OPNsense to your ISP router and simply change the LAN network of OPNsense via console to something different from 192.168.1.0/24.
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 04:39:09 pm
Thanks for the reply,
But unfortunately I did that and it didn’t work :(
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 04:42:46 pm
Please describe in detail the steps you took and what did not work.
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 08:31:45 pm
With the first install of opnsense 23.1 I wasn’t able to load the GUI on the LAN 192.168.1.1 or 192.168.1.0, with my windows pc. Then I rebooted it same issue again. Next I set the Lan to 10.10.10.1 and was unable to open the GUI at that address as well. Next I rebooted the upstream router no improvement. Next I rebooted both the upstream router and the opnsense PC, no GUI, just to be sure I reinstalled opnsense. That didn’t fix it, setting my CR1000 the upstream router to bridge mode just crashed it, no I’m with a new install with the Wan set to A0 and the Lan A1-3, automatic ip settings. There is an internet connection to the Opnsense PC I can ping it’s console.
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 08:48:17 pm
How and to which port did you connect the PC? Did you connect the PC to the LAN port (the first one) of your OPNsense and not connect the OPNsense to anything else? Did you set your PC to DHCP?

In that case invoking the UI at 192.168.1.1 must work.

After changing the IP address of LAN to 10.10.10.1, did you (again) connect your PC to LAN? And manually configure the PC to e.g. 10.10.10.2, because after the change of the interface address on OPNsense the DHCP server would not match, anymore?

Still this is way too little information about what is connected where, what has got which IP address etc.

You cannot connect your PC to your home router, the OPNsense to the same home router, and expect to get anywhere. The PC must be connected to LAN of OPNsense. Then we can take further steps.
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 09:15:47 pm
The WAN is set to plug label A0, that was and is the input from the mean router. LAN’s are A1, A2, A3, unfortunately I just get no response from ip 192.168.1.1 on the LAN A1 or the other two. My PC has both DHCP and IPV4 on. Could you recommend a good book on networking?

My network:

Home router> switch > opnsense > windows PC
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 10:09:58 pm
If the interfaces of whatever hardware you are using are labelled A0, A1, A2 and A3, then I'd expect that these are the first, second, third and fourth interface as seen by OPNsense. Do you agreee?

And LAN is the first interface and WAN is the second, not the other way round.

This is how every single freshly installed OPNsense is set up. First port is LAN.
Title: Re: No GUI and no Lan access
Post by: chemlud on March 27, 2023, 10:20:32 pm
...

And LAN is the first interface and LAN is the second, not the other way round.

....

***cough***
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 10:22:23 pm
Yes it sets the LAN first, I set A1, A2, A3 not A0, then it asks me to set the WAN that’s is A0. So the LAN is supposed to be first? Then that would make the WAN A3? If I set it up
That way.
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 10:28:36 pm
...

And LAN is the first interface and LAN is the second, not the other way round.

....

***cough***

Sorry, fixed the original post.
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 10:30:21 pm
@Mr_G you do a fresh install. You boot. You do not touch anything. You connect a PC to the first port which is most probably A0 in your case. You will get an IP address for the PC and you will be able to connect to the UI.

Once you got that settled, we can proceed.

Sorry about the typo with 2x LAN (and in bold, OMG  :o)
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 10:56:52 pm
The interfaces have been reset, no it’s Lan A0, A1, A2, and WAN A3. No connection to it on LAN A0. Connect it to home router on WAN A3, still no LAN connection.. rebooting now no LAN connection. LAN address is 192.168.1.1,
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 11:01:31 pm
Windows diagnostic says Ethernet doesn’t have a valid IP address
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 11:02:59 pm
The interfaces have been reset, no it’s Lan A0, A1, A2, and WAN A3.

That doesn't make sense. Only one interface is LAN. Only one interface is WAN. If you want to turn your OPNsense in to a cheap switch replacement you can do that by creating a LAN bridge. But only later. After initial setup.

You boot whatever hardware you have from an install medium, most of the times USB nowadays.
You login as "installer" with password "opnsense". You go through the install procedure.
You shutdown the system and remove the install medium. You power up the system.

Without touching anything, just let it boot up, a PC on the first network interface will get an IP address via DHCP and the UI will be at 192.168.1.1.

When you have come to that point we can proceed.
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 11:12:15 pm
You’re on to something fresh install got me online with the LAN A0 aka default. Now do I setup everything then connect the WAN?
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 11:23:46 pm
Recommended steps:

- change the LAN IP address to e.g. 192.168.2.1/24
- give your PC an IP address like 192.168.2.2/24 (aka 255.255.255.0) manually
- reconnect to the UI at 192.168.2.1
- adjust the settings in Services > DHCP4 > LAN accordingly (change each 192.168.1.x to 192.168.2.x)
- reboot, set your PC to DHCP again, check if it gets an address from 192.168.2.0/24 now and if you can reach the UI

If that works, connect WAN to your existing home router. Internet should now work behind OPNsense just like it did directly behind your home router.

If after that you want to create a LAN bridge to have 3 of your 4 ports as LAN, follow this documentation:
https://docs.opnsense.org/manual/how-tos/lan_bridge.html

HTH,
Patrick
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 27, 2023, 11:30:23 pm
You were right the fresh install did the trick, I’m on the GUI, now I have to read up on this.
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 27, 2023, 11:51:34 pm
I have a vague idea what might have gone wrong.

So you assigned interfaces on the console?

Like ... A0 to WAN
A1 to LAN
A2 to LAN
A3 to LAN

Anything like that?

Then the later assignments to LAN always deleted the previous ones. You can only have one port assigned to one logical interface. So if the above is near the reality, you ended with

WAN: A0
LAN: A3

Yes, you have a four port device. One port is LAN, one port is WAN, two ports are inactive. It's supposed to be that way.

To get a common home router setup with e.g. 3 LAN ports you need to create a LAN bridge adhering to the documentation I linked above.

I wish you great success!  ;D
Title: Re: No GUI and no Lan access
Post by: Mr_G on March 28, 2023, 05:00:19 am
I was able to get into the GUI once I changed the Lan IP address it says it’s applying changes and lost connection to the computer, the power is still on so I try the new IP address and it will not load, try rebooting it still no GUI at the new address? I found a windows PC has a range for IPs is that a possibility?
Title: Re: No GUI and no Lan access
Post by: Patrick M. Hausen on March 28, 2023, 11:56:48 am
After changing the IP address of the OPNsense you must of course set a manual IP address matching the network for your PC. E.g. if you set OPNsense to 192.168.2.1, then 192.168.2.2 for your PC. I already wrote exactly that.