מעבר מ firewallD ל iptables במערכת ההפעלה CentOS 7

  • פורסם:
  • 1 דקות

להלן אנו נספק לך רשימה של פקודות להמיר שרת CentOS 7 שלך משימוש ב- FirewallD ל - iptables. משתמשים רבים יודעים ומעדיפים פקודות iptables מפני FirewallD, וכפי שהם מבוססים על אותה מערכת backend אין ביניהם הרבה הבדל בביצועים.

sudo yum install iptables-services -y
sudo systemctl stop firewalld && sudo systemctl start iptables && sudo systemctl start ip6tables
sudo systemctl disable firewalld
sudo systemctl mask firewalld
sudo systemctl enable iptables
sudo systemctl enable ip6tables

 

*שים לב פעולה זאת עלולה לנעול אותך מחוץ לשרת ללא גישה. המשתמש בפקודות האלה בזהירו ובאחריות.