Problem with WAN/GATEWAY and DHCP
-
Hi all,
i have a problem with my pfsense. Sometimes WAN goes down (i think for high packet loss) and it is not able to get back online on her own. I need to disable and reup interface.
I paste DCHP and GENERAL log file.
I set up (router with static IP for pfsense and pfsense in interface with DHCP) The same problem if i set up a static ip for both router and pfsense.
Can you help me set up pfsense to come back online on its own?
Jul 17 11:31:51 rc.gateway_alarm 29214 >>> Gateway alarm: WAN_DHCP (Addr:1.1.1.1 Alarm:1 RTT:15.024ms RTTsd:1.156ms Loss:22%) Jul 17 11:31:51 check_reload_status 399 updating dyndns WAN_DHCP Jul 17 11:31:51 check_reload_status 399 Restarting IPsec tunnels Jul 17 11:31:51 check_reload_status 399 Restarting OpenVPN tunnels/interfaces Jul 17 11:31:51 check_reload_status 399 Reloading filter Jul 17 11:31:52 php-fpm 361 /rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed its IP. Reloading endpoints that may use WAN_DHCP. Jul 17 11:34:28 php-fpm 362 /diag_reboot.php: Successful login for user 'admin' from: 192.168.40.16 (Local Database) Jul 17 11:34:46 check_reload_status 399 Linkup starting ue0 Jul 17 11:34:46 kernel ue0: link state changed to DOWN Jul 17 11:34:47 php-fpm 362 /rc.linkup: DEVD Ethernet detached event for wan Jul 17 11:34:48 check_reload_status 399 Reloading filter Jul 17 11:34:53 check_reload_status 399 Linkup starting ue0 Jul 17 11:34:53 kernel ue0: link state changed to UP Jul 17 11:34:54 php-fpm 362 /rc.linkup: DEVD Ethernet attached event for wan Jul 17 11:34:54 php-fpm 362 /rc.linkup: HOTPLUG: Configuring interface wan Jul 17 11:35:00 sshguard 72895 Exiting on signal. Jul 17 11:35:00 sshguard 60264 Now monitoring attacks. Jul 17 11:36:11 php-fpm 362 /rc.linkup: Default gateway setting Interface WAN_DHCP Gateway as default. Jul 17 11:36:11 check_reload_status 399 Restarting IPsec tunnels Jul 17 11:36:12 dhcpleases 32899 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:36:13 check_reload_status 399 updating dyndns wan Jul 17 11:36:13 check_reload_status 399 Reloading filter Jul 17 11:36:17 php-fpm 362 /index.php: Successful Jul 17 11:39:28 php-fpm 361 /interfaces.php: Cambio della configurazione: Jul 17 11:39:28 check_reload_status 399 Syncing firewall Jul 17 11:39:33 check_reload_status 399 Reloading filter Jul 17 11:39:33 php-fpm 361 /interfaces.php: Creazione dello script di aggiornamento rrd Jul 17 11:39:51 php-fpm 362 /interfaces.php: Cambio della configurazione: Jul 17 11:39:51 check_reload_status 399 Syncing firewall Jul 17 11:39:53 check_reload_status 399 Linkup starting ue0 Jul 17 11:39:53 kernel ue0: link state changed to DOWN Jul 17 11:39:54 php-fpm 361 /rc.linkup: DEVD Ethernet detached event for wan Jul 17 11:39:54 check_reload_status 399 Reloading filter Jul 17 11:39:57 check_reload_status 399 Linkup starting ue0 Jul 17 11:39:57 kernel ue0: link state changed to UP Jul 17 11:39:58 check_reload_status 399 rc.newwanip starting ue0 Jul 17 11:39:58 check_reload_status 399 Restarting IPsec tunnels Jul 17 11:39:58 php-fpm 361 /rc.linkup: DEVD Ethernet attached event for wan Jul 17 11:39:58 php-fpm 361 /rc.linkup: HOTPLUG: Configuring interface wan Jul 17 11:39:59 php-fpm 12836 /rc.newwanip: rc.newwanip: Info: starting on ue0. Jul 17 11:39:59 php-fpm 12836 /rc.newwanip: rc.newwanip: on (IP address: ) (interface: WAN[wan]) (real interface: ue0). Jul 17 11:39:59 php-fpm 12836 /rc.newwanip: rc.newwanip: Failed to update wan IP, restarting... Jul 17 11:39:59 check_reload_status 399 Configuring interface wan Jul 17 11:39:59 dhcpleases 85256 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:00 php-fpm 361 /rc.linkup: The command '/sbin/dhclient -c /var/etc/dhclient_wan.conf ue0 > /tmp/ue0_output 2> /tmp/ue0_error_output' returned exit code '15', the output was '' Jul 17 11:40:00 check_reload_status 399 Restarting IPsec tunnels Jul 17 11:40:00 dhcpleases 85256 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:00 dhcpleases 85256 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:00 check_reload_status 399 updating dyndns wan Jul 17 11:40:01 dhcpleases 6341 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:02 check_reload_status 399 rc.newwanip starting ue0 Jul 17 11:40:02 check_reload_status 399 updating dyndns wan Jul 17 11:40:02 check_reload_status 399 Reloading filter Jul 17 11:40:02 php-fpm 362 /interfaces.php: Rimozione dell'instradamento statico per il monitor 1.1.1.1 e aggiunta di un nuovo instradamento attraverso 192.168.X.X Jul 17 11:40:02 check_reload_status 399 Reloading filter Jul 17 11:40:02 php-fpm 362 /interfaces.php: Creazione dello script di aggiornamento rrd Jul 17 11:40:03 php-fpm 12836 /rc.newwanip: rc.newwanip: Info: starting on ue0. Jul 17 11:40:03 php-fpm 12836 /rc.newwanip: rc.newwanip: on (IP address: 192.168.1.3) (interface: WAN[wan]) (real interface: ue0). Jul 17 11:41:17 php-fpm 361 /index.php: Cambio della configurazione: admin@192.168.10.11 (Local Database): La configurazione del Widget è cambiata. Jul 17 11:41:17 check_reload_status 399 Syncing firewall DHCP Jul 17 11:34:47 dhclient 20023 connection closed Jul 17 11:34:47 dhclient 20023 exiting. Jul 17 11:34:54 dhclient 42671 Cannot open or create pidfile: No such file or directory Jul 17 11:34:54 dhclient 43117 PREINIT Jul 17 11:34:54 dhclient 42671 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:34:54 dhclient 43677 send_packet: No buffer space available Jul 17 11:34:56 dhclient 42671 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:34:56 dhclient 43677 send_packet: No buffer space available Jul 17 11:34:58 dhclient 42671 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:34:58 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:02 dhclient 42671 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:35:02 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:08 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1 Jul 17 11:35:08 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:09 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2 Jul 17 11:35:09 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:11 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5 Jul 17 11:35:11 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:16 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 10 Jul 17 11:35:16 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:26 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 11 Jul 17 11:35:26 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:37 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 14 Jul 17 11:35:37 dhclient 43677 send_packet: No buffer space available Jul 17 11:35:51 dhclient 42671 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 18 Jul 17 11:35:51 dhclient 43677 send_packet: No buffer space available Jul 17 11:36:09 dhclient 42671 No DHCPOFFERS received. Jul 17 11:36:09 dhclient 42671 Trying recorded lease 192.168.1.3 Jul 17 11:36:09 dhclient 89205 TIMEOUT Jul 17 11:36:09 dhclient 89341 Starting add_new_address() Jul 17 11:36:09 dhclient 89622 ifconfig ue0 inet 192.168.X.X netmask 255.255.255.0 broadcast 192.168.X.255 Jul 17 11:36:09 dhclient 90014 New IP Address (ue0): 192.168.X.X Jul 17 11:36:09 dhclient 90312 New Subnet Mask (ue0): 255.255.255.0 Jul 17 11:36:09 dhclient 90581 New Broadcast Address (ue0): 192.168.X.255 Jul 17 11:36:09 dhclient 90749 New Routers (ue0): 192.168.X.X Jul 17 11:36:10 dhclient 99746 New Routers (ue0): 192.168.X.X Jul 17 11:36:11 dhclient 19252 Deleting old routes Jul 17 11:36:11 dhclient 42671 No working leases in persistent database - sleeping. Jul 17 11:36:11 dhclient 20276 FAIL Jul 17 11:36:12 dhcpleases 32899 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:36:13 dhcpd 48546 Internet Systems Consortium DHCP Server 4.4.2-P1 Jul 17 11:36:13 dhcpd 48546 Copyright 2004-2021 Internet Systems Consortium. Jul 17 11:36:13 dhcpd 48546 All rights reserved. Jul 17 11:36:13 dhcpd 48546 For info, please visit https://www.isc.org/software/dhcp/ Jul 17 11:36:13 dhcpd 48546 Config file: /etc/dhcpd.conf Jul 17 11:36:13 dhcpd 48546 Database file: /var/db/dhcpd.leases Jul 17 11:36:13 dhcpd 48546 PID file: /var/run/dhcpd.pid Jul 17 11:36:13 dhcpd 48546 Internet Systems Consortium DHCP Server 4.4.2-P1 Jul 17 11:36:13 dhcpd 48546 Copyright 2004-2021 Internet Systems Consortium. Jul 17 11:36:13 dhcpd 48546 All rights reserved. Jul 17 11:36:13 dhcpd 48546 For info, please visit https://www.isc.org/software/dhcp/ Jul 17 11:36:13 dhcpd 48546 Wrote 0 class decls to leases file. Jul 17 11:36:13 dhcpd 48546 Wrote 0 deleted host decls to leases file. Jul 17 11:36:13 dhcpd 48546 Wrote 0 new dynamic host decls to leases file. Jul 17 11:36:13 dhcpd 48546 Wrote 18 leases to leases file. Jul 17 11:36:13 dhcpleases 32899 Sending HUP signal to dns daemon(37910) Jul 17 11:36:13 dhcpd 48546 Sending on Socket/fallback/fallback-net Jul 17 11:36:13 dhcpd 48546 Server starting service. Jul 17 11:36:13 dhcpleases 32899 Sending HUP signal to dns daemon(37910) Jul 17 11:36:24 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2 Jul 17 11:36:24 dhclient 43677 send_packet: No buffer space available Jul 17 11:36:26 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5 Jul 17 11:36:26 dhclient 43677 send_packet: No buffer space available Jul 17 11:36:31 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 9 Jul 17 11:36:31 dhclient 43677 send_packet: No buffer space available Jul 17 11:36:40 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 15 Jul 17 11:36:40 dhclient 43677 send_packet: No buffer space available Jul 17 11:36:55 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 9 Jul 17 11:36:55 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:04 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 15 Jul 17 11:37:04 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:19 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 6 Jul 17 11:37:19 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:25 dhclient 20342 No DHCPOFFERS received. Jul 17 11:37:25 dhclient 20342 Trying recorded lease 192.168.X.X Jul 17 11:37:25 dhclient 50656 TIMEOUT Jul 17 11:37:25 dhclient 50863 Starting add_new_address() Jul 17 11:37:25 dhclient 50919 ifconfig ue0 inet 192.168.X.X netmask 255.255.255.0 broadcast 192.168.X.255 Jul 17 11:37:25 dhclient 51570 New IP Address (ue0): 192.168.1.X Jul 17 11:37:25 dhclient 51855 New Subnet Mask (ue0): 255.255.255.0 Jul 17 11:37:25 dhclient 51923 New Broadcast Address (ue0): 192.168.X.255 Jul 17 11:37:25 dhclient 52225 New Routers (ue0): 192.168.X.X Jul 17 11:37:26 dhclient 52624 New Routers (ue0): 192.168.X.X Jul 17 11:37:27 dhclient 53056 Deleting old routes Jul 17 11:37:27 dhclient 20342 No working leases in persistent database - sleeping. Jul 17 11:37:27 dhclient 54238 FAIL Jul 17 11:37:40 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2 Jul 17 11:37:40 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:42 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 4 Jul 17 11:37:42 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:46 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5 Jul 17 11:37:46 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:51 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 8 Jul 17 11:37:51 dhclient 43677 send_packet: No buffer space available Jul 17 11:37:59 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 20 Jul 17 11:37:59 dhclient 43677 send_packet: No buffer space available Jul 17 11:38:19 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 8 Jul 17 11:38:19 dhclient 43677 send_packet: No buffer space available Jul 17 11:38:27 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 14 Jul 17 11:38:27 dhclient 43677 send_packet: No buffer space available Jul 17 11:38:41 dhclient 20342 No DHCPOFFERS received. Jul 17 11:38:41 dhclient 20342 Trying recorded lease 192.168.X.X Jul 17 11:38:41 dhclient 8243 TIMEOUT Jul 17 11:38:41 dhclient 8298 Starting add_new_address() Jul 17 11:38:41 dhclient 8526 ifconfig ue0 inet 192.168.X.X netmask 255.255.255.0 broadcast 192.168.X.255 Jul 17 11:38:41 dhclient 8787 New IP Address (ue0): 192.168.X.X Jul 17 11:38:41 dhclient 8948 New Subnet Mask (ue0): 255.255.255.0 Jul 17 11:38:41 dhclient 8993 New Broadcast Address (ue0): 192.168.X.255 Jul 17 11:38:41 dhclient 9231 New Routers (ue0): 192.168.X.X Jul 17 11:38:42 dhclient 10017 New Routers (ue0): 192.168.X.X Jul 17 11:38:43 dhclient 13423 Deleting old routes Jul 17 11:38:43 dhclient 20342 No working leases in persistent database - sleeping. Jul 17 11:38:43 dhclient 13916 FAIL Jul 17 11:38:56 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1 Jul 17 11:38:56 dhclient 43677 send_packet: No buffer space available Jul 17 11:38:57 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1 Jul 17 11:38:57 dhclient 43677 send_packet: No buffer space available Jul 17 11:38:58 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2 Jul 17 11:38:58 dhclient 43677 send_packet: No buffer space available Jul 17 11:39:00 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 4 Jul 17 11:39:00 dhclient 43677 send_packet: No buffer space available Jul 17 11:39:04 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 7 Jul 17 11:39:04 dhclient 43677 send_packet: No buffer space available Jul 17 11:39:11 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 8 Jul 17 11:39:11 dhclient 43677 send_packet: No buffer space available Jul 17 11:39:19 dhclient 20342 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 13 Jul 17 11:39:19 dhclient 43677 send_packet: No buffer space available Jul 17 11:39:30 dhclient 43677 connection closed Jul 17 11:39:30 dhclient 43677 exiting. Jul 17 11:39:53 dhclient 57779 Cannot open or create pidfile: No such file or directory Jul 17 11:39:57 dhclient 72655 PREINIT Jul 17 11:39:57 dhclient 57779 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:39:57 dhclient 57779 DHCPACK from 192.168.X.X Jul 17 11:39:57 dhclient 73582 REBOOT Jul 17 11:39:57 dhclient 73723 Starting add_new_address() Jul 17 11:39:57 dhclient 73740 ifconfig ue0 inet 192.168.X.X netmask 255.255.255.0 broadcast 192.168.X.255 Jul 17 11:39:58 dhclient 74189 New IP Address (ue0): 192.168.X.X Jul 17 11:39:58 dhclient 74282 New Subnet Mask (ue0): 255.255.255.0 Jul 17 11:39:58 dhclient 74534 New Broadcast Address (ue0): 192.168.X.255 Jul 17 11:39:58 dhclient 74636 New Routers (ue0): 192.168.X.X Jul 17 11:39:58 dhclient 74914 Adding new routes to interface: ue0 Jul 17 11:39:58 dhclient 75873 /sbin/route add -host 192.168.X.X -iface ue0 Jul 17 11:39:58 dhclient 76385 /sbin/route add default 192.168.X.X Jul 17 11:39:58 dhclient 76579 Creating resolv.conf Jul 17 11:39:58 dhclient 57779 bound to 192.168.X.X -- renewal in 2147483647 seconds. Jul 17 11:39:58 dhclient 73080 connection closed Jul 17 11:39:58 dhclient 73080 exiting. Jul 17 11:39:59 dhcpleases 85256 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:39:59 dhclient 91956 Cannot open or create pidfile: No such file or directory Jul 17 11:39:59 dhclient 92487 PREINIT Jul 17 11:39:59 dhclient 91956 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:40:00 dhclient 91956 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:40:00 dhclient 93119 connection closed Jul 17 11:40:00 dhclient 93119 exiting. Jul 17 11:40:00 dhcpd 3324 Internet Systems Consortium DHCP Server 4.4.2-P1 Jul 17 11:40:00 dhcpd 3324 Copyright 2004-2021 Internet Systems Consortium. Jul 17 11:40:00 dhcpd 3324 All rights reserved. Jul 17 11:40:00 dhcpd 3324 For info, please visit https://www.isc.org/software/dhcp/ Jul 17 11:40:00 dhcpd 3324 Config file: /etc/dhcpd.conf Jul 17 11:40:00 dhcpd 3324 Database file: /var/db/dhcpd.leases Jul 17 11:40:00 dhcpd 3324 PID file: /var/run/dhcpd.pid Jul 17 11:40:00 dhcpd 3324 Internet Systems Consortium DHCP Server 4.4.2-P1 Jul 17 11:40:00 dhcpd 3324 Copyright 2004-2021 Internet Systems Consortium. Jul 17 11:40:00 dhcpd 3324 All rights reserved. Jul 17 11:40:00 dhcpd 3324 For info, please visit https://www.isc.org/software/dhcp/ Jul 17 11:40:00 dhcpd 3324 Wrote 0 class decls to leases file. Jul 17 11:40:00 dhcpd 3324 Wrote 0 deleted host decls to leases file. Jul 17 11:40:00 dhcpd 3324 Wrote 0 new dynamic host decls to leases file. Jul 17 11:40:00 dhcpd 3324 Wrote 18 leases to leases file. Jul 17 11:40:00 dhcpleases 85256 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:00 dhcpd 3324 Sending on Socket/fallback/fallback-net Jul 17 11:40:00 dhcpd 3324 Server starting service. Jul 17 11:40:00 dhcpleases 85256 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:01 dhclient 4373 Cannot open or create pidfile: No such file or directory Jul 17 11:40:01 dhclient 5405 PREINIT Jul 17 11:40:01 dhcpleases 6341 Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) cannot be read, No such file or directory. Jul 17 11:40:01 dhclient 4373 DHCPREQUEST on ue0 to 255.255.255.255 port 67 Jul 17 11:40:02 dhclient 4373 DHCPACK from 192.168.X.X Jul 17 11:40:02 dhclient 13511 REBOOT Jul 17 11:40:02 dhclient 13769 Starting add_new_address() Jul 17 11:40:02 dhclient 14044 ifconfig ue0 inet 192.168.X.X netmask 255.255.255.0 broadcast 192.168.X.255
-
I try to disable monitoring for gateway. It remains up but doesn’t work. I lost my connection anyway. I need to put down and re-up the wan interface.
Anyone can help me?
-
@falassion
Re-enable the gateway monitoring and set an external IP for monitoring in case you've changed that in the meantime.Then try enabling System > Advanced > Miscellaneous > State Killing on Gateway Failure.