mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-15 16:37:03 +01:00
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
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user