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’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly