Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:iptables [2019/04/24 11:03] tmadelinux:iptables [2019/04/24 11:07] – [Systemd] tmade
Line 49: Line 49:
  
 ==== Systemd ==== ==== Systemd ====
-Create a executable script with rules (e. g.: "chmod 750 /sbin/iptables.sh"):+Create a executable script (e. g.: "chmod 750 /sbin/iptables.sh"with following content:
  
 <code bash iptables.sh> <code bash iptables.sh>
Line 112: Line 112:
 EOF EOF
 </code> </code>
 +
 +Update:
 +
 +  systemctl daemon-reload
 +
 +Usage:
 +
 +  systemctl start iptables.service
 +  systemctl stop iptables.service
 +  systemctl status iptables.service
 +  systemctl is-enabled iptables.service      #check, if active on system boot
 +  systemctl enable iptables.service          #enable to start with system
  
  
linux/iptables.txt · Last modified: 2019/04/24 11:08 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki