From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wim Ceulemans Subject: Re: Routing decision? Date: Mon, 15 Sep 2003 14:53:18 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3F65B63E.7030203@able.be> References: <3F657D37.1010000@able.be> <1063616905.31092.78.camel@raylinux.internal> <3F65981D.1060700@able.be> <1063628083.31092.82.camel@raylinux.internal> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1063630397-25283-74" Return-path: In-Reply-To: <1063628083.31092.82.camel@raylinux.internal> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Ray Leach Cc: Netfilter Mailing List , pieter@able.be This is a multi-part message in MIME format... ------------=_1063630397-25283-74 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Ray Do you mean that if I masquerade all my packets behind the firewall, that they are considered as locally generated because due to the masquerading their source IP is changed? This would mean that these packets would travel through the FORWARD chain and then through the OUTPUT chain. And then the 'Kernel packet travelling diagram' would be completely wrong, because packets come only in the OUTPUT chain if they originate from a local process. Regards Wim Ray Leach wrote: >On Mon, 2003-09-15 at 12:44, Wim Ceulemans wrote: > > >>Hi Ray >> >>In my opinion 'locally generated packets' can only be generated by a >>local process. >>So in the diagram where it says 'local process', that's where the >>'locally generated packets' start >>their way through the kernel. Where's the difference? >> >> >> >What about packets that get SNATed? >Where are they generated? > > > >>Regards >>Wim >> >>Ray Leach wrote: >> >> >> >>>On Mon, 2003-09-15 at 10:49, Wim Ceulemans wrote: >>> >>> >>> >>> >>>>Hi >>>> >>>>In paragraph 6.2 of the iptables-tutorial the following is said: >>>>"The OUTPUT chain is used for altering locally generated packets (i.e., >>>>on the firewall) before they get to the routing decision. >>>> >>>>But in paragraph 3.1, the "Traversing of tables and chains" diagram, we >>>>see the "Routing decision" is listed after the "Local process" and >>>>BEFORE! the packet goes to the output chain. >>>> >>>>So which one is right? Does the routing decision take place after or >>>>before the packet travels through the output chain? >>>> >>>> >>>> >>>> >>>Are you not getting confused with 'locally generated' and 'local >>>process'. They are not the same thing. >>> >>> >>> >>> >>> >>>>Regards >>>> >>>> >>>> >>>> -- Wim Ceulemans R&D Engineer Secure Internet Communication with aXs Guard Able NV Leuvensesteenweg 282 - B-3190 Boortmeerbeek - Belgium Phone: + 32 15 50.44.00 - Fax: + 32 15 50.44.09 E-mail: wim.ceulemans@able.be -- Security check on this e-mail has been done by aXs GUARD (http://www.axsguard.com) ------------=_1063630397-25283-74--