Skip to content

Instantly share code, notes, and snippets.

@TimoDJatomika
Created December 24, 2018 09:16
Show Gist options
  • Save TimoDJatomika/d34140c83c5c52a0e08a45d38056ddb3 to your computer and use it in GitHub Desktop.
Save TimoDJatomika/d34140c83c5c52a0e08a45d38056ddb3 to your computer and use it in GitHub Desktop.
Firewall startup script for systemd
# place the file @ /etc/systemd/system/firewall.service
# autostart the firewall with systemctl enable firewall
[Unit]
Description=Firewall
[Service]
Type=oneshot
ExecStart=/root/firewall.sh start
ExecStop=/root/firewall.sh stop
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment