From owner-freebsd-net@FreeBSD.ORG Sun Nov 14 22:14:50 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C12516A4CE for ; Sun, 14 Nov 2004 22:14:50 +0000 (GMT) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA8B043D48 for ; Sun, 14 Nov 2004 22:14:48 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-68-123-122-146.dsl.snfc21.pacbell.net [68.123.122.146])iAEMEUha259984; Sun, 14 Nov 2004 17:14:35 -0500 Message-ID: <4197D8C5.5050601@elischer.org> Date: Sun, 14 Nov 2004 14:14:29 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: "Jacob S. Barrett" References: <200411141311.49502.jbarrett@amduat.net> In-Reply-To: <200411141311.49502.jbarrett@amduat.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: Universal Client Gateway X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 22:14:50 -0000 Jacob S. Barrett wrote: > I am trying to make what some call a universal client gateway. Finding > anything via google on the subject is turning up nothing. Basically I want > setup a gateway that will masquerade IP from any host reguardless of its IP > configuration. For example if a host is configured with IP 192.168.2.2 and a > gateway of 192.168.2.1 my gateway would reply to ARP requests for > 192.168.2.1. When the host forwards its IP traffic to me I would masquerade > the packet with my IP and forward it. When the reply comes back my gateway > would de-masquerade the packet and forward it back the host. I have it all > working except for the return forwarding. > [...] > > So does anyone understand what I am trying to do? Do you know how to do it? > Am I going about this all wrong? > sounds like you just want to run natd.