I saved my iptable settings on a Ubuntu 11.4 system usingiptables-save >filenameI then replaced the Ubuntu system with CentOS 6.5 and tried to restore iptables usingiptables-restore <filenameThis resulted iniptables-restore v1.4.7: Can't set policy 'INPUT' on 'ACCEPT' line 4: Bad bilt-in chain nameLine 4 is as follows.: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?
Bad built-in chain name with iptables-restore
ubuntu;iptables;centos
I didiptables-save >iptables.originalon my CentOS box and saw that the:INPUT ACCEPTline was not present in iptables.original. So I commented out the line from the file I saved on Ubuntu andiptables-restore <filenameno longer gave any error messages. I subsequently didiptables-restore --list-rulesand the rules look like the ones that I want.