Firewalld Flashcards
1
Q
Port forwarding
Log http connection
A
man firewalld.richlanguage
Example 5
firewall-cmd –permanent –add-rich-rule=’rule family=ipv4 source address=172.31.22.143 forward-port port=443 protocol=tcp to-port=22’
Example 3
firewall-cmd –permanent –add-rich-rule=’rule family=ipv4 source address=172.31.22.143 service name=http log level=notice prefix=”New HTTP Rule: “ accept’
2
Q
Packet filtering and zones
A
firewall-cmd –zone=work –add-source=172.31.106.112 –permanent
firewall-cmd –permanent –zone=work –add-service=http