From owner-freebsd-questions@FreeBSD.ORG Fri Mar 28 17:08:44 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC2A737B401 for ; Fri, 28 Mar 2003 17:08:44 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B3CB443F93 for ; Fri, 28 Mar 2003 17:08:43 -0800 (PST) (envelope-from blueeskimo@gmx.net) Received: (qmail 1581 invoked by uid 65534); 29 Mar 2003 01:08:42 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [216.58.29.174]) (216.58.29.174) by mail.gmx.net (mp021-rz3) with SMTP; 29 Mar 2003 02:08:42 +0100 From: Adam To: freebsd-questions@freebsd.org In-Reply-To: <015f01c2f58c$55f8f200$c800000a@ibac> References: <015f01c2f58c$55f8f200$c800000a@ibac> Content-Type: text/plain; charset=ISO-8859-1 Organization: Message-Id: <1048900119.603.48.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 28 Mar 2003 20:08:40 -0500 Content-Transfer-Encoding: 8bit Subject: Re: About ADSL and Internet Sharing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2003 01:08:46 -0000 On Fri, 2003-03-28 at 19:44, Alfonso Romero wrote: > I followed all the indications in the handbook to share an ADSL modem with several PCs through a FreeBSD box, but canīt access www with the other PCs. I can ping www.yahoo.com from any PC, but thatīs all I can do. What could be the problem? More than likely your NAT is misconfigured. Here's how I have mine set up (ipnat): map tun0 192.168.56.0/24 -> 0/32 portmap tcp/udp 63000:65535 map tun0 192.168.56.0/24 -> 0/32 Basically what this says is: - All internal traffic will be routed between 63000-65535 - All outgoing connections from internal machines will be temporarily translated. Meaning, if 192.168.56.5:3456 (internal client) connects to 192.168.56.2:63001 (gateway), when the data comes back from the remote server to 63001, NAT remembers that this is actually intended for 192.168.56.5:3456, and routes accordingly .. I hope this makes sense to you .. -- Adam