Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    WAN only connects on unplug and plug back in

    Scheduled Pinned Locked Moved General pfSense Questions
    59 Posts 4 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      They are in the config file (/conf/config.xml) but you should be able to remove them in the gui by re-configuring vmstat.

      randombitsR 1 Reply Last reply Reply Quote 0
      • randombitsR
        randombits @stephenw10
        last edited by

        @stephenw10 I was the right place I assumed, but a bit daunted pruning the xml. What do you mean by re-configuring the xmstat ?

        The interfaces look like this 2024-08-20 15_07_33-pfSense.localdomain - Interfaces_ Interface Assignments.png

        Does pfSense assume the WAN is vtnet0 or vtnet1 ? I vaguely remember em0 and em1 would get mixed up

        stephenw10S 1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator @randombits
          last edited by

          @randombits said in WAN only connects on unplug and plug back in:

          Does pfSense assume the WAN is vtnet0 or vtnet1 ?

          It has no preset config for vtnet, the user has to assign those interfaces manually.

          If you have em NICs it will initially use em0 as WAN unless you set it differently.

          vmstat is used by a package you have installed so probably darkstat or Banwidthd. If you resave the config in that package it should remove those old NIC references.

          randombitsR 1 Reply Last reply Reply Quote 0
          • randombitsR
            randombits @stephenw10
            last edited by randombits

            @stephenw10 I removed both darkstat & bandwidthd and reinstalled them but the orphaned interfaces are still in the log.

            I just looked in config.xml and there's no reference to emX.XXX etc only vtnet's

            Just spotted this, but not sure how relevant it is

            Aug 20 18:28:30	php-cgi	453	rc.bootup: Default gateway setting Interface WAN_DHCP Gateway as default.
            Aug 20 18:28:30	php-cgi	453	rc.bootup: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
            Aug 20 18:28:31	kernel		done.
            Aug 20 18:28:34	php-cgi	453	rc.bootup: sync unbound done.
            Aug 20 18:28:35	kernel		done.
            

            One thing, many thanks for bearing with me - I do very much appreciate it ! ๐Ÿ‘

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Yes, that's what I pointed out above. It may or may not be the issue but it's certainly suspicious.

              What interface references are you seeing now?

              What packages do you still have installed?

              randombitsR 1 Reply Last reply Reply Quote 0
              • randombitsR
                randombits @stephenw10
                last edited by

                @stephenw10 Packages
                screencapture-pfsense-pkg-mgr-installed-php-2024-08-20-19_02_59.png

                And these still hanging around

                Aug 20 18:29:28	vnstatd	41582	vnStat daemon 2.11 (pid:41582 uid:0 gid:0, SQLite 3.43.1)
                Aug 20 18:29:28	vnstatd	41582	Data retention: 48 5MinuteHours, 4 HourlyDays, 62 DailyDays, 25 MonthlyMonths, -1 YearlyYears, 20 TopDayEntries
                Aug 20 18:29:28	vnstatd	41582	Monitoring (22): vtnet1 (10000 Mbit) vtnet0.999 (10000 Mbit) vtnet0.40 (10000 Mbit) vtnet0.30 (10000 Mbit) vtnet0.20 (10000 Mbit) vtnet0.10 (10000 Mbit) vtnet0 (10000 Mbit) tun_wg1 (1000 Mbit) tun_wg0 (1000 Mbit) pppoe0 (1000 Mbit) pfsync0 (1000 Mbit) pflog0 (1000 Mbit) ovpns1 (1000 Mbit) ovpnc2 (1000 Mbit) enc0 (1000 Mbit) em1 (1000 Mbit) em0.999 (1000 Mbit) em0.40 (1000 Mbit) em0.30 (1000 Mbit) em0.20 (1000 Mbit) em0.10 (1000 Mbit) em0 (1000 Mbit)
                Aug 20 18:29:28	vnstatd	45241	Error: pidfile "/var/run/vnstat/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.
                Aug 20 18:29:28	vnstatd	41582	Interface "tun_wg1" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "tun_wg0" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "pppoe0" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em1" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em0.999" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em0.40" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em0.30" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em0.20" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em0.10" disabled.
                Aug 20 18:29:28	vnstatd	41582	Interface "em0" disabled.
                Aug 20 18:29:28	tail_pfb	46393	[pfBlockerNG] Firewall Filter Service stopped
                Aug 20 18:29:29	php_pfb	47122	[pfBlockerNG] filterlog daemon stopped
                Aug 20 18:29:29	tail_pfb	53027	[pfBlockerNG] Firewall Filter Service started
                Aug 20 18:29:29	root	53976	Bootup complete
                
                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Do you still see those is Bandwidthd and darkstat are disabled?

                  randombitsR 1 Reply Last reply Reply Quote 0
                  • randombitsR
                    randombits @stephenw10
                    last edited by

                    @stephenw10 yes, I removed both packages and not reinstalled and the interface references are still there after a reboot

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Hmm, and still from vnstatd?

                      I'd backup the config and search it directly for em references.

                      randombitsR 1 Reply Last reply Reply Quote 0
                      • randombitsR
                        randombits @stephenw10
                        last edited by randombits

                        @stephenw10 yes vmstatd, bit difficult on a phone atm, I'll save and look at the config.

                        1 Reply Last reply Reply Quote 1
                        • randombitsR
                          randombits
                          last edited by randombits

                          Right then, No reference to em interfaces at all only vtnet ones.

                          Ah-ha ! I removed Traffic totals and rebooted and the vnstatd interfaces references have gone.

                          Although the rebooting WAN issues remains

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            Ah, you may need to clear the traffic totals data then if you still need that. Though it clearly isn't what's preventing the default route. ๐Ÿค”

                            randombitsR 1 Reply Last reply Reply Quote 0
                            • randombitsR
                              randombits @stephenw10
                              last edited by

                              @stephenw10 The traffic totals cleared themselves but I also reset them.

                              For clarity here is the log now.

                              ------------- pfSense rebooted ------------
                              
                              Aug 21 12:37:54	kernel		Features2=0x82b82201<SSE3,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AESNI,HV>
                              Aug 21 12:37:54	kernel		AMD Features=0x20100800<SYSCALL,NX,LM>
                              Aug 21 12:37:54	kernel		AMD Features2=0x1<LAHF>
                              Aug 21 12:37:54	kernel		Hypervisor: Origin = "KVMKVMKVM"
                              Aug 21 12:37:54	kernel		intsmb0: <Intel PIIX4 SMBUS Interface> irq 9 at device 1.3 on pci0
                              Aug 21 12:37:54	kernel		intsmb0: intr IRQ 9 enabled revision 0
                              Aug 21 12:37:54	kernel		smbus0: <System Management Bus> on intsmb0
                              Aug 21 12:37:54	kernel		aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS>
                              Aug 21 12:37:54	kernel		lo0: link state changed to UP
                              Aug 21 12:37:54	kernel		vtnet0: link state changed to UP
                              Aug 21 12:37:54	kernel		vlan0: changing name to 'vtnet0.10'
                              Aug 21 12:37:54	php-cgi	453	rc.bootup: The command '/sbin/ifconfig 'vtnet1' inet6 delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'
                              Aug 21 12:37:54	kernel		vlan1: changing name to 'vtnet0.20'
                              Aug 21 12:37:54	kernel		vlan2: changing name to 'vtnet0.30'
                              Aug 21 12:37:54	kernel		vlan3: changing name to 'vtnet0.40'
                              Aug 21 12:37:54	kernel		vlan4: changing name to 'vtnet0.999'
                              Aug 21 12:37:54	kernel		vtnet1: link state changed to UP
                              Aug 21 12:37:54	check_reload_status	428	Linkup starting vtnet1
                              Aug 21 12:37:54	php-cgi	453	rc.bootup: The command '/sbin/ifconfig 'vtnet1' media 'autoselect'' returned exit code '1', the output was 'ifconfig: SIOCSIFMEDIA (media): Operation not supported'
                              Aug 21 12:37:54	kernel		[fib_algo] inet.0 (bsearch4#28) rebuild_fd_flm: switching algo to radix4_lockless
                              Aug 21 12:37:54	check_reload_status	428	rc.newwanip starting vtnet1
                              Aug 21 12:37:55	php-fpm	396	/rc.linkup: Ignoring link event during boot sequence.
                              Aug 21 12:37:55	php-fpm	397	/rc.newwanip: rc.newwanip: Info: starting on vtnet1.
                              Aug 21 12:37:55	php-fpm	397	/rc.newwanip: rc.newwanip: on (IP address: x.x.x.x) (interface: WAN[wan]) (real interface: vtnet1).
                              Aug 21 12:37:56	check_reload_status	428	starting sshd
                              Aug 21 12:37:56	php-cgi	453	rc.bootup: Resyncing OpenVPN instances.
                              Aug 21 12:37:56	kernel		done.
                              Aug 21 12:37:56	kernel		tun1: changing name to 'ovpns1'
                              Aug 21 12:37:57	kernel		ovpns1: link state changed to UP
                              Aug 21 12:37:57	kernel		tun2: changing name to 'ovpnc2'
                              Aug 21 12:37:57	check_reload_status	428	rc.newwanip starting ovpns1
                              Aug 21 12:37:57	sshd	77964	Server listening on :: port 22.
                              Aug 21 12:37:57	sshd	77964	Server listening on 0.0.0.0 port 22.
                              Aug 21 12:37:57	sshguard	78881	Now monitoring attacks.
                              Aug 21 12:37:58	kernel		pflog0: promiscuous mode enabled
                              Aug 21 12:37:58	php-fpm	396	/rc.newwanip: rc.newwanip: Info: starting on ovpns1.
                              Aug 21 12:37:58	php-fpm	396	/rc.newwanip: Interface is disabled, nothing to do.
                              Aug 21 12:38:01	kernel		.done.
                              Aug 21 12:38:01	kernel		done.
                              Aug 21 12:38:03	php-cgi	453	rc.bootup: Default gateway setting Interface WAN_DHCP Gateway as default.
                              Aug 21 12:38:03	php-cgi	453	rc.bootup: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:38:03	kernel		done.
                              Aug 21 12:38:07	php-cgi	453	rc.bootup: sync unbound done.
                              Aug 21 12:38:07	kernel		done.
                              Aug 21 12:38:09	kernel		done.
                              Aug 21 12:38:39	kernel		done.
                              Aug 21 12:38:39	php-cgi	453	rc.bootup: NTPD is starting up.
                              Aug 21 12:38:39	kernel		done.
                              Aug 21 12:38:40	check_reload_status	428	Updating all dyndns
                              Aug 21 12:38:40	kernel		done.
                              Aug 21 12:38:41	kernel		.
                              Aug 21 12:38:41	kernel		..
                              Aug 21 12:38:42	php-cgi	453	rc.bootup: The command '/usr/local/sbin/strongswanrc stop' returned exit code '1', the output was 'strongswan not running? (check /var/run/daemon-charon.pid).'
                              Aug 21 12:38:42	kernel		.done.
                              Aug 21 12:38:46	php-cgi	453	rc.bootup: The command '/sbin/camcontrol standby da0 -t 0.5' returned exit code '1', the output was 'camcontrol: ATA STANDBY via pass_16 failed'
                              Aug 21 12:38:46	php-cgi	453	rc.bootup: Creating rrd update script
                              Aug 21 12:38:46	php-cgi	453	rc.bootup: The command '/usr/sbin/powerd -b 'min' -a 'min' -n 'min'' returned exit code '69', the output was 'powerd: no cpufreq(4) support -- aborting: No such file or directory'
                              Aug 21 12:38:46	kernel		done.
                              Aug 21 12:38:47	syslogd		exiting on signal 15
                              Aug 21 12:38:47	syslogd		kernel boot file is /boot/kernel/kernel
                              Aug 21 12:38:47	kernel		done.
                              Aug 21 12:38:47	php-cgi	92079	notify_monitor.php: Could not send the message to alert@XXXXXXXX.com -- Error: Failed to connect to ssl://smtp.googlemail.com:465 [SMTP: Failed to connect socket: php_network_getaddresses: getaddrinfo for smtp.googlemail.com failed: Name does not resolve (code: -1, response: )]
                              Aug 21 12:38:47	php-fpm	397	/rc.start_packages: Restarting/Starting all packages.
                              Aug 21 12:38:48	lighttpd_pfb	14154	[pfBlockerNG] DNSBL Webserver stopped
                              Aug 21 12:38:48	lighttpd_pfb	15549	[pfBlockerNG] DNSBL Webserver started
                              Aug 21 12:38:48	php	16207	[pfBlockerNG] DNSBL parser daemon started
                              Aug 21 12:38:50	php-fpm	397	[pfBlockerNG] Starting firewall filter daemon
                              Aug 21 12:38:50	tail_pfb	6980	[pfBlockerNG] Firewall Filter Service stopped
                              Aug 21 12:38:50	php_pfb	7757	[pfBlockerNG] filterlog daemon stopped
                              Aug 21 12:38:50	tail_pfb	9955	[pfBlockerNG] Firewall Filter Service started
                              Aug 21 12:38:50	php_pfb	10695	[pfBlockerNG] filterlog daemon started
                              Aug 21 12:38:50	vnstatd	16176	vnStat daemon 2.11 (pid:16176 uid:0 gid:0, SQLite 3.43.1)
                              Aug 21 12:38:50	vnstatd	16176	Monitoring (12): vtnet1 (10000 Mbit) vtnet0.999 (10000 Mbit) vtnet0.40 (10000 Mbit) vtnet0.30 (10000 Mbit) vtnet0.20 (10000 Mbit) vtnet0.10 (10000 Mbit) vtnet0 (10000 Mbit) pfsync0 (1000 Mbit) pflog0 (1000 Mbit) ovpns1 (1000 Mbit) ovpnc2 (1000 Mbit) enc0 (1000 Mbit)
                              Aug 21 12:38:53	arpwatch	18952	listening on vtnet0.10
                              Aug 21 12:38:53	kernel		vtnet0: promiscuous mode enabled
                              Aug 21 12:38:53	kernel		vtnet0.10: promiscuous mode enabled
                              Aug 21 12:38:53	arpwatch	18794	listening on vtnet0
                              Aug 21 12:38:53	arpwatch	19547	listening on vtnet0.30
                              Aug 21 12:38:53	kernel		vtnet0.30: promiscuous mode enabled
                              Aug 21 12:38:53	arpwatch	19188	listening on vtnet0.20
                              Aug 21 12:38:53	kernel		vtnet0.20: promiscuous mode enabled
                              Aug 21 12:38:53	arpwatch	20053	Link layer type 0 not ethernet or fddi
                              Aug 21 12:38:53	kernel		ovpnc2: promiscuous mode enabled
                              Aug 21 12:38:54	kernel		ovpnc2: promiscuous mode disabled
                              Aug 21 12:38:54	kernel		vtnet0.999: promiscuous mode enabled
                              Aug 21 12:38:53	arpwatch	20289	listening on vtnet0.999
                              Aug 21 12:38:54	arpwatch	20571	pcap open : : No such device exists (No such device exists)
                              Aug 21 12:38:54	arpwatch	20902	listening on vtnet1
                              Aug 21 12:38:54	kernel		vtnet1: promiscuous mode enabled
                              Aug 21 12:38:58	php-fpm	43380	/index.php: Successful login for user 'admin' from: 192.168.2.21 (Local Database)
                              Aug 21 12:38:58	sshguard	26469	Now monitoring attacks.
                              Aug 21 12:39:01	vnstatd	17978	Error: pidfile "/var/run/vnstat/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.
                              Aug 21 12:39:01	vnstatd	20270	Error: pidfile "/var/run/vnstat/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.
                              Aug 21 12:39:01	lighttpd_pfb	21446	[pfBlockerNG] DNSBL Webserver stopped
                              Aug 21 12:39:01	tail_pfb	22424	[pfBlockerNG] Firewall Filter Service stopped
                              Aug 21 12:39:01	php_pfb	22989	[pfBlockerNG] filterlog daemon stopped
                              Aug 21 12:39:01	lighttpd_pfb	26879	[pfBlockerNG] DNSBL Webserver started
                              Aug 21 12:39:01	tail_pfb	28083	[pfBlockerNG] Firewall Filter Service started
                              Aug 21 12:39:01	php_pfb	28887	[pfBlockerNG] filterlog daemon started
                              Aug 21 12:39:01	php	31423	[pfBlockerNG] DNSBL parser daemon started
                              Aug 21 12:39:27	vnstatd	16176	SIGTERM received, exiting.
                              Aug 21 12:39:27	root	27425	Bootup complete
                              Aug 21 12:39:29	login	67823	login on ttyv0 as root
                              Aug 21 12:39:33	arpwatch	18794	bogon 0.0.0.0 fc:b4:67:d4:db:b0
                              Aug 21 12:39:33	arpwatch	18794	bogon 0.0.0.0 fc:b4:67:d4:db:b0
                              Aug 21 12:39:34	arpwatch	18794	bogon 0.0.0.0 fc:b4:67:d4:db:b0
                              
                              ----------- TOGGLED WAN DOWN TO UP ------------
                              
                              Aug 21 12:45:48	kernel		vtnet1: link state changed to DOWN
                              Aug 21 12:45:48	check_reload_status	428	Linkup starting vtnet1
                              Aug 21 12:45:49	php-fpm	397	/rc.linkup: Hotplug event detected for WAN(wan) dynamic IP address (4: dhcp)
                              Aug 21 12:45:49	php-fpm	397	/rc.linkup: DEVD Ethernet detached event for wan
                              Aug 21 12:45:50	check_reload_status	428	updating dyndns WAN_DHCP
                              Aug 21 12:45:50	check_reload_status	428	Restarting IPsec tunnels
                              Aug 21 12:45:50	check_reload_status	428	Restarting OpenVPN tunnels/interfaces
                              Aug 21 12:45:50	check_reload_status	428	Reloading filter
                              Aug 21 12:45:50	rc.gateway_alarm	13675	>>> Gateway alarm: WAN_DHCP (Addr:x.x.x.x Alarm:down RTT:0ms RTTsd:0ms Loss:100%)
                              Aug 21 12:45:51	php-fpm	396	/rc.openvpn: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:45:51	php-fpm	396	/rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed IP addresses. Reloading endpoints that may use WAN_DHCP.
                              Aug 21 12:45:53	check_reload_status	428	Linkup starting vtnet1
                              Aug 21 12:45:53	kernel		vtnet1: link state changed to UP
                              Aug 21 12:46:00	php-cgi	55521	servicewatchdog_cron.php: Service Watchdog detected service dpinger stopped. Restarting dpinger (Gateway Monitoring Daemon)
                              Aug 21 12:46:00	php-cgi	57907	notify_monitor.php: Could not send the message to alert@xxxxxxx.com -- Error: Failed to connect to ssl://smtp.googlemail.com:465 [SMTP: Failed to connect socket: php_network_getaddresses: getaddrinfo for smtp.googlemail.com failed: Name does not resolve (code: -1, response: )]
                              Aug 21 12:46:01	check_reload_status	428	Reloading filter
                              Aug 21 12:46:01	php-fpm	396	/rc.linkup: Hotplug event detected for WAN(wan) dynamic IP address (4: dhcp)
                              Aug 21 12:46:01	php-fpm	396	/rc.linkup: DEVD Ethernet attached event for wan
                              Aug 21 12:46:01	php-fpm	396	/rc.linkup: HOTPLUG: Configuring interface wan
                              Aug 21 12:46:01	php-fpm	396	/rc.linkup: The command '/sbin/ifconfig 'vtnet1' media 'autoselect'' returned exit code '1', the output was 'ifconfig: SIOCSIFMEDIA (media): Operation not supported'
                              Aug 21 12:46:02	check_reload_status	428	rc.newwanip starting vtnet1
                              Aug 21 12:46:02	php-fpm	396	/rc.linkup: Default gateway setting Interface WAN_DHCP Gateway as default.
                              Aug 21 12:46:02	php-fpm	396	/rc.linkup: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:46:02	check_reload_status	428	Restarting IPsec tunnels
                              Aug 21 12:46:03	php-fpm	397	/rc.newwanip: rc.newwanip: Info: starting on vtnet1.
                              Aug 21 12:46:03	php-fpm	397	/rc.newwanip: rc.newwanip: on (IP address: x.x.x.x) (interface: WAN[wan]) (real interface: vtnet1).
                              Aug 21 12:46:04	arpwatch	20902	bogon x.x.x.x d4:5a:3f:3c:db:09
                              Aug 21 12:46:12	kernel		ovpnc2: link state changed to UP
                              Aug 21 12:46:12	check_reload_status	428	rc.newwanip starting ovpnc2
                              Aug 21 12:46:13	php-fpm	907	/rc.newwanip: rc.newwanip: Info: starting on ovpnc2.
                              Aug 21 12:46:13	php-fpm	907	/rc.newwanip: rc.newwanip: on (IP address: 10.16.0.2) (interface: PROTONVPN_NL[opt4]) (real interface: ovpnc2).
                              Aug 21 12:46:37	php-fpm	397	/rc.newwanip: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:46:37	php-fpm	397	/rc.newwanip: IP Address has changed, killing states on former IP Address 0.0.0.0.
                              Aug 21 12:46:40	php-fpm	907	/rc.newwanip: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:46:47	check_reload_status	428	updating dyndns wan
                              Aug 21 12:46:47	check_reload_status	428	Reloading filter
                              Aug 21 12:46:48	arpwatch	20902	bogon x.x.x.x d4:5a:3f:3c:db:09
                              Aug 21 12:47:16	php-fpm	397	/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
                              Aug 21 12:47:16	php-fpm	397	OpenVPN terminate old pid: 66100
                              Aug 21 12:47:16	kernel		ovpns1: link state changed to DOWN
                              Aug 21 12:47:19	pfSctl	64586	could not finish read in a reasonable time. Action of event might not be completed.
                              Aug 21 12:47:20	php-fpm	397	/rc.newwanip: OpenVPN ID server1 PID 66100 still running, killing.
                              Aug 21 12:47:20	php-fpm	397	OpenVPN PID written: 81805
                              Aug 21 12:47:20	kernel		ovpns1: link state changed to UP
                              Aug 21 12:47:22	check_reload_status	428	Reloading filter
                              Aug 21 12:47:22	check_reload_status	428	Reloading filter
                              Aug 21 12:47:22	check_reload_status	428	rc.newwanip starting ovpns1
                              Aug 21 12:47:22	php-fpm	397	OpenVPN terminate old pid: 83659
                              Aug 21 12:47:23	php-fpm	49815	/rc.newwanip: rc.newwanip: Info: starting on ovpns1.
                              Aug 21 12:47:23	php-fpm	49815	/rc.newwanip: Interface is disabled, nothing to do.
                              Aug 21 12:47:23	kernel		ovpnc2: link state changed to DOWN
                              Aug 21 12:47:23	check_reload_status	428	Reloading filter
                              Aug 21 12:47:24	php-fpm	397	OpenVPN PID written: 24831
                              Aug 21 12:47:24	php-fpm	397	/rc.newwanip: Creating rrd update script
                              Aug 21 12:47:26	kernel		ovpnc2: link state changed to UP
                              Aug 21 12:47:26	check_reload_status	428	rc.newwanip starting ovpnc2
                              Aug 21 12:47:26	php-fpm	397	/rc.newwanip: pfSense package system has detected an IP change or dynamic WAN reconnection - 0.0.0.0 -> x.x.x.x - Restarting packages.
                              Aug 21 12:47:26	check_reload_status	428	Starting packages
                              Aug 21 12:47:27	php-fpm	43380	/rc.newwanip: rc.newwanip: Info: starting on ovpnc2.
                              Aug 21 12:47:27	php-fpm	43380	/rc.newwanip: rc.newwanip: on (IP address: 10.22.0.3) (interface: PROTONVPN_NL[opt4]) (real interface: ovpnc2).
                              Aug 21 12:47:27	php-fpm	396	/rc.start_packages: Restarting/Starting all packages.
                              Aug 21 12:47:38	rc.gateway_alarm	92417	>>> Gateway alarm: PROTONVPN_NL_VPNV4 (Addr:10.16.0.2 Alarm:1 RTT:8.006ms RTTsd:49.594ms Loss:21%)
                              Aug 21 12:47:38	check_reload_status	428	updating dyndns PROTONVPN_NL_VPNV4
                              Aug 21 12:47:38	check_reload_status	428	Restarting IPsec tunnels
                              Aug 21 12:47:38	check_reload_status	428	Restarting OpenVPN tunnels/interfaces
                              Aug 21 12:47:38	check_reload_status	428	Reloading filter
                              Aug 21 12:47:39	php-fpm	397	/rc.openvpn: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:47:39	php-fpm	397	/rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed IP addresses. Reloading endpoints that may use PROTONVPN_NL_VPNV4.
                              Aug 21 12:47:52	php-fpm	907	/rc.newwanip: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1724240872] unbound[45808:0] error: bind: address already in use [1724240872] unbound[45808:0] fatal error: could not open ports'
                              Aug 21 12:47:53	php-fpm	43380	/rc.newwanip: The command '/sbin/route -n6 get 'default' 2>/dev/null | /usr/bin/egrep 'flags: <.*PROTO.*>'' returned exit code '1', the output was ''
                              Aug 21 12:47:53	php-fpm	43380	/rc.newwanip: IP Address has changed, killing states on former IP Address 10.16.0.2.
                              Aug 21 12:47:53	php-fpm	907	/rc.newwanip: Creating rrd update script
                              Aug 21 12:47:55	php-fpm	907	/rc.newwanip: pfSense package system has detected an IP change or dynamic WAN reconnection - 10.16.0.2 -> 10.16.0.2 - Restarting packages.
                              Aug 21 12:48:00	check_reload_status	428	Starting packages
                              Aug 21 12:48:00	check_reload_status	428	Reloading filter
                              Aug 21 12:48:01	php-fpm	45571	/rc.start_packages: Skipping STARTing packages process because previous/another instance is already running
                              Aug 21 12:48:31	php-fpm	43380	/rc.newwanip: Creating rrd update script
                              Aug 21 12:48:33	kernel		vtnet0.10: promiscuous mode disabled
                              Aug 21 12:48:33	kernel		vtnet1: promiscuous mode disabled
                              Aug 21 12:48:33	kernel		vtnet0.30: promiscuous mode disabled
                              Aug 21 12:48:33	kernel		vtnet0.20: promiscuous mode disabled
                              Aug 21 12:48:33	kernel		vtnet0.999: promiscuous mode disabled
                              Aug 21 12:48:33	vnstatd	94480	vnStat daemon 2.11 (pid:94480 uid:0 gid:0, SQLite 3.43.1)
                              Aug 21 12:48:33	vnstatd	94480	Data retention: 48 5MinuteHours, 4 HourlyDays, 62 DailyDays, 25 MonthlyMonths, -1 YearlyYears, 20 TopDayEntries
                              Aug 21 12:48:33	vnstatd	94480	Monitoring (12): vtnet1 (10000 Mbit) vtnet0.999 (10000 Mbit) vtnet0.40 (10000 Mbit) vtnet0.30 (10000 Mbit) vtnet0.20 (10000 Mbit) vtnet0.10 (10000 Mbit) vtnet0 (10000 Mbit) pfsync0 (1000 Mbit) pflog0 (1000 Mbit) ovpns1 (1000 Mbit) ovpnc2 (1000 Mbit) enc0 (1000 Mbit)
                              Aug 21 12:48:33	php-fpm	43380	/rc.newwanip: pfSense package system has detected an IP change or dynamic WAN reconnection - 10.16.0.2 -> 10.22.0.3 - Restarting packages.
                              Aug 21 12:48:33	check_reload_status	428	Starting packages
                              Aug 21 12:48:33	check_reload_status	428	Reloading filter
                              Aug 21 12:48:34	php-fpm	397	/rc.start_packages: Skipping STARTing packages process because previous/another instance is already running
                              Aug 21 12:48:36	arpwatch	33916	listening on vtnet0
                              Aug 21 12:48:36	kernel		vtnet0.10: promiscuous mode enabled
                              Aug 21 12:48:36	arpwatch	34087	listening on vtnet0.10
                              Aug 21 12:48:36	kernel		vtnet0.20: promiscuous mode enabled
                              Aug 21 12:48:36	arpwatch	34436	listening on vtnet0.20
                              Aug 21 12:48:36	arpwatch	35139	Link layer type 0 not ethernet or fddi
                              Aug 21 12:48:36	kernel		vtnet0.30: promiscuous mode enabled
                              Aug 21 12:48:36	kernel		ovpnc2: promiscuous mode enabled
                              Aug 21 12:48:36	kernel		ovpnc2: promiscuous mode disabled
                              Aug 21 12:48:36	arpwatch	34681	listening on vtnet0.30
                              Aug 21 12:48:36	arpwatch	35875	pcap open : : No such device exists (No such device exists)
                              Aug 21 12:48:36	kernel		vtnet0.999: promiscuous mode enabled
                              Aug 21 12:48:36	kernel		vtnet1: promiscuous mode enabled
                              Aug 21 12:48:36	arpwatch	35559	listening on vtnet0.999
                              Aug 21 12:48:36	arpwatch	35992	listening on vtnet1
                              Aug 21 12:48:43	vnstatd	94480	SIGTERM received, exiting.
                              Aug 21 12:48:43	vnstatd	50165	vnStat daemon 2.11 (pid:50165 uid:0 gid:0, SQLite 3.43.1)
                              Aug 21 12:48:43	vnstatd	50165	Data retention: 48 5MinuteHours, 4 HourlyDays, 62 DailyDays, 25 MonthlyMonths, -1 YearlyYears, 20 TopDayEntries
                              Aug 21 12:48:43	vnstatd	50165	Monitoring (12): vtnet1 (10000 Mbit) vtnet0.999 (10000 Mbit) vtnet0.40 (10000 Mbit) vtnet0.30 (10000 Mbit) vtnet0.20 (10000 Mbit) vtnet0.10 (10000 Mbit) vtnet0 (10000 Mbit) pfsync0 (1000 Mbit) pflog0 (1000 Mbit) ovpns1 (1000 Mbit) ovpnc2 (1000 Mbit) enc0 (1000 Mbit)
                              Aug 21 12:48:43	vnstatd	52656	Error: pidfile "/var/run/vnstat/vnstat.pid" lock failed (Resource temporarily unavailable), exiting.
                              Aug 21 12:48:43	lighttpd_pfb	53425	[pfBlockerNG] DNSBL Webserver stopped
                              Aug 21 12:48:43	tail_pfb	55087	[pfBlockerNG] Firewall Filter Service stopped
                              Aug 21 12:48:43	php_pfb	55982	[pfBlockerNG] filterlog daemon stopped
                              Aug 21 12:48:43	tail_pfb	58619	[pfBlockerNG] Firewall Filter Service started
                              Aug 21 12:48:43	lighttpd_pfb	60520	[pfBlockerNG] DNSBL Webserver started
                              Aug 21 12:48:43	php_pfb	59060	[pfBlockerNG] filterlog daemon started
                              Aug 21 12:48:43	php	61611	[pfBlockerNG] DNSBL parser daemon started
                              Aug 21 12:49:00	php-cgi	67732	servicewatchdog_cron.php: Service Watchdog detected service telegraf stopped. Restarting telegraf (Telegraf daemon)
                              Aug 21 12:49:06	php-cgi	70303	notify_monitor.php: Message sent to alert@xxxxxx.com OK
                              Aug 21 12:50:00	php-fpm	45571	/status_logs.php: Configuration Change: admin@192.168.2.21 (Local Database): Log Display Settings Saved (no backup, no sync): General
                              
                              randombitsR 1 Reply Last reply Reply Quote 0
                              • randombitsR
                                randombits @randombits
                                last edited by

                                @randombits said in WAN only connects on unplug and plug back in:

                                Aug 21 12:37:54 php-cgi 453 rc.bootup: The command '/sbin/ifconfig 'vtnet1' inet6 delete' returned exit code '1', the output was 'ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address'

                                Just spotted this I wonder if it's a issue ?

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Unlikely, it probably doesn't have an IPv6 address.

                                  Which pfSense version is this?

                                  randombitsR 1 Reply Last reply Reply Quote 0
                                  • randombitsR
                                    randombits @stephenw10
                                    last edited by

                                    @stephenw10 I just remembered I did briefly enable IPv6 in the WAN basically to see if it would pick up an address from my ISP it did. But I undid it. I'm using version

                                    pfSense CE version 2.7.2-RELEASE (amd64)
                                    built on Wed Dec 6 20:10:00 GMT 2023
                                    FreeBSD 14.0-CURRENT
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Hmm what do you see if you run?:

                                      [2.7.2-RELEASE][admin@cedev-6.stevew.lan]/root: /sbin/route -n6 get 'default'
                                      route: route has not been found: No error: 0
                                      

                                      For some reason that is returning 1 for you during bootup which is probably preventing the rest of the script running.

                                      randombitsR 1 Reply Last reply Reply Quote 0
                                      • randombitsR
                                        randombits @stephenw10
                                        last edited by randombits

                                        @stephenw10 When it's working ok the same as you

                                        [2.7.2-RELEASE][root@pfSense.localdomain]/root: /sbin/route -n6 get 'default'
                                        route: route has not been found: No error: 0
                                        

                                        I need to wait a bit before I can reboot and take the internet down as I'm up and downloading....

                                        Just rebooted and it's the (no internet) ๐Ÿ˜•

                                        [2.7.2-RELEASE][root@pfSense.localdomain]/root: /sbin/route -n6 get 'default'
                                        route: route has not been found: No error: 0
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • stephenw10S
                                          stephenw10 Netgate Administrator
                                          last edited by

                                          OK, so that's the no default IPv4 route situation?

                                          randombitsR 1 Reply Last reply Reply Quote 0
                                          • randombitsR
                                            randombits @stephenw10
                                            last edited by

                                            @stephenw10 indeed, until WAN up-down

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.