Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-21-2005, 06:53 AM   #1
LQ Newbie
Registered: Dec 2005
Distribution: Mandriva, Fedora Core
Posts: 7

Rep: Reputation: 0
IPTables will not restore rules


I'm not new to linux but this one has be baffled.

I installed a new Firewall on Fedora Core4, my routing and stuff works fine and iptables starts fine, but when save my settings and rules in iptables it comes back and shouts about:

Flushing Firewall rules: [OK]
Setting chains to policy ACCEPT: nat mangle filter [OK]
Unloading iptables modules: [OK]
ERROR occured at line: 19
Try 'iptables-restore -h or 'iptables-restore --help' for more info [FAILED]

I have no idea in what file he is refering to line19?

but I cant restore my rules.

Does anyone know about a nice IPTables front-end? I just need to spice-up my Firewall.

Last edited by dieduster; 12-21-2005 at 06:55 AM.
Old 12-21-2005, 04:35 PM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
You likely have some kind of syntax error in the file you're trying to restore from (unless you changed the startup script it should be /etc/sysconfig/iptables). Did you happen to edit that file at all, in particular line 19? iptables-restore is highly sensitive to syntax, so technically you should never directly edit it, but rather load all your rules into iptables and then use iptables-save > file_to_restore . Post the contents of the file you're trying to restore from and hopefully we can find the error.

Firestarter and Guarddog are 2 GUI frontends for iptables that many people seem to like.

Last edited by Capt_Caveman; 12-21-2005 at 04:38 PM.
Old 12-22-2005, 07:17 AM   #3
LQ Newbie
Registered: Dec 2005
Distribution: Mandriva, Fedora Core
Posts: 7

Original Poster
Rep: Reputation: 0


thanks I'll try that, no I haven't editted any IPTables file, I used webmin to see what the IPTables front-end was like and webmin screwd around with the file, mind you that was the last time that webmin was ever used om my servers. but thanks i'll try looking in that file to see what is wrong on line 19...


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
Iptables Rules metallica1973 Linux - Security 26 09-14-2005 12:10 AM
IPTABLES - rules in /etc/sysconfig/iptables The_JinJ Linux - Newbie 6 11-20-2004 01:40 AM
iptables rules Hegemon Linux - Networking 0 01-28-2004 02:20 AM
iptables rules Darin Linux - Security 1 01-23-2003 04:32 PM
iptables rules hazza96 Linux - Security 3 09-09-2001 11:16 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:54 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