From: Patrick Leslie Polzer Subject: Re: router/firewall Date: Fri, 2 Jul 2004 12:50:46 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20040702125046.222b4c0f.leslie.polzer@gmx.net> References: <200407020952.41515.Antony@Soft-Solutions.co.uk> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: netfilter@lists.netfilter.org Hello Askar, On Fri, 2 Jul 2004 15:26:56 +0500 Askar Ali Khan wrote: > Ofcourse your contribution to this mailing list is greattt, no one but > your there with solution to lot of ours problem :) > heh i don't wana make your fly with all this sorta praises ;) > /anthony blueshes > ;) Well, so I'm going to help out a bit now, too ;) > its a very simple LAN :) what i want to do is instead of traffic for > Internet goes from C------->A, A--------->C > its travel from C----->B------->A, A---->B----->C > that only C uses the linux box as router/firewall, all the traffic > from C first travel to B and then to A . :) 1) On C, set your default gateway to B's IP. 2) Turn on IP forwarding on B (IIRC it's /proc/sys/net/ip_forwarding) 3) See that B is accepting FORWARDing from C to A and back. Only 3) is Netfilter stuff. A small note: please quote only relevant parts next time; thanks. Kind regards, Leslie