Fresh Install, cannot reach WebGui 192.178.1.1

Started by foxint, September 03, 2023, 10:53:31 AM

Previous topic - Next topic
Hi Guys,

The website said I should start another post as the post is >120days... I am sorry if this is not good.

I too did a fresh install and cannot access 192.168.1.1. I have loaded OPNsense onto a HP PC and installed a dual network card. I cannot access the GUI.

I have even connected both ethernet cords from the OPN-PC to my PC and even then, I was unable to connect. Just tried it then and it timed out.

I have pulled all ethernet cords from the network and only have 1 PC.

I even plugged in the original ethernet socket - so all 3 into the switch and nothing.

I am a novice and trying to learn, but when things get difficult the instructions assume a higher level of knowledge than I have.

I pinged 192.168.1.1 and got 4 packets send and 4 received.

This is the 3rd day I have been trying and it is really hard even to get started.

Tried a static IP and that did not work.

Can someone please help.

Thank you.

Boot opnsense and assign interface for LAN and WAN from the console. For LAN interface assign address and enable DHCP on it and connection will work since your PC will recive DHCP IP via the LAN port or via switch if you connect LAN port direct to switch.

BTW web ui url will be written in console once you assign interfaces.



September 04, 2023, 12:32:32 AM #2 Last Edit: September 04, 2023, 06:24:24 AM by foxint
Thank you.

But I am confused.

It asked me to setup LAGG and VLAN's I said NO

Enter the WAN interface name or 'a ' for auto -detection: a

Connect the WAN interface now and make sure that the link is up.

I do not know what this means???????
Enter

No link-up detected.

What do I exactly have to do????

I played around a bit and decided that putting in 'a' was no good.

I had 'em0
   'em1 and
   'em2

Not sure what these are I am assuming em0 is the network 1GB on the HP and em1 and em2 is the new 2.5 GB network card. But I have no idea if this is correct

The screen says WAN = em0
                 LAN = em1   v4 192.168.1.1/24

So I have lost em2. Is this good/bad

I suppose I should NOT use em0 (if it is the HP 1GB) as the new card is faster???

Still cannot access 192.168.1.1

Perhaps I have not plugged the cords in correctly. Is there a diagram? I have a box (NBN-box not sure what it is) that connects into my modem/router into the WAN hole. Then I have another cord going to my switch and my PC etc is also connected to the switch.

Is this OK??




PS - How to I engage notify when there is a reply

Ok, lets try again  :)

First you need to identify interfaces that you would like to use...you can issue a command from console;

pciconf -lv

and search for your intereface names em0, em1, em2 and try to identify witch is witch..

Then reconfigure them again from console;

select 1 Assign interfaces, and dont use 'a' but assign them manually for WAN and for LAN.

eg. em1 for WAN and em2 for LAN

After that you go and assign IP address to interface:

Select 2 - Set interface IP address

LAN - set whatewer you plan to use; default is 192.168.1.1/24

Plug in your laptop directly into LAN port of your  opnsense router and you should be able to acccess the web GUI.





September 04, 2023, 07:18:07 AM #4 Last Edit: September 04, 2023, 07:24:16 AM by foxint
Hi Dimi3 – thank you.

First you need to identify interfaces that you would like to use...you can issue a command from console;

pciconf -lv

How?

I have logged into Opensense
   Root
   Opensense.

I have 13 options?

I went to 1:
Valid interfaces.

Em0   8c:dc;d4;3e;e6;c8 Intel (r) I217-Lm LPT – I think this is the RJ45 on the PC – I think
Em1   1c;86;0b;22;2b;98 Intel ® Pro/1000 PT 82571EB/82571GB (copper)
Em2   1c;86;0b;22;2b;99 Intel ® Pro/1000 PT 82571EB/82571GB (copper)

I really do not know what they are or where they are. I am assuming these of the 3 RJ45?? But which one is which, I have no idea.


OK...I had a go and got the following:

LAN (em2) v4: 192.168.1.1/24
WAN (em1) v4/DHCP4: 192.168.1.4/24

Is this OK?

Still cannot connect. I tired all the cords and still cannot connect.

September 04, 2023, 08:14:02 AM #6 Last Edit: September 04, 2023, 08:28:00 AM by newsense
Change your LAN Interface IP to 192.168.22.1/24 and adjust the DHCP scope for the LAN to be 192.168.22.50 through 192.168.22.254

After you change the IP of the LAN and apply the settings you'll lose the connection to OPNsense so temporarily set your ethernet to 192.168.22.50 subnetmask 255.255.255.0 and GW 192.168.22.1. After fixing the DHCP scope you can revert to DHCP


On the WAN interface uncheck Block private networks

September 04, 2023, 08:52:27 AM #7 Last Edit: September 04, 2023, 08:55:31 AM by foxint
Hi Newsense – thank you.

You lost me after....adjust the DHCP scope?????.

??????

I have never been able to connect to the OPNSense PC

Your WAN uses the same network as your LAN interface. That will not work. Different interfaces must use different networks. So to get started unplug your WAN, plug your PC into LAN, reboot OPNsense - you should then be able to connect to the UI at http://192.168.1.1.

Once you can do that, you can change the LAN address via UI as suggested by @newsense. Then reconnect WAN.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Try this:

1) Unplug WAN

2) reboot OPNsense

3) Try to connect via LAN, then do the changes I mentioned starting with the WAN interface, then LAN interface, then DHCP scope in Services - DHCPv4 - LAN - Range

4) Plug in WAN cable and try to access https://1.1.1.1

Hi Guys – thank you.

I am completely confused.

I have:   
*1 PC – Windows 10. It has a RJ45 socket 1GB and a RJ45 socket 2.5 GB
*1PC – OPNsense. It has a single RJ45 Socket and a dual Rj45 socket (2.5GB). I do not know what socket does what.
*1 NBN thing that I have no idea what it is but it connects to the WAN hole in my Router.
*1 Router/modem
*1 Switch
*Lots of cables.

Can you just make it really simple. Let start with simple. What cords to I plug into what. I am not sure what is my LAN and what is my WAN.

Remember I have never been able to connect to the OPNSens-PC via 192.168.1.1.

Thank you.

Boot your freshly installed OPNsense without any network cables connected.
Boot your PC without any network cables connected.
Plug a network cable into the port of your PC that you normally use.
Plug the other end into the first port of OPNsense.
Can you ping 192.168.1.1? Yes --> good.
No --> pull the cable from OPNsense and plug it into the next port of OPNsense.
Repeat until you get a ping.
This port is LAN.

Your problem is that your existing network uses the same addresses as a freshly installed OPNsense. So you need to set up a completely isolated environment first. Then you can proceed from there once you reach the UI.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Patrick – thank you.

OK I have found the LAN socket on the OPNsense PC. It is the top one.

But to get to communicate with you, I had to reconnect the PC to the switch/internet.

I was able to see the Gui, but now "unable to connect".

Also, assuming Login is root and Password is opensense.

What do I do, now??

Now you set up the network in that isolated fashion again and then change the IP address and the DHCP settings to 192.168.22.x as outlined by @newsense.

Once you achieved that you can connect your WAN port to your existing network and your PC to OPNsense LAN only. Your PC as well as OPNsense should then be able to communicate and reach the Internet.

Where to go from there depends on what you want to achieve in the end.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Patrick – thank you.

I do not understand what newsense was saying.

What you are saying is:
*Plug the OPNsense WAN cable into my switch?
*Plug my PC into the OPNsense LAN socket
*What happens to my Router/modem
*What happens to my NBN thing that connects to the outside world?
*What happens to my other PC's connected to the Switch

I thought the internet comes into the house and  it goes into the OPNsense box and then into the switch. Then I have no idea what happens then.

I will try and disconnect from the internet and configure the OPNsense box.