Security

How to Disable Firewall on Red Hat Enterprise Linux, Centos

Red Hat Enterprise’s firewall uses iptables, like other Linux distributions such as CentOS, Debian, SUSE, and Ubuntu. To enable or disable the firewall in Red Hat Enterprise Linux, use a System V init script or an administration tool. Enabling or disabling the firewall in Red Hat Linux

  1. Use an administration tool. Red Hat provides commands for enabling and disabling the firewall through a GUI or TUI. These tools also include options for enabling or disabling SELinux. Run:

system-config-securitylevel //สำหรับโหมด GUI

system-config-securitylevel-tui //สำหรับโหมด TUI

  1. Use a System V init script. This takes effect immediately when the command runs.

service iptables start // เปิดให้ iptables ทำงาน

service iptables stop // ปิดการใช้งาน iptables

  1. Update the system service runlevels. This takes effect after changing runlevels or rebooting.

chkconfig iptables on // เปิดให้ iptables ทำงาน เมื่อ boot เครื่องใหม่

chkconfig iptables off // ปิดการใช้งาน iptables เมื่อ boot เครื่องใหม่

EOF.← Back to articles