Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
systems:firewalld [2019/08/24 10:42] eServices Greece created |
systems:firewalld [2020/04/13 06:41] (current) eServices Greece |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{tag> | {{tag> | ||
====== Firewalld ====== | ====== Firewalld ====== | ||
+ | |||
+ | ===== Generic (Permanent) Port ===== | ||
+ | <sxh bash> | ||
+ | firewall-cmd --reload</ | ||
===== SNMPD ===== | ===== SNMPD ===== | ||
- | ==== Create Profile | + | === Create Profile === |
<sxh bash> | <sxh bash> | ||
vim / | vim / | ||
Line 17: | Line 21: | ||
</ | </ | ||
- | ==== Add Rule ==== | + | === Add Rule === |
- | < | + | < |
firewall-cmd --zone=public --add-service snmp --permanent | firewall-cmd --zone=public --add-service snmp --permanent | ||
firewall-cmd --reload</ | firewall-cmd --reload</ | ||
+ | |||
+ | ===== Cockpit ===== | ||
+ | <sxh bash> | ||
+ | firewall-cmd --add-service=cockpit --permanent</ | ||
+ | |||
+ | ===== Allow traffic through bridge ===== | ||
+ | < | ||
+ | firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o vbr0 -j ACCEPT | ||
+ | firewall-cmd --reload</ | ||
+ | |||
+ | ===== http/s ===== | ||
+ | === By Service name === | ||
+ | < | ||
+ | firewall-cmd --zone=public --permanent --add-service=https | ||
+ | firewall-cmd --reload</ | ||
+ | |||
+ | === By Port === | ||
+ | <sxh> | ||
+ | firewall-cmd --permanent --add-port=80/ | ||
+ | firewall-cmd --permanent --add-port=443/ | ||
+ | firewall-cmd --reload</ |