Created
December 24, 2018 09:16
-
-
Save TimoDJatomika/d34140c83c5c52a0e08a45d38056ddb3 to your computer and use it in GitHub Desktop.
Firewall startup script for systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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