OPNsense Forum

English Forums => General Discussion => Topic started by: Stillness0378 on November 04, 2022, 09:56:59 am

Title: WAN connection seems to drop multiple times a day
Post by: Stillness0378 on November 04, 2022, 09:56:59 am
Hi,

I have been using opnsense for about 2 months now, and i have seen consistent WAN dropouts which results in stale SSH connections/google meet meetings interrupted etc. My router is connected to a fiber-converter, which is supplied by my ISP.

Here are the logs that is written when it happens:

Code: [Select]
2022-11-04T09:42:13 Error   php  /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.newwanip: ROUTING: keeping current default gateway '79.136.xx.xx'
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.newwanip: ROUTING: setting IPv4 default route to 79.136.xx.xx
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'wan'
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.newwanip: On (IP address: 79.136.xx.xx) (interface: WAN[wan]) (real interface: igb0).
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.linkup: ROUTING: keeping current default gateway '79.136.xx.xx'
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'igb0'
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.linkup: ROUTING: setting IPv4 default route to 79.136.xx.xx
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.linkup: ROUTING: IPv4 default gateway set to wan
2022-11-04T09:42:13 Error   opnsense     /usr/local/etc/rc.linkup: ROUTING: entering configure using 'wan'
2022-11-04T09:42:12 Error   opnsense     /usr/local/etc/rc.linkup: DEVD: Ethernet attached event for dynamic wan(igb0)
2022-11-04T09:42:09 Error   opnsense     /usr/local/etc/rc.linkup: Clearing states for stale wan route on igb0
2022-11-04T09:42:09 Critical    dhclient     exiting.
2022-11-04T09:42:09 Error   dhclient     connection closed
2022-11-04T09:42:09 Error   opnsense     /usr/local/etc/rc.linkup: DEVD: Ethernet detached event for dynamic wan(igb0)

Any ideas what could be the issue here? Let me know if you need any more information

Thanks
Title: Re: WAN connection seems to drop multiple times a day
Post by: cookiemonster on November 04, 2022, 10:31:13 am
Code: [Select]
2022-11-04T09:42:09 Error   opnsense     /usr/local/etc/rc.linkup: DEVD: Ethernet detached event for dynamic wan(igb0)This is the significant part at the moment. It seems you have a hardware problem, maybe as simple as a loose connection. You can reproduce it by simply jiggling the cable a little I imagine.
Title: Re: WAN connection seems to drop multiple times a day
Post by: Stillness0378 on November 04, 2022, 10:54:36 am
Got it, thanks.

I've unplugged the modem from the ISP and plugged my opnsense box directly to the first jack in the apartment. Everything works except TV, probably a different VLAN i would guess.

I will run it like this for a few days and see if my issues goes away
Title: Re: WAN connection seems to drop multiple times a day
Post by: chtse53 on November 07, 2022, 03:19:54 am
I have similar problems and the logs looked similar too.  The ethernet detachment of both WAN and LAN occurred around the same time.  I was wondering whether it was due to the driver for my I225v3 NIC (2.5G NIC). However, it looks like the problem occurs with igb# NIC too.  Some previous posts about similar problems mentioned associations with MAC address spoofing, IPS mode which are present in my case.  There could be other possibilities apart from NIC hardware problem. Recently, Suricata logged a lot of "ET DOS Possible NTP DDoS Inbound Frequent Un-Authed MON" attacks and the ethernet detachment incidences appeared to occur sometime after these attacks. Wonder if that could be a trigger for the ethernet detachment incidence.