From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Eisner Subject: Re: SNAT does not work Date: Fri, 07 Jun 2002 12:50:44 +0200 Sender: netfilter-admin@lists.samba.org Message-ID: <3D009004.8070908@globit.com> References: <3CFF6327.5020306@globit.com> <200206061357.g56DvOA31162@vulcan.rissington.net> <3CFF7596.4090300@globit.com> <200206061455.g56EttA31457@vulcan.rissington.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------090100080408090006070401" Return-path: Errors-To: netfilter-admin@lists.samba.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Antony Stone Cc: netfilter@lists.samba.org --------------090100080408090006070401 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Antony.. thx for your information! Now it works fine! greatings Uwe Antony Stone schrieb: >On Thursday 06 June 2002 3:45 pm, Uwe Eisner wrote: > > > >>>Surely that means that your address translation *is* working ? >>> >>> >>But why is the external ip-address from the firewall showen at the www? >>I specifyed the IP-address 141.12.218.99 not 141.12.129.9 (ext. >>Router-IP-Address) >> >> > >Sorry - I did not realise from your original email that 141.12.218.99 was not >the external address of your firewall. > > > >>>I do not understand what you mean by this. Surely you do not mean that >>>if you remove the POSTROUTING rule, you can still connect to a remote web >>>server and have a Perl script tell you your source address ??? >>> >>> >>Yes, that is it! I removed every POSTROUTING rule, but I could still >>connect to the web. >> >> > >In that case you must have Network Address Translation in operation on your >external router ? If not, then there is no way that: > >a) privately-addressed machines 10.x.y.z, 172.16.s.t, 192.168.a.b could >contact external servers > >b) your router address would show up on an external machine. > > > >>Afterwards I typed the flash command 'iptables -F'. Now ALL rules should >>be removed, souldn't it? >> >> > >No. Not unless you also typed >iptables -F -t nat > >"iptables -F" on its own will *only* clear the filtering table, not the nat >table or the mangle table. > >Try iptables -L -t nat to see what rules you really have in place. > > > >>I started my configuration script with the new rule (see above), but >>nothing has changed. >> >>First I tought, that iptables -F does not delete the POSTROUTING rules, >> >> > >Correct :-) > > >Antony. > > --------------090100080408090006070401 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Antony..

thx for your information! Now it works fine!

greatings
Uwe



Antony Stone schrieb:
On Thursday 06 June 2002 3:45 pm, Uwe Eisner wrote:

  
Surely that means that your address translation *is* working ?
      
But why is the external ip-address from the firewall showen at the www?
I specifyed the IP-address 141.12.218.99 not 141.12.129.9 (ext.
Router-IP-Address)
    

Sorry - I did not realise from your original email that 141.12.218.99 was not 
the external address of your firewall.

  
I do not understand what you mean by this.   Surely you do not mean that
if you remove the POSTROUTING rule, you can still connect to a remote web
server and have a Perl script tell you your source address ???
      
Yes, that is it! I removed every POSTROUTING rule, but I could still
connect to the web.
    

In that case you must have Network Address Translation in operation on your 
external router ?   If not, then there is no way that:

a) privately-addressed machines 10.x.y.z, 172.16.s.t, 192.168.a.b could 
contact external servers

b) your router address would show up on an external machine.

  
Afterwards I typed the flash command 'iptables -F'. Now ALL rules should
be removed, souldn't it?
    

No.   Not unless you also typed
iptables -F -t nat

"iptables -F" on its own will *only* clear the filtering table, not the nat 
table or the mangle table.

Try iptables -L -t nat to see what rules you really have in place.

  
I started my configuration script with the new rule (see above), but
nothing has changed.

First I tought, that iptables -F does not delete the POSTROUTING rules,
    

Correct :-)


Antony.
  

--------------090100080408090006070401--