diff --git a/firewall.service b/firewall.service new file mode 100644 index 0000000..58e9c22 --- /dev/null +++ b/firewall.service @@ -0,0 +1,13 @@ +[Unit] +Description=iptables firewall service +After=network.target + +[Service] +Type=oneshot +ExecStart=bash /opt/firewall/firewall2.sh start +ExecStop=bash /opt/firewall/firewall2.sh stop +RemainAfterExit=true +StandardOutput=journal + +[Install] +WantedBy=multi-user.target