From mboxrd@z Thu Jan 1 00:00:00 1970 From: ads nat Subject: Re: IPTABLES syntax problem. Date: Tue, 23 Dec 2003 08:26:06 -0800 (PST) Sender: netfilter-admin@lists.netfilter.org Message-ID: <20031223162606.71232.qmail@web60405.mail.yahoo.com> References: <1072191475.816.129.camel@elendil.intranet.cartel-securite.net> Mime-Version: 1.0 Return-path: In-Reply-To: <1072191475.816.129.camel@elendil.intranet.cartel-securite.net> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Cedric Blancher Cc: Chris Brenton , netfilter@lists.netfilter.org 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 :=20 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.=20 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 wrote: > Le mar 23/12/2003 =E0 14:56, ads nat a =E9crit : > > Is it not allowed? >=20 > When a file is iptables-save generated, it's better > not modifying it by > hand. Update your running ruleset then issue an >=20 > iptables-save > iptables >=20 > --=20 > 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!=20 __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree