User Tools

Site Tools


linux:firewalld_documentation

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:firewalld_documentation [2022/03/01 14:00] – [Basic Rules] dodgerlinux:firewalld_documentation [2023/08/28 10:03] dodger
Line 53: Line 53:
  
 <WRAP center round alert 60%> <WRAP center round alert 60%>
-TO make the changes permanent, you must add ''${PERMANENT}'' to firewall-cmd executions!!!+TO make the changes permanent, you must add ''--permanent'' to firewall-cmd executions!!!
 </WRAP> </WRAP>
  
Line 60: Line 60:
 ''--permanent'' does not apply rules on LIVE system!!! ''--permanent'' does not apply rules on LIVE system!!!
 </WRAP> </WRAP>
 +\\ 
 +To switch between permanent or live: 
 +<code bash> 
 +export PERMANENT="--permanent" 
 +</code>
 ===== View information ===== ===== View information =====
  
Line 66: Line 70:
 <code bash> <code bash>
 firewall-cmd --list-all firewall-cmd --list-all
 +</code>
 +
 +
 +==== list zones ====
 +<code bash>
 +firewall-cmd --get-zones
 </code> </code>
  
Line 136: Line 146:
  
  
 +
 +====== Openvpn/Wireguard setup ======
 +As a client:
 +
 +<code bash>
 +firewall-cmd ${PERMANENT} --zone=internal --add-interface=tun+
 +firewall-cmd ${PERMANENT} --zone=internal --add-interface=wg+
 +firewall-cmd ${PERMANENT} --zone=internal --add-interface=ppp+
 +
 +firewall-cmd ${PERMANENT} --list-all --zone=internal
 +
 +</code>
linux/firewalld_documentation.txt · Last modified: 2023/08/28 10:34 by dodger