This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:iptables [2019/04/24 11:03] – tmade | linux:iptables [2019/04/24 11:07] – [Systemd] tmade | ||
---|---|---|---|
Line 49: | Line 49: | ||
==== Systemd ==== | ==== Systemd ==== | ||
- | Create a executable script | + | Create a executable script (e. g.: "chmod 750 / |
<code bash iptables.sh> | <code bash iptables.sh> | ||
Line 112: | Line 112: | ||
EOF | EOF | ||
</ | </ | ||
+ | |||
+ | Update: | ||
+ | |||
+ | systemctl daemon-reload | ||
+ | |||
+ | Usage: | ||
+ | |||
+ | systemctl start iptables.service | ||
+ | systemctl stop iptables.service | ||
+ | systemctl status iptables.service | ||
+ | systemctl is-enabled iptables.service | ||
+ | systemctl enable iptables.service | ||