Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



deleting rules on chains

Adeyinka
10-10-2003, 06:21 PM
Hi,

I would appreciate a response concerning this problem on my firewall machine

I found out that some rules are already set on chains
I flushed the chains, set my new rules and reboot the machine.

typing iptables -L brought out the rules and userdefined chains I had already deleted.
I have to cat /etc/sysconfig/iptables|iptable-restore before I can get my set rules.

If I type iptables -L
I will get my set rules, rebooting the m/c and typing
iptables -L
brings up the flushed rules again.
I just noticed that if I do not reboot, I have my rules. But if do I have the old rules
If i "cat /etc/sysconfig/iptables|iptable-restore
I have my new rules
However, if i type
iptables -L
without "cat /etc/sysconfig/iptables|iptable-restore
I will end up with the old rule
unless I firsts cat /etc/sysconfig/iptables|iptable-restore
I would not be getting my new rules

I feel this can bring up problem !

Do I need to do re installation?
or what are your sugg.

:cool: :grinthumb

MattG
10-12-2003, 01:09 AM
You can flush the chains, and delete all rules by using

iptables -F

if you just wanna delete INPUT chain, use iptables -F INPUT
or

iptables -F FORWARD

etc..

That will get rid of all rules under that chain.

Ad
10-12-2003, 01:09 AM
  

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Weekend tech reading: How to run Chrome OS as a virtual machine

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

More Tech News

  
 Software Downloads

WinDVD 10.05 Pro 2010 (formerly WinDVD Platinum)

Opera 10.10 for Windows

Mp3tag 2.45

FinalBurner 2.15

Google Chrome 4.0.249.00 Beta

Magic DVD Creator 11.0.10.189

Dynamic Notes 3.44

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.