No WAN IP after power outage
-
@luddite said in No WAN IP after power outage:
I want the modem to be able to be off without effecting the LAN and when it comes back on for it to be recognized and internet to work again.
That should be the default behaviour. The fact you can't connect to the gui indicates it was not able to assign the IP to it which is usually because of an IP conflict.
Connect to the console when the WAN is down and you're unable to connect via the LAN.
See what IP addresses are shown on WAN and LAN at that time.Steve
-
@bpsdtzpw thats correct. Once the modem (192.168.1.1) is up then the WAN (192.168.1.2) is active and the LAN (DHCP range 192.168.0.0-254) is allocated fine. Without the modem then no allocation.
-
@luddite said in No WAN IP after power outage:
@bpsdtzpw thats correct. Once the modem (192.168.1.1) is up then the WAN (192.168.1.2) is active and the LAN (DHCP range 192.168.0.0-254) is allocated fine. Without the modem then no allocation.
Then your problem is likely to be subnets. Your WAN and LAN appear to share a subnet space. They should be separate. Generally a modem gets an internet-wide address (e.g., not a private address such as 192.168.x.y) [1], while the LAN uses private addresses. Apparently your modem is accessible via a private address on the .1 subnet, so you really should use, say, the .2 subnet for your LAN (192.168.2.x). You set this on the interface page (interfaces/LAN). Make sure not to set an "upstream gateway". You probably will need to make some other adjustments to make the modem's management interface reachable from the .2 subnet.
[1] Though its management interface might be accessible via a private address.
-
@bpsdtzpw oh, i think this might be it.
Note: modem has internet IP but its lan range is 192.168.1.x
So 192.168.1.x (.2 for wan) 192.168.0.x (lan) are in the same subnet but 192.168.1.x (wan) 192.168.2.x (lan) are not in the same subnet?
-
@luddite said in No WAN IP after power outage:
@bpsdtzpw oh, i think this might be it.
Note: modem has internet IP but its lan range is 192.168.1.x
So 192.168.1.x (.2 for wan) 192.168.0.x (lan) are in the same subnet but 192.168.1.x (wan) 192.168.2.x (lan) are not in the same subnet?
Your modem probably is setup to use 192.168.1.1 with a subnet mask of 255.255.255.0. This collides with addresses handed out by your existing LAN DHCP server. You need to separate the spaces, and use a static route to reach the modem from a 192.168.2.x, subset 255.255.255.0 LAN. To add the static route, use system/routing/static routes, then add an entry with "destination network" = 192.168.1.1/32, "gateway" = whatever your WAN gateway is (yeah, the modem is on the WAN from the point of view of pfSense), and a nice description.
Also remember to make your modem's admin page inaccessible from the internet at large, so as to minimize security issues.
-
If those are all /24 subnets then you're probably OK.
Please post the actual interface IPs and subnets as shown in Status > Interfaces.
Steve
-
MODEM
MAC Address: B0:A7:B9:01:92:26 IP Address: 192.168.1.1 Subnet Mask: 255.255.255.0 DHCP: On
WAN Interface (wan, igb0)
Status up DHCP up Relinquish Lease MAC Address 00:1a:8c:46:f4:24 IPv4 Address 192.168.1.2 Subnet mask IPv4 255.255.255.0 Gateway IPv4 192.168.1.1
LAN Interface (lan, igb1)
Status no carrier MAC Address 00:1a:8c:46:f4:25 IPv4 Address 10.10.10.1 Subnet mask IPv4 255.255.255.255 Bridge (bridge0) <- MYSWITCH
MYSWITCH Interface (opt7, bridge0)
Status up MAC Address 02:a9:e1:97:76:00 IPv4 Address 192.168.0.1 Subnet mask IPv4 255.255.255.0
-
@luddite You modem is a PPPoE device?
-
@nollipfsense Yep. VDSL2 with dynamic DHCP from the ISP via ipoe - I can't change that.
-
@luddite said in No WAN IP after power outage:
LAN Interface (lan, igb1)
10.10.10.1Keep in mind : the day you install pfBlockerNG-devel, you'll have a IP address conflict to deal with.
-
@gertjan said in No WAN IP after power outage:
Keep in mind : the day you install pfBlockerNG-devel, you'll have a IP address conflict to deal with.
Thanks- I have pfBlockerNG obviously already :-)
-
@luddite That is not what he has meant...
-
@luddite said in No WAN IP after power outage:
I have pfBlockerNG obviously already :-)
What IP addresses is used by the web server ??
The default is pfBlockerNG web server VIP is 10.10.10.1 ... your LAN also uses 10.10.10.1(/24).
You're good for some network fireworks. -
@gertjan pfBlocker changed that for me.
-
This post is deleted! -
@bob-dig said in No WAN IP after power outage:
@luddite That is not what he has meant...
Ah - yes I see. Thanks for pointing that out. I have the non devel version installed and no plans to install the devel version.
@stephenw10 said in No WAN IP after power outage:
If those are all /24 subnets then you're probably OK.
Please post the actual interface IPs and subnets as shown in Status > Interfaces.
Steve
I found that the WAN was /32 and I changed that to /24
@bpsdtzpw said in No WAN IP after power outage:
@luddite said in No WAN IP after power outage:
@bpsdtzpw oh, i think this might be it.
Note: modem has internet IP but its lan range is 192.168.1.x
So 192.168.1.x (.2 for wan) 192.168.0.x (lan) are in the same subnet but 192.168.1.x (wan) 192.168.2.x (lan) are not in the same subnet?
Your modem probably is setup to use 192.168.1.1 with a subnet mask of 255.255.255.0. This collides with addresses handed out by your existing LAN DHCP server. You need to separate the spaces, and use a static route to reach the modem from a 192.168.2.x, subset 255.255.255.0 LAN. To add the static route, use system/routing/static routes, then add an entry with "destination network" = 192.168.1.1/32, "gateway" = whatever your WAN gateway is (yeah, the modem is on the WAN from the point of view of pfSense), and a nice description.
Also remember to make your modem's admin page inaccessible from the internet at large, so as to minimize security issues.
I think this did the trick. I made the WAN IP static and also added the WAN Gateway.
I pulled the plug on the modem and everything runs as per expected. I rebooted the router and it all worked expected. I Uplugged the phone line on the modem and it was all as expected. Amazing. Such a silly oversight that I never would have discovered a fix for without everyone's help.
Thank-you All!!!! Fingers crossed it doesnt have any unexpected side effects ;-)
-
It looks like you may also be hitting this: https://redmine.pfsense.org/issues/11545
Because the address shown as the LAN is clearly actually the pfBlocker VIP, which is a /32.That's probably not an issue on the LAN but worth watching out for.
Steve
-
@luddite Sweet! Yeah, address conflicts can cause mysterious behaviors.
-
@stephenw10 said in No WAN IP after power outage:
It looks like you may also be hitting this: https://redmine.pfsense.org/issues/11545
Because the address shown as the LAN is clearly actually the pfBlocker VIP, which is a /32.That's probably not an issue on the LAN but worth watching out for.
Steve
I followed this guide for the most part and after everything was running I installed pfBlockerNG and it force changed the LAN IP. I didnt touch it. Nothing broke so i thought it was normal and left it as per the forced change. Is that wrong?
https://www.youtube.com/watch?v=bz45r_4BREw
-
It shouldn't change the interface IP and it probably didn't. If you hit that bug it will just show like that in the Status. If you run ifconfig at the command line you will find the LAN still using the same IP address and subnet you set with 10.10.10.1 as a VIP on that.
Steve