ISP changed my modem box - no more Opensense???

Started by battle, August 13, 2024, 11:34:18 PM

Previous topic - Next topic
August 13, 2024, 11:34:18 PM Last Edit: August 14, 2024, 12:19:55 AM by battle
Greetings:

I use to run my Dell computer through another Dell computer that I had installed Opensense on.  It worked great until my ISP's modem crashed.  I got a free replacement yesterday, but it is no longer just a modem, but is a router-modem.  I have tried to get my computer to connect to the web, but it refuses when I try to run it through the firewall now.  Directly to the router-modem, it connects ok.  I tried to change the Opensense LAN to a different address (192.168.30.1/24) but it still didn't allow a connection.

Here is my ipconfig when my computer is connected directly to the new router-modem:
C:\>ipconfig

Windows IP Configuration
Ethernet adapter Local Area Connection:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::6848:1ada:22cb:c4e1%11
   IPv4 Address. . . . . . . . . . . : 192.168.1.112
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
Tunnel adapter isatap.{A4D5AD67-3E53-4BE6-9CD5-C30CFCEE7087}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
C:\>
------------------------------------------------------------

Here is what Opensense is showing for LAN and WAN:
LAN   (bge0)    --> v4: 192.168.1.100/24
WAN (re0)       --> v4/DHCP4: 192.168.1.222/24

------------------------------------------------------------

Here is my ipconfig when my computer is connected to my Opensense computer:
C:\>ipconfig

Windows IP Configuration
Ethernet adapter Local Area Connection:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::6848:1ada:22cb:c4e1%11
   Autoconfiguration IPv4 Address. . : 169.254.196.225
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
Tunnel adapter isatap.{A4D5AD67-3E53-4BE6-9CD5-C30CFCEE7087}:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
C:\>

------------------------------------------------------------

I am not really knowledgeable when it comes to networking.

Quote from: battle on August 13, 2024, 11:34:18 PM
Here is my ipconfig when my computer is connected to my Opensense computer:

Is it ? Because your computer says it's not connected

Quote
Media State . . . . . . . . . . . : Media disconnected

That's why it gets an Automatic Private IP Addressing (APIPA)

Quote
Autoconfiguration IPv4 Address. . : 169.254.196.225

I suppose you were using a 192.168.1.0/24 LAN network in your old situation, your new modem/router. now gives you the same subnet at the WAN side, that's not going to work. So first connect your PC to the LAN interface of OPNsense and pull out / disconnect the WAN cable. Change the IP address of the OPNsense LAN interface to anything BUT something in the 192.168.1.0/24 subnet, any address in 192.168.2.0/24 might be a choice.

Be aware that changing the LAN interface from one address to the other will disconnect you, so you need to set and change your PC address too when switching the LAN interface.

When your LAN interface is in another subnet than 192.168.1.0/24 you can connect your WAN interface again, double check if the option "Block private networks" at your WAN interface is _unchecked_.




Thanks for replying.
I changed the LAN to 192.168.2.1 (.0 wouldn't take).  Did the unplug/re-plug etc.  I kind of thought that would work and tried changing the LAN before.  Still no connection.  I thought that my PC would find the Opensense LAN automatically, but no.  I rebooted the PC and it is back to the 'Autoconfiguration IPv4 Address. . : 169.254.196.225'.  I never had to configure my PC to point to a specific address, maybe that has to be done.  Not sure how to do that.

August 14, 2024, 03:11:58 AM #3 Last Edit: August 14, 2024, 03:19:14 AM by battle
OK, got it figured out.  I went into the (attachment below) window by way of another example on the web and it worked.  Thanks for pointing me in the right direction.

C:\>ipconfig

Windows IP Configuration
Ethernet adapter Local Area Connection:
   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::6848:1ada:22cb:c4e1%11
   IPv4 Address. . . . . . . . . . . : 192.168.2.50
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.2.1

------------------------------------------------------------

But I now cannot get into the GUI with 192.168.1.1.  Is there any way to change the GUI's address?

Quote from: battle on August 14, 2024, 02:30:46 AM
I changed the LAN to 192.168.2.1 (.0 wouldn't take).

That's correct, 192.168.2.0/24 is the so called subnet address, it means every host between 192.168.2.1 and 192.168.2.254. You picked 192.168.2.1 which is perfectly fine, double check if you selected "24" (and not 32) in the "IPv4 address" configuration of your interface.

Quote
Did the unplug/re-plug etc.  I kind of thought that would work and tried changing the LAN before.  Still no connection.  I thought that my PC would find the Opensense LAN automatically, but no.  I rebooted the PC and it is back to the 'Autoconfiguration IPv4 Address. . : 169.254.196.225'.  I never had to configure my PC to point to a specific address, maybe that has to be done.  Not sure how to do that.

Well, you're in "troubleshoot" mode, so at this stage things will go different as normal :-D . You might still have an issue with the DHCP server config on OPNSense which prevents your PC to automaticaly receive a correct address. To fix this, and rule out anything else, you need to configure a static address on your PC. There's enough Google available that can help you with that.

You're now using the 192.168.2.0/24 subnet on your LAN, your OPNsense host is using the first address (.1), so your PC needs anything between 2-254. Your OPNsense is the gateway for your LAN network and probably also the DNS server, but if you have any DNS issues after succesfull connection to OPNsense, you can always use one of the many popular 4 digit Public DNS services to rule that one out. So with this information you can change the network settings for your PC from dynamic (DHCP) to static:

IP Address: 192.168.2.2
Netmask: 255.255.255.0 or /24
Gateway: 192.168.2.1 (OPNsense LAN interface)
DNS: 192.168.2.1 (OPNsense LAN interface)






Quote from: battle on August 14, 2024, 03:11:58 AM
But I now cannot get into the GUI with 192.168.1.1.  Is there any way to change the GUI's address?

You told that you changed your LAN interface to 192.168.2.1, so try that address for the GUI

I thought I had tried that, but that worked!  Opensense would not be worth much without Sercata.
Thanks