Hi all,
I have a problem that when my 4/5G modem sometimes renews IP, it does't give it to my pfsense box (running latest pfSense Plus 24.03.1 release). Yes, I miss the times I had fiber..
So in this situation, I get a lot of dhcp discover messages to 255.255.255.255, but I really never get a real working new IP and working WAN connection.
Quite obvious that my modem is running dnsmasq to provide 'ip-passthrough-mode'. Propably all software in it is partially just (old?) Linux /GNU software, like most todays customer devices do.
If I renew WAN IP from web GUI, I'll start getting a mass of following errors in my system.log, and thus error messages are flooding my system.log.
Arpresolve: can't allocate llinfo for xxx.xxx.xxx.xxx (where xxx.xxx.xxx.xxx is my old ip)
Today I found the below solution to the problem, and made the following shell script /root/bin/renew-wan-ip.sh (and thank a lot for the original author):
#!/bin/sh
/usr/local/sbin/dhclient -4 -d -r -lf /var/db/dhclient.leases.ix3 -cf /var/etc/dhclient_wan.conf -sf /usr/local/sbin/pfSense-dhclient-script; php -r "require 'interfaces.inc'; interface_bring_down('wan'); interface_configure("wan");"
So It's almost a one liner. It assumes that yout wan name is 'WAN' and WAN interface is ix3. Please, modify the script to suite your configuration.
I'll try this next time I have this problem, but you may try it now or suggest improvements or better solutions.
And if someone knows a solution for the 'Arpresolve: can't allocate llinfo for xxx.xxx.xxx.xxx' problem in this exact scenario, I would be happy to hear. I'm running latest pfSense Plus 24.03.1 on Netgate 6100 hardware.
Thanks and happy hacking!