Yadda za a kafa iptables don mayar atomatik a kan sake yi a CentOS Linux?

Bayan kafa da iptables dokoki duba su!
iptables -S

A wannan mataki da iptables dokoki da ya kamata a nuna.

 

Next iptables bukatar a shigar a matsayin mai hidima sa'an nan da iptables sabis bukatar a fara a sake yi. Sa'an nan dokoki bukatar ka sami ceto, sai su dage a kan sake yi

 

Change to tushen

ya

 

Shigar 'iptables-sabis’ kunshin

Yum kafa iptables-sabis

 

Enable iptables a matsayin tsarin da sabis

systemctl taimaka iptables

 

Enable iptables sabis don fara a kan tsarin farawa

systemctl fara iptables

 

Ajiye iptables dokoki

sabis iptables ajiye

 

Reboot the Centos Linux system and check that the iptables rules persist.

Leave a Reply