HI everyone,
My internet connection go trough an Ethernet cable plugged into the router 10gbits port and the other end to my computer usb-c port trough a usb ethernet adaptater from HELIX. I was wondering why I was loosing my VPN connection all the time like every hour or 30 minutes sometime every 15 minutes and less. I check everything and finally I saw in
so I understood that I have connection stability issue. My question is do other people experience issue like that, and is there something I can do about it.
The correct driver is loaded in the kernel:
also the Ethernet cable is brand-new.
And final here is my firewall config:
Thanks for insight.
My internet connection go trough an Ethernet cable plugged into the router 10gbits port and the other end to my computer usb-c port trough a usb ethernet adaptater from HELIX. I was wondering why I was loosing my VPN connection all the time like every hour or 30 minutes sometime every 15 minutes and less. I check everything and finally I saw in
/var/log/messages
the following :
Code:
Sep 23 16:54:37 nomonoru kernel: wg0: link state changed to UP
Sep 23 17:02:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:02:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:04:05 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:04:05 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:22:26 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:22:26 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:30:06 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:30:06 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:38:45 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:38:45 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:44:45 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:44:45 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:45:25 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:45:25 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:45:25 nomonoru kernel: ue0: 2 link states coalesced
Sep 23 17:45:25 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:45:25 nomonoru dhclient[2683]: New IP Address (ue0):
Sep 23 17:45:25 nomonoru dhclient[2687]: New Subnet Mask (ue0):
Sep 23 17:45:25 nomonoru dhclient[2691]: New Broadcast Address (ue0):
Sep 23 17:45:25 nomonoru dhclient[2695]: New Routers (ue0):
Sep 23 17:45:25 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:45:25 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:45:25 nomonoru kernel: wg0: loop detected
Sep 23 17:45:56 nomonoru syslogd: last message repeated 191 times
Sep 23 17:47:47 nomonoru syslogd: last message repeated 316 times
Sep 23 17:49:45 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:49:45 nomonoru kernel: ue0: link state changed to UP
Sep 23 17:55:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 17:55:35 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:07:34 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:07:34 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:07:45 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:07:45 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:17:06 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:17:06 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:17:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:17:35 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:17:45 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:17:45 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:22:54 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:22:54 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:22:57 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:22:57 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:23:17 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:23:17 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:30:25 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:30:25 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:34:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:34:35 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:38:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:38:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:41:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:41:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:46:15 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:46:15 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:50:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:50:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:57:04 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:57:04 nomonoru kernel: ue0: link state changed to UP
Sep 23 18:57:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 18:57:35 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:24:56 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:24:56 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:24:56 nomonoru kernel: ue0: 2 link states coalesced
Sep 23 19:24:56 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:24:56 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:24:56 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:24:57 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:24:57 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:25:07 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:25:07 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:25:37 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:25:37 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:26:05 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:26:05 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:26:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:26:35 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:30:47 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:30:47 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:31:15 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:31:15 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:32:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:32:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:35:46 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:35:46 nomonoru kernel: ue0: link state changed to UP
Sep 23 19:39:27 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 19:39:27 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:18:47 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:18:47 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:18:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:18:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:24:11 nomonoru kernel: wg0: link state changed to DOWN
Sep 23 20:24:15 nomonoru kernel: wg0: link state changed to UP
Sep 23 20:24:15 nomonoru kernel: wg0: loop detected
Sep 23 20:33:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:33:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:33:55 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:33:55 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:37:06 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:37:06 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:46:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:46:35 nomonoru kernel: ue0: link state changed to UP
Sep 23 20:46:35 nomonoru kernel: ue0: link state changed to DOWN
Sep 23 20:46:35 nomonoru kernel: ue0: link state changed to UP
so I understood that I have connection stability issue. My question is do other people experience issue like that, and is there something I can do about it.
The correct driver is loaded in the kernel:
if_ur
. usbconfig
: ugen1.4: <RTL8152...
kldstat
: 30 1 0xffffffff83f20000 8560 if_ure.ko
also the Ethernet cable is brand-new.
And final here is my firewall config:
Code:
cat /etc/pf.conf
# --- Options ---
# Allow traffic on the loopback interface (localhost)
set skip on lo0
# Define external network interface (replace with your actual external interface)
ext_if = "ue0" # Example: use your actual external interface like 'em0' or 'ue0'
# --- Translation (NAT) Rules ---
# NAT for OpenVPN interface (tun0)
nat on tun0 from <IP adress> to any -> (tun0)
# NAT for WireGuard interface (wg0)
nat on wg0 from <IP adresse> to any -> (wg0)
# --- Filtering Rules ---
# Block all traffic by default
block all
# Allow outgoing TCP traffic for services like browsing, email, etc.
pass out proto tcp to any port { 22, 25, 80, 110, 143, 443, 465, 587, 993, 995 } keep state
# Allow outgoing UDP traffic for DNS queries (port 53)
pass out proto udp to any port 53 keep state
# Allow incoming and outgoing traffic for qBittorrent P2P port (61202)
#pass in log proto { tcp, udp } from any to any port 61202 keep state
#pass out log proto { tcp, udp } to any port 61202 keep state
# Allow all outgoing TCP and UDP traffic for general purposes
pass out proto { tcp, udp } to any keep state
# Allow ICMP (ping) requests
pass proto icmp
# --- WireGuard VPN Filtering Rules ---
# Allow WireGuard UDP traffic on its port (51820 by default)
pass in proto udp from any to ($ext_if) port 51820 keep state
pass out proto udp from any to any port 51820 keep state
# --- OpenVPN VPN Filtering Rules ---
# Allow OpenVPN UDP traffic on its port (1194 by default)
pass in proto udp from any to ($ext_if) port 1194 keep state
pass out proto udp from any to any port 1194 keep state
# --- VPN Interface Rules ---
# Allow all traffic in and out on OpenVPN (tun0) and WireGuard (wg0) interfaces
pass in on tun0 all
pass out on tun0 all
pass in on wg0 all
pass out on wg0 all
# Allow outgoing traffic on the external interface
pass out on $ext_if keep state
Thanks for insight.