Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-06-2005, 01:03 PM   #1
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
How can i flush iptables??

I want to restore iptables to state which is same as newly installed Linux contains.I added and then deleted a lot of rules and want to restore them to their default state.
Old 01-06-2005, 03:01 PM   #2
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
depends on the distribution. On RH based (I think)

service iptables restart
Old 01-06-2005, 03:08 PM   #3
LQ Newbie
Registered: Aug 2004
Location: Sofia, Bulgaria
Distribution: Slackware Current
Posts: 6

Rep: Reputation: 0
usually it is achived this way
iptables -F
iptables -P INPUT ALLOW
iptables -P OUTPUT ALLOW
But be warned ... this practically removes any filtering you may have and sets all policies to accept. No filtering no closed ports no Masq no nothing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ARP flush abneru SUSE / openSUSE 3 01-27-2012 01:57 PM
flush() before use... Elric of Grans Programming 1 07-12-2005 08:54 PM
How do I flush a C++ socket? pjz Programming 5 02-25-2005 11:55 AM
Full iptables rules flush question NetScripter Linux - General 7 09-17-2003 02:03 PM
C flush() question ...... purpleburple Programming 3 11-15-2002 10:27 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration