OPNsense Forum

English Forums => General Discussion => Topic started by: foxint on September 03, 2023, 10:53:31 am

Title: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 03, 2023, 10:53:31 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Dimi3 on September 03, 2023, 01:01:35 pm
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.


Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 12:32:32 am
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
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Dimi3 on September 04, 2023, 06:58:54 am
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.




Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 07:18:07 am
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.

Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 07:40:23 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: newsense on September 04, 2023, 08:14:02 am
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
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 08:52:27 am
Hi Newsense – thank you.

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

??????

I have never been able to connect to the OPNSense PC
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Patrick M. Hausen on September 04, 2023, 09:02:19 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: newsense on September 04, 2023, 09:04:15 am
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 (https://1.1.1.1)
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 09:40:00 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Patrick M. Hausen on September 04, 2023, 09:43:33 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 10:12:10 am
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??
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Patrick M. Hausen on September 04, 2023, 10:42:15 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 10:55:17 am
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.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Patrick M. Hausen on September 04, 2023, 11:54:48 am
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.

If that is the final setup that you want to implement, you are right.

Internet --> modem --> OPNsense WAN | OPNsense LAN --> Switch --> PC

But your current router already does everything OPNsense is supposed to do and it uses the same IP addresses as OPNsense. You cannot run both at the same time. So you need to disconnect your old router and instead of plugging OPNsense WAN into the switch plug it into the modem and OPNsense LAN into the switch. Then you can connect to the UI at 192.168.1.1 and configure your WAN credentials for your ISP ...
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 12:33:02 pm
Patrick – Thank you.

Just to confirm:
*I plug the OPNsense WAN into the modem
*I plug OPNsens LAN into the Switch.
*Then on the OPNsense PC I configure the WAN credentials for my ISP
I have 2 additional Questions:

1.   Where do I find my ISP credentials
2.   What do I do with the NBN Box.
FYI here in AU: we have a copper wire from the road to a box in the house, then connect the output of this box to the WAN of the modem.

Does than mean I plug the WAN cord into the NBN box?

Thank you.
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Patrick M. Hausen on September 04, 2023, 01:12:06 pm
The credentials should have been provided by the ISP. How did you configure your existing router?

The OPNsense WAN goes into the Ethernet port of the modem.

If the connection is provided that way. Do you have a separate router and modem? If router and modem are one and the same box, you cannot simply replace it with OPNsense. You either need to set this box to strict modem mode or buy a separate modem. All of this depends on your type of connection, the exact modem and/or router model and your ISP ...

What do you want to achieve in the end? Your Internet is working, right?

The last resort would be to connect OPNsense to your existing router but you must change IP addresses first and then you have double NAT and the question is in which way this will improve anything.

HTH,
Patrick
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 04, 2023, 01:22:27 pm
Hi Patrick

Thank you.

I have no idea what you have suggested or commented upon.

I thought OPNsense would make the internet safer. But ... I have no idea how to make it work.

But thank you for your time.

Dan
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: Patrick M. Hausen on September 04, 2023, 01:26:50 pm
In the most common use case OPNsense replaces a simple consumer "plastic" router provided by your ISP. But you need all information concerning the configuration of your uplink technology (cable, fibre, DSL, ...) and if applicable username and password for PPPoE. Nobody but your ISP can give you that information.

If you want to run OPNsense behind an existing ISP router, that is entirely possible so the setup would be

Internet --> ISP router/modem --> OPNsense WAN | OPNsense LAN --> switch --> client PCs/devices

But as we already saw from your first attempts your ISP router uses the 192.168.1.x network. So you must use a different network for OPNsense LAN. You cannot use the same addresses on two different networks.

If adding OPNsense behind an ISP router "adds security" again heavily depends ...
Title: Re: Fresh Install, cannot reach WebGui 192.178.1.1
Post by: foxint on September 05, 2023, 02:03:09 am
Patrick – Thank you.

I followed your instructions - brilliant.

I changed the LAN IP address and the OPNsense box is connected to the ISP modem and the LAN cord is connected to the switch. This has allowed me to use the wi-fi.

I have not changed any settings in OPNsense. I managed to update the software.

You have been very patient. Thank you.

Any suggestions for any You tube videos? I wanted to use OPNsense because my VPN was stopping my internal PC’s on the network from being visible.

Thank you again.
dan