...
Firewalld | https://www.youtube.com/watch?v=T2g6nxRCnLQ&ab_channel=NetSecProf | |
---|---|---|
firewall-cmd --list-all | ||
Services | ||
showlist all services available | firewall-cmd --get-services | |
sadd service | add permanent serviceadd service to a zone | firewall-cmd --add-service-https ( will add to the default zone= public or "untrusted") |
add permanent service | firewall-cmd --add-service-https --permanent | |
create service | ||
Ports | ||
add port | firewall-cmd --get-ports | |
add permanent port | ||
Zones | ||
show zones | firewall-cmd --get-zones | |
add zones | ||
create zone | ||
NAT or masquarade | ||