From owner-freebsd-questions Sun Dec 10 19:12:26 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 10 19:12:21 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from www.newsindex.com (www.newsindex.com [64.71.138.178]) by hub.freebsd.org (Postfix) with ESMTP id D318C37B401 for ; Sun, 10 Dec 2000 19:12:20 -0800 (PST) Received: from localhost (speck@localhost) by www.newsindex.com (8.9.3/8.9.3) with ESMTP id TAA15357; Sun, 10 Dec 2000 19:12:08 -0800 (PST) (envelope-from speck@www.newsindex.com) Date: Sun, 10 Dec 2000 19:12:08 -0800 (PST) From: Sean Peck To: David Raistrick Cc: Chris Hill , freebsd-questions@FreeBSD.ORG Subject: Re: Configuring Gateway/NAT on Freebsd In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: speck@www.newsindex.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here is the layout in detail: I have a Public addresses and a DSL conneciton, the DSL line comes into my house, which I then place into a HUB. This hub is where all my machines are attached. I have one machine, that has 1 NIC card, this card is configured with the ifconfig commands to be listening to both 1 public IP address, and to 172.16.0.1 The configuration for the public IP is to forward requests to the ISP routers up stream, with appropriate netmask etc. THe 172 entry is simply an alias to 172.16.0.1 The machine is configured as a gateway, it has Natd turned on, etc. However I cannot get an answer to 172.16.0.1 when I attempt, even from this box itself, even though the ifconfig alias command executes without problem. I have configured tun0 to be 172.16.0.1 to public IP (or at least I believe I have) (excerps from rc.conf) ifconfig_tun0="inet 172.16.0.1 64.2.61.236 netmask 255.255.255.0" natd_enabled="YES" natd_interface="tun0" gateway_enabled="YES" network_interfaces="xl0 tun0 lo0" I have no problem putting a second NIC into the box, if that is what it takes... I am configuring my 172.16.x.x boxes to have 172.16.0.1 as their defaultrout... which if I understand it should be picked up by this box, who will then through tun0, tunnel it to the public IP and then forward it out to the world? I know I am missing something... the FreeBSD manual is great book, but in this area, it is pretty weak... Sean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message