Re: IPTABLES syntax problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



O.K.
As adviced I have uploaded all rules from command
line. With no error. Thanks.
saved them as follows:
[root@allweb root]# iptables-save > iptables

No error. Thanks.

Now I want to add following error at begining of the
file from command prompt:

###########
IPTABLES -F INPUT
IPTABLES -F OUTPUT
IPTABLES -F FORWARD

IPTABLES -P INPUT DROP
IPTABLES -P OUTPUT DROP
IPTABLES -P FORWARD DROP
###########

Can I upload straight as done earlier and then give
command : 
 iptables-save > iptables

I am adding rules on live network. I don't want it to
stop and create any problems.

After saving all rules, what should be command for
rules to save permenantly so that when I reboot system
Rules should remain. 

I have tried to use iptables-save and iptables-restore
but could not use properly, Therefore asking in
detail.
Please guide me to do.
Thanks for support.


--- Cedric Blancher <blancher@xxxxxxxxxxxxxxxxxx>
wrote:
> Le mar 23/12/2003 à 14:56, ads nat a écrit :
> > Is it not allowed?
> 
> When a file is iptables-save generated, it's better
> not modifying it by
> hand. Update your running ruleset then issue an
> 
> 	iptables-save > iptables
> 
> -- 
> http://www.netexit.com/~sid/
> PGP KeyID: 157E98EE FingerPrint:
> FA62226DA9E72FA8AECAA240008B480E157E98EE
> >> Hi! I'm your friendly neighbourhood signature
> virus.
> >> Copy me to your signature file and help me
> spread! 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux