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

Notices


Reply
  Search this Thread
Old 01-06-2005, 12:03 PM   #1
cranium2004
Member
 
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, 02:01 PM   #2
eantoranz
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)

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

Rep: Reputation: 0
usually it is achived this way
Code:
iptables -F
iptables -P INPUT ALLOW
iptables -P OUTPUT ALLOW
iptables -P FORWARD 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
 
  


Reply


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 12:57 PM
flush() before use... Elric of Grans Programming 1 07-12-2005 07:54 PM
How do I flush a C++ socket? pjz Programming 5 02-25-2005 10:55 AM
Full iptables rules flush question NetScripter Linux - General 7 09-17-2003 01:03 PM
C flush() question ...... purpleburple Programming 3 11-15-2002 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:53 AM.

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