CentOS 7, what happened to DNAT? <p>I am doing some firewall work on CentOS 7. My end goal is to essentially make the server's internal ip address is the same as the floating ip address assigned to it. I disabled firewalld and installed iptables-services.</p> <p>/etc/redhat-release</p> <pre><code>CentOS Linux release 7.2.1511 (Core) </code></pre> <p>iptables v1.4.21</p> <p>When running this script I get </p> <blockquote> <p>iptables v1.4.21: unknown option "SNAT" as well as unknown option "DNAT"</p> </blockquote> <p>My script is </p> <pre><code>#!/bin/bash PRIVIP="107.170.40.128" # e.g., assuming this is the private IP address FLOATIP="104.196.55.167" # e.g. assuming this is the floating IP address echo "iptables" echo "/sbin/iptables -t nat -A PREROUTING -d ${PRIVIP}/32 -j DNAT -–to-destination ${FLOATIP}" /sbin/iptables -t nat -A PREROUTING -d ${PRIVIP}/32 -j DNAT -–to-destination ${FLOATIP} echo "/sbin/iptables -t nat -A POSTROUTING -s ${FLOATIP}/32 -j SNAT -–to-source ${PRIVIP}" /sbin/iptables -t nat -A POSTROUTING -s ${FLOATIP}/32 -j SNAT -–to-source ${PRIVIP} echo "arp" /sbin/arp -i eth0 -Ds ${PRIVIP} eth0 netmask 255.255.255.255 pub /sbin/arp -an echo "sleep" sleep 10 systemctl restart network </code></pre> <p>What happened to the DNAT and SNAT options that are in Centos 6? </p>