LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-28-2014, 10:24 PM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
Bad built-in chain name with iptables-restore


I saved my iptable settings on a Ubuntu 11.4 system using

Code:
iptables-save >filename
I then replaced the Ubuntu system with CentOS 6.5 and tried to restore iptables using

Code:
iptables-restore <filename
This resulted in

Code:
iptables-restore v1.4.7: Can't set policy 'INPUT' on 'ACCEPT' line 4: Bad bilt-in chain name
Line 4 is as follows.

Code:
:INPUT ACCEPT [199972:10416012]
In the past I have been able to restore iptables fron Ubuntu systems onto Debian systems but Debian is more closely related to Ubuntu than is CentOS. With CentOS, would I just need to add the rules manually?
 
Old 03-29-2014, 09:18 AM   #2
furface
Member
 
Registered: Dec 2009
Posts: 40

Rep: Reputation: 1
Have you looked at this down at the bottom?

https://bbs.archlinux.org/viewtopic.php?id=125126
 
1 members found this post helpful.
Old 03-29-2014, 12:11 PM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by furface View Post
Have you looked at this down at the bottom?

https://bbs.archlinux.org/viewtopic.php?id=125126
Thank you very much for your reply. I think it worked. I was initially a bit uncomfortable about simply commenting out line 4 but I did

Code:
iptables-save >iptables.original
on my CentOS box and saw that the

Code:
:INPUT ACCEPT
line was not present in iptables.original. So I commented out the line from the file I saved on Ubuntu and

Code:
iptables-restore <filename
no longer gave any error messages. I subsequently did

Code:
iptables-restore --list-rules
and the rules look like the ones that I want.

Thanks again,
OH
 
  


Reply

Tags
centos6, iptables, ubuntu 11.04



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-restore +script error: bad argument COMMIT xorl Linux - Server 5 04-14-2016 03:51 PM
On what basis CHAIN integer values are generated in IPtables under iptables file? haariseshu Linux - Server 3 11-05-2009 04:25 AM
[SOLVED] Rather huge IPtables chain, iptables: Memory allocation problem. Gangrif Linux - Networking 10 09-11-2009 03:30 PM
iptables good packet chain (instead of bad packet chain) win32sux Linux - Security 6 11-06-2008 06:02 AM
Bad Packet Chain (iptables) Feedback / Suggestions win32sux Linux - Security 1 09-17-2005 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration