How to Disable Firewall on Red Hat Enterprise Linux, Centos

Firewall ของ Red Hat Enterprise จะใช้ iptables ซึ่งก็เหมือนๆกับ Linux ค่ายอื่นๆ ไม่ว่าจะเป็น Centos, Debian, Suse, หรือ Ubuntu ต่างก็ใช้ iptables ด้วยกันทั้งนั้น

การปิดหรือเปิด firewall ใน Red Hat Enterprise Linux สามารถทำได้โดยใช้คำสั่ง System V init script หรือจะใช้ administration tool ก็ได้

การเปิดหรือปิดการใช้งาน Firewall ใน Red Hat Linux

1. ใช้ administration tool ใน Red Hat จะมีคำสั่งในการเปิดและปิดการใช้งาน firewall โดยผ่านทาง GUI และ TUI โดยในคำสั่งนี้จะรวมไปถึงการเปิดและปิดการใช้งาน SeLinux เข้าไปด้วย การรันคำสั่งสามารถทำได้ดังนี้

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

2. การใช้คำสั่ง System V init script ซึ่งจะมีผลทันทีที่รันคำสั่ง

# service iptables start // เปิดให้ iptables ทำงาน
# service iptables stop // ปิดการใช้งาน iptables

3. การใช้คำสั่งในการ update runlevel ใน system service จะมีผลหลังจากการเปลี่ยน runlevel หรือ boot เครื่องใหม่

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

Related posts:

  1. วิธีดู Version ของ Red Hat Enterprise Linux, Centos Linux วิธีการดู Version ของ Red Hat Enterprise Linux, Centos...
  2. What is a Red Hat Enterprise Linux Installation Number and where do I get it? Resolution: The Red Hat Enterprise Linux 5 Installation...
  3. Red Hat launches Red Hat Enterprise Linux 5 update 5 (RHEL5.5) เมื่อวันพุธที่ผ่านมา Red Hat ได้ออก update 5 ซึ่งเป็น Update...
  4. RPM repository of RPM add-on packages for Red Hat Enterprise Linux and CentOS รวบรวม RPM repository ที่มีประโยชน์ต่อคนที่ต้องการ RPM package ที่ไม่มีในแผ่นหรือใน base...
  5. Red Hat Enterprise Linux 6 released Red Hat Enterprise Linux 6 หรือ RHEL 6...

You can leave a response, or trackback from your own site.

Leave a Reply