Firewalld Flashcards Preview

RHCE > Firewalld > Flashcards

Flashcards in Firewalld Deck (2):
1

Port forwarding
Log http connection

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

Packet filtering and zones

firewall-cmd --zone=work --add-source=172.31.106.112 --permanent
firewall-cmd --permanent --zone=work --add-service=http