20.12.2024, 21:39
Esht e rendesishme te perdorim firewallD ne vend te iptables sepse ka me shum avantazhe. Gjithsesi iptables dhe Firewalld nuk funksionojne se bashku kshuqe duhet te zgjidhni njeren..
[size=1]Code:[/size]
Ndalojme funksionimin e iptables..
[size=1]Code:[/size]
![[Foto: Disable-Iptables-Service.png]](https://www.tecmint.com/wp-content/uploads/2015/01/Disable-Iptables-Service.png)
Shikojme zonat:
[size=1]Code:[/size]
![[Foto: Find-Available-Zones.png]](https://www.tecmint.com/wp-content/uploads/2015/01/Find-Available-Zones.png)
Marrim konfigurimet qe perdoren me se shumti nga te gjithe..
[size=1]Code:[/size]
![[Foto: Firewalld-Default-Zone.png]](https://www.tecmint.com/wp-content/uploads/2015/01/Firewalld-Default-Zone.png)
Shikojme te gjitha zonat:
[size=1]Code:[/size]
[size=1]Code:[/size]
Kodi:
yum install firewalld -y
Ndalojme funksionimin e iptables..
[size=1]Code:[/size]
Kodi:
# systemctl status iptables
# systemctl stop iptables
# systemctl mask iptables
![[Foto: Disable-Iptables-Service.png]](https://www.tecmint.com/wp-content/uploads/2015/01/Disable-Iptables-Service.png)
Shikojme zonat:
[size=1]Code:[/size]
Kodi:
# firewall-cmd --get-zones
![[Foto: Find-Available-Zones.png]](https://www.tecmint.com/wp-content/uploads/2015/01/Find-Available-Zones.png)
Marrim konfigurimet qe perdoren me se shumti nga te gjithe..
[size=1]Code:[/size]
Kodi:
# firewall-cmd --get-default-zone
![[Foto: Firewalld-Default-Zone.png]](https://www.tecmint.com/wp-content/uploads/2015/01/Firewalld-Default-Zone.png)
Shikojme te gjitha zonat:
[size=1]Code:[/size]
Kodi:
# firewall-cmd --list-all-zones