OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: shoterboyx on May 02, 2023, 11:45:25 AM

Title: 23.1.6 WAN gateway go offline every one hour
Post by: shoterboyx on May 02, 2023, 11:45:25 AM
Hi, hope im not on the wrong forum to ask this.

I've installed opnsense vm in proxmox and able to get internet connection. But every one hour exactly, i will lose internet connection and have to either go to Interface > Overview > WAN > Reload DHCP, or i reboot opnsense.

I've tried serveral methods from the community to set the option modifiers under WAN > DHCP (advanced) last roll  with this command

supersede dhcp-server-identifier 255.255.255.255, supersede dhcp-lease-time 3600

But the issue still persist.

I did tried installing pfsense to check it out and seems like it takes few more hours to drop internet connection but still eventually it still will happen.

I've a static IP plan with my ISP, its has 2 dedicated 1gbps lines and here is how my home connections are and incase you are wondering, i tried using a normal router and all is good.

I've a mini box pc with intel i226 nic (4 slot) and for the network card i passthru it from proxmox (not using virtio)

Modem  (LAN1) > OPNsense VM (WAN - port1) > PC (LAN - port2)
Modem (LAN2) > Asus Router > other devices

when my opnsense drops connection, my asus router is still running as usual with internet connection. Hope someone can enlighten me with what im missing
Title: Re: 23.1.6 WAN gateway go offline every one hour
Post by: osmom on May 02, 2023, 07:10:38 PM
Can you test to configer a Static IPv4 on your WAN interface?
Title: Re: 23.1.6 WAN gateway go offline every one hour
Post by: shoterboyx on May 03, 2023, 04:48:47 AM
Quote from: osmom on May 02, 2023, 07:10:38 PM
Can you test to configer a Static IPv4 on your WAN interface?

I tried to do do that in both Interface > WAN and System > Gateway > Single, i dont get any internet connection even thou gateway shows up. I've check on a my ISP website, it does mention WAN to enable dhcp, vlan untagged (disabled) which i believe is disabled on the option here in opnsense called "Use VLAN priority"

Here is my dhclient db. I cleared the file and restarted opnsense and this is the first lease. trying to find more logs to find out whats wrong as well if someone can point me to the right keyword or logs to search for


lease {
  interface "vtnet1";
  fixed-address 223.xxx.xxx.xxx;
  next-server 103.xxx.xxx.xxx;
  option subnet-mask 255.xxx.xxx.xxx;
  option routers 223.xxx.xxx.xxx;
  option domain-name-servers 101.xxx.xxx.xxx,103.xxx.xxx.xxx;
  option host-name "OPNsense";
  option broadcast-address 223.xxx.xxx.xxx;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option dhcp-server-identifier 103.xxx.xxx.xxx;
  option dhcp-client-identifier 1:72:xx:xx:xx:xx:xx;
  renew 3 2023/5/3 10:49:02;
  rebind 3 2023/5/3 11:11:32;
  expire 3 2023/5/3 11:19:02;
}
Title: Re: 23.1.6 WAN gateway go offline every one hour
Post by: shoterboyx on May 03, 2023, 02:48:09 PM
Seems like this works for me from this thread https://forum.opnsense.org/index.php?topic=32347.45

# opnsense-revert opnsense && opnsense-patch 90f1d1d766 && service configd restart

I did a clean install again, run the abv command and seems like it fixed the dhcp renew issue for me. I tried to then go into Firmware to update to the latest copy (commit: 982c0e24c) did a full reboot and still able to get pass the 1 hour mark!

Will observe for a few days before updating the this post again :)
Title: Re: 23.1.6 WAN gateway go offline every one hour
Post by: seki on May 12, 2023, 04:02:54 AM
I'm experiencing kind of similar issue like you guys however I cannot perform the OPNsense downgrade to a specific version.


<truncated output>

Configuring login behaviour...done.
Configuring system logging...done.
=====
Message from opnsense-23.1.7_3:

--
I'm no chicken
Found local copy of 90f1d1d766, skipping fetch.
2 out of 2 hunks failed while patching etc/inc/interfaces.inc
4 out of 7 hunks failed while patching etc/rc.newwanip