From a6c88ddfda2b0d4ad764c75ffb85d054445dd884 Mon Sep 17 00:00:00 2001 From: wid-get <129321765+wid-get@users.noreply.github.com> Date: Sat, 13 Dec 2025 13:17:51 +0300 Subject: [PATCH] fix: use After=network-online.target for iptables service (#1140) fixes not executing add-openvpn-rules.sh after OS reboot. systemctl shows service as _running_ but no iptables rules added to list. Also this fixes issue https://github.com/angristan/openvpn-install/issues/1127 --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 0321cee..8b25730 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1452,7 +1452,7 @@ ip6tables -D INPUT -i $NIC -p $PROTOCOL --dport $PORT -j ACCEPT" >>/etc/iptables # Handle the rules via a systemd script echo "[Unit] Description=iptables rules for OpenVPN -Before=network-online.target +After=network-online.target Wants=network-online.target [Service]