From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rob Sterenborg" Subject: RE: Did MASQUERADE not work ? Date: Wed, 10 Mar 2004 08:52:50 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20040310075251.C9D5EF45@sterenborg.info> References: <00c001c40644$19931970$6cfaa8c0@Defiant> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <00c001c40644$19931970$6cfaa8c0@Defiant> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: 'Kevork' , netfilter@lists.netfilter.org > Iptables script is the same as when it worked. > MASQ line is: > iptables -t nat -A POSTROUTING -s 192.168.250.0/24 -d > $internet -j MASQUERADE What is "-d $internet" ? If $internet is 0.0.0.0 (as it should be) then you don't need to specify it as this is assumed. Did you try SNAT : iptables -t nat -A POSTROUTING -o \ -s 192.168.250.0/24 -j SNAT --to-source Do you have a FORWARD rule in place that allows MASQ/SNAT, or do you have FORWARD policy set to ACCEPT (which you should not do) ? Do you have "echo 1 > /proc/sys/net/ipv4/ip_forward" ? Gr, Rob