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
linux:iptables [2019/04/24 11:01] – [Set/ Save IP-Tables] tmadelinux:iptables [2019/04/24 11:08] (current) – [Systemd] tmade
Line 8: Line 8:
 https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html
  
- +==== SLES ====
-==== Set/ Save IP-Tables ==== +
- +
-=== SLES ===+
  
 1. Step: IP-Tables will be set: 1. Step: IP-Tables will be set:
Line 51: Line 48:
   iptables -t nat -L -vn    iptables -t nat -L -vn 
  
-=== 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>+<code bash iptables.sh>
 #!/bin/bash #!/bin/bash
 # Configure iptables # Configure iptables
Line 115: Line 112:
 EOF EOF
 </code> </code>
 +
 +Update systemd:
 +
 +  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