How to Disable Firewall on Red Hat Enterprise Linux, Centos

Posted In Security - By Tum. On Friday, June 19th, 2009 With 0 Comments

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 เครื่องใหม่

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*