1 2 |
firewall-cmd --zone=public --add-port=80 /tcp --permanent firewall-cmd --reload |
1 |
vim /etc/firewalld/services/snmp .xml |
1 2 3 4 5 6 |
<?xml version="1.0" encoding="utf-8"?> <service> <short>SNMP</short> <description>SNMP protocol</description> <port protocol="udp" port="161"/> </service> |
1 2 3 |
firewall-cmd --reload firewall-cmd --zone=public --add-service snmp --permanent firewall-cmd --reload |
1 2 |
firewall-cmd --add-service=cockpit firewall-cmd --add-service=cockpit --permanent |
1 2 3 |
firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -i vbr0 -j ACCEPT firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o vbr0 -j ACCEPT firewall-cmd --reload |
1 2 3 |
firewall-cmd --zone=public --permanent --add-service=http firewall-cmd --zone=public --permanent --add-service=https firewall-cmd --reload |
1 2 3 |
firewall-cmd --permanent --add-port=80/tcp firewall-cmd --permanent --add-port=443/tcp firewall-cmd --reload |