From owner-freebsd-questions@FreeBSD.ORG Wed Jul 21 18:11:45 2004 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 8B93916A4CE for ; Wed, 21 Jul 2004 18:11:45 +0000 (GMT) Received: from ns2.brasilsat.com.br (ns2.brasilsat.com.br [200.250.169.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9048A43D31 for ; Wed, 21 Jul 2004 18:11:41 +0000 (GMT) (envelope-from cra@kftec.com.br) Received: from kftec.com.br ([192.168.2.200])i6LJJKFL003731 for ; Wed, 21 Jul 2004 16:19:59 -0300 Received: from 33KFPGS/SpoolDir by kftec.com.br (Mercury 1.47); 21 Jul 04 17:14:33 -0300 Received: from SpoolDir by 33KFPGS (Mercury 1.47); 21 Jul 04 17:13:44 -0300 Received: from kftec.com.br (192.168.10.200) by kftec.com.br (Mercury 1.47) with ESMTP; 21 Jul 04 17:10:15 -0300 Message-ID: <40FEB135.2C50D36D@kftec.com.br> Date: Wed, 21 Jul 2004 15:08:53 -0300 From: Cleyton Agapito X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: pt-BR,en MIME-Version: 1.0 Cc: freebsd-questions@freebsd.org References: Content-Type: multipart/mixed; boundary="------------385EEC7D090B49937AB72A6E" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: NAT trouble 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: Wed, 21 Jul 2004 18:11:45 -0000 This is a multi-part message in MIME format. --------------385EEC7D090B49937AB72A6E Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi friends, I using nat in my home dial connection. The route is fine but my machine is responding that the network is unrecheable for names, and if I put the DNS adresses in resolv.conf it works. I did some like that a time ago in a linux suite (that is getting the same problem after a upgrade), what I missing? Thanks Björn Lindström wrote: > I'm having some trouble to get NAT working on the Internet gateway of my > home LAN. > > Here's my setup: > > I have compiled a kernel with the following options added: > > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT=10 > options IPDIVERT > > I have these relevant settings in my rc.conf: > > gateway_enable="YES" > firewall_enable="YES" > firewall_type="OPEN" > natd_enable="YES" > natd_interface="tun0" > natd_flags="-f /etc/natd.conf" > > (Where tun0 is the interface of my ADSL connection.) > > My natd.conf only contains this line: > > redirect_port tcp 192.168.0.2:15000 15000 > > Now, when I reboot, ipfw show shows this: > > 00050 0 0 divert 8668 ip from any to any via tun0 > 00100 182 15680 allow ip from any to any via lo0 > 00200 0 0 deny ip from any to 127.0.0.0/8 > 00300 0 0 deny ip from 127.0.0.0/8 to any > 65000 11015 3073646 allow ip from any to any > 65535 4 236 deny ip from any to any > > Here are the problems: > > * ps ax|grep natd shows that natd is not running. > > * While I still cat get to the gateway from the inside, connections to > the Net doesn't work, until I 'ipfw delete 00050'. > > I hope someone here has a clue as to what may be wrong with my setup. > > Thanks in advance, > > Björn > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" --------------385EEC7D090B49937AB72A6E--