તમારા CentOS 9 સર્વરને FirewallD રૂપરેખાંકન અને શ્રેષ્ઠ પ્રથાઓ સાથે સુરક્ષિત કરો.
FirewallD ને અમલમાં મૂકીને તમારા CentOS9સર્વરને સુરક્ષિત કરો. આ માર્ગદર્શિકા તમારી VPS ને સુરક્ષિત કરવા માટે જરૂરી સુરક્ષા પગલાંઓને આવરી લે છે.
FirewallD એ RHEL-આધારિત સિસ્ટમો માટે મૂળભૂત ફાયરવોલ વ્યવસ્થાપન સાધન છે, D-Bus ઇન્ટરફેસ સાથે ગતિશીલ ફાયરવોલ વ્યવસ્થાપન પૂરુ પાડે છે.
sudo dnf install firewalld -y
મૂળભૂત ફાયરવોલ નિયમો સુયોજિત કરો:
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo systemctl start firewalld
sudo systemctl enable firewalld
sudo firewall-cmd --state
sudo firewall-cmd --list-all
તમારું CentOS સર્વર હવે FirewallD સાથે સુરક્ષિત છે. નિયમિત સુરક્ષા ઓડિટની ભલામણ કરવામાં આવે છે.