LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-04-2009, 08:56 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Rep: Reputation: 32
Question Iptables-restore not working


I am trying to restore my iptables with the following file:

http://www.tyler.mcadams.com/iptables.txt

When I try to restore I get: iptables-restore: line 1 failed

Any ideas?

Last edited by Thaidog; 03-04-2009 at 08:57 AM.
 
Old 03-04-2009, 10:22 AM   #2
ddaemonunics
Member
 
Registered: May 2008
Location: Romania
Distribution: Debian
Posts: 242

Rep: Reputation: 41
if that is the file..
[root@Fedora tylerm]# iptables-save
is the first line....and you should remove this line
 
Old 03-05-2009, 12:21 AM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by ddaemonunics View Post
if that is the file..
[root@Fedora tylerm]# iptables-save
is the first line....and you should remove this line
Oh whoops! Thanks!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables-restore not working with SELinux cdhgee Linux - Software 3 05-02-2008 12:01 PM
iptables-save, iptables-restore, how to set up them in some script sarajevo Linux - Networking 1 03-24-2008 11:39 PM
Restore iptables file RH AS 5 AQG Linux - Security 4 10-10-2007 01:49 PM
IPTables will not restore rules dieduster Linux - Security 2 12-22-2005 07:17 AM
restoring iptables-restore Zaius Linux - Newbie 7 01-22-2004 11:55 AM


All times are GMT -5. The time now is 08:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration