LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 11-26-2012, 12:17 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 443

Rep: Reputation: 31
iptables, Error occurred at line 7


My box is scientific Linux 6.3 x64, and I am trying to test "the program for iptables and dyndns at http://www.geeklab.info/2011/02/ipta...d-dynamic-dns/ "


Code:
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:DYNAMIC
-A INPUT -j DYNAMIC
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
Code:
# service iptables restart
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules: iptables-restore v1.4.7: iptables-restore: line 7 policy invalid

Error occurred at line: 7
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
                                                           [FAILED]
The code of Line 7 is this.

Code:
:DYNAMIC
Any comment for this would be appreciated.

Thanks in advance.
 
Old 11-26-2012, 02:22 AM   #2
GeekLabInfo
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
The line
:DYNAMIC
should read
:DYNAMIC - [0:0]

Fixed it on geeklab.info as well. Thanks.

---------- Post added 11-26-12 at 09:23 AM ----------

*sigh* no smileys of course but colon-D
:DYNAMIC - [0:0]
 
1 members found this post helpful.
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] openstack dashboard login error "Error: An error occurred authenticating. Please try" tchofo Linux - Virtualization and Cloud 1 11-11-2012 02:08 PM
iptables will not start -error on line 18 blakman1313 Linux - Newbie 5 11-30-2010 09:11 PM
An error occurred <loading debian> a.dehqan Linux - Hardware 4 10-21-2008 01:22 AM
Error occurred while using netlink.. hyper9 Linux - Software 0 04-14-2008 03:31 PM
An error occurred during the Installation Pedy Suse/Novell 2 06-29-2006 02:39 AM


All times are GMT -5. The time now is 08:16 AM.

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