I'm currently trying to set up a MySQL replication and I don't have a /etc/sysconfig/iptables. So I tried to install it with yum install. It showed the following output.  Installed PackagesName        : iptablesArch        : x86_64Version     : 1.4.7Release     : 11.el6Size        : 836 kRepo        : installedFrom repo   : anaconda-RedHatEnterpriseLinux-201311111358.x86_64Summary     : Tools for managing Linux kernel packet filtering capabilitiesURL         : http://www.netfilter.org/License     : GPLv2Description : The iptables utility controls the network packet filtering code in            : the Linux kernel. If you need to set up firewalls and/or IP            : masquerading, you should install this package.Available PackagesName        : iptablesArch        : i686Version     : 1.4.7Release     : 11.el6Size        : 247 kRepo        : rhel-x86_64-server-6Summary     : Tools for managing Linux kernel packet filtering capabilitiesLicense     : GPLv2Description : The iptables utility controls the network packet filtering code in            : the Linux kernel. If you need to set up firewalls and/or IP            : masquerading, you should install this package.So far so good but when I try to run iptables I get a Segmentation fault Do I need a better hardware? [root@wltwd1 sysconfig]# iptablesSegmentation fault (core dumped)This is my lscpu output:[root@wltwd1 sysconfig]# lscpuArchitecture:          x86_64CPU op-mode(s):        32-bit, 64-bitByte Order:            Little EndianCPU(s):                1On-line CPU(s) list:   0Thread(s) per core:    1Core(s) per socket:    1Socket(s):             1NUMA node(s):          1Vendor ID:             GenuineIntelCPU family:            6Model:                 47Stepping:              2CPU MHz:               1995.034BogoMIPS:              3990.06Hypervisor vendor:     VMwareVirtualization type:   fullL1d cache:             32KL1i cache:             32KL2 cache:              256KL3 cache:              18432KNUMA node0 CPU(s):     0
Segmentation fault (core dumped) when try to run iptables rhel6
rhel;mysql;segmentation fault;replication
Check what CPU architecture you have on your system. You're likely mixing the 32-bit and 64-bit binaries and libraries together which is probably giving you this error message.You can find out with this command:# 64-bit system$ getconf LONG_BIT64# 32-bit system$ getconf LONG_BIT32If you have 32 then you should uninstall the 64-bit package of iptables. If you have 64-bit, then uninstall the 32-bit.How to uninstall?On the surface it would appear that the packages have the same name but I assure you they're different. You can get their actual names using this command:$ rpm -aq iptables*iptables-services-1.4.18-1.fc19.x86_64iptables-1.4.18-1.fc19.x86_64iptables-1.4.18-1.fc19.i686So to get rid of the 32-bit version you can use this command:$ yum remove iptables-1.4.18-1.fc19.i686Obviously substitute your result in for the example above.References32-bit, 64-bit CPU op-mode on Linux