linux:firewalld_documentation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
linux:firewalld_documentation [2022/03/01 13:54] – created dodger | linux:firewalld_documentation [2023/08/28 10:03] – dodger | ||
---|---|---|---|
Line 60: | Line 60: | ||
'' | '' | ||
</ | </ | ||
+ | \\ | ||
+ | To switch between permanent or live: | ||
+ | <code bash> | ||
+ | export PERMANENT=" | ||
+ | </ | ||
===== View information ===== | ===== View information ===== | ||
Line 66: | Line 70: | ||
<code bash> | <code bash> | ||
firewall-cmd --list-all | firewall-cmd --list-all | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== list zones ==== | ||
+ | <code bash> | ||
+ | firewall-cmd --get-zones | ||
</ | </ | ||
Line 99: | Line 109: | ||
* non-permanent: | * non-permanent: | ||
<code bash> | <code bash> | ||
- | firewall-cmd | + | firewall-cmd |
- | </ | + | |
- | * permanent: | + | |
- | <code bash> | + | |
- | firewall-cmd --permanent | + | |
</ | </ | ||
Sample: | Sample: | ||
<code bash> | <code bash> | ||
- | acclr-psql-101 | + | ciberterminal.net |
success | success | ||
- | acclr-psql-101 | + | ciberterminal.net |
- | Warning: NOT_ENABLED: | + | Warning: NOT_ENABLED: |
success | success | ||
</ | </ | ||
Line 120: | Line 126: | ||
Remove ipv6: | Remove ipv6: | ||
<code bash> | <code bash> | ||
- | firewall-cmd | + | firewall-cmd |
</ | </ | ||
Line 126: | Line 132: | ||
Add snmp: | Add snmp: | ||
<code bash> | <code bash> | ||
- | firewall-cmd | + | firewall-cmd |
</ | </ | ||
+ | ====== Rich Rules ====== | ||
+ | ===== Open port for source range ===== | ||
<code bash> | <code bash> | ||
+ | firewall-cmd ${PERMANENT} --zone=public --add-rich-rule=' | ||
</ | </ | ||
+ | |||
+ | ====== Openvpn/ | ||
+ | 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 | ||
+ | |||
+ | </ |
linux/firewalld_documentation.txt · Last modified: 2023/08/28 10:34 by dodger