From: urgrue Subject: difference between MASQ and SNAT in iptables Date: Wed, 19 Jun 2002 15:07:35 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20020619120735.GA14869@fede2.tumsan.fi> Reply-To: urgrue@tumsan.fi Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii"; To: admin why is there the MASQUERADE target at all, if SNAT can do the same thing? it seems both of these rules have the same exact effect: iptables -t nat -A POSTROUTING -s 1.0.0.0/24 -o eth0 -j MASQUERADE iptables -t nat -A POSTROUTING -s 1.0.0.0/24 -o eth0 -j SNAT --to-source is there any difference?