วิธีลบ iptables rules ออกทั้งหมด

mrgill   | January 28, 2011   |   350 Views

สืบเนื่องจากที่ผมเขียนเรื่อง NAT ในวันก่อนวันนี้ก็เลยเอาเรื่องการ Flush rules ของ iptables มาฝากครับ

ตามนี้เลย

iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT

จะรันทีละบรรทัด หรือจะเอาไปทำเป็น Script ก็ได้ครับ

แหล่งข้อมูล : http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html

Comments

Category : Daily command,How to,Linux,Network,Security

Tags: flush, iptables, rules

Related Posts

Factory Reset บน Fortigate 100A ทำไง หนูนุ้ย ชิมิ

Leave a Comment

(required)

(required), (Hidden)

 

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

TrackBack URL  |  RSS feed for comments on this post.


Chat

Recent Entries

Random Posts

Social Network

Tag Cloud

Calendar

January 2011
S M T W T F S
« Nov   Feb »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Twitter: imrgill

RSS LinuxToday

RSS HowToForge

RSS UbuntuClub

RSS Blognone

RSS PowerWindowsBlog

Tag

Categories

Archives

Blogroll

Meta

Get Adobe Flash player