From owner-freebsd-questions Sat Apr 14 17:43: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from truemetal.org (truemetal.org [206.168.16.97]) by hub.freebsd.org (Postfix) with SMTP id 1FF5F37B446 for ; Sat, 14 Apr 2001 17:43:05 -0700 (PDT) (envelope-from universe@truemetal.org) Received: (qmail 560 invoked by alias); 15 Apr 2001 00:39:09 -0000 Received: from unknown (HELO truemetal.org) (213.23.52.177) by truemetal.org with SMTP; 15 Apr 2001 00:39:09 -0000 Message-ID: <3AD8EDE3.2D62D935@truemetal.org> Date: Sun, 15 Apr 2001 02:40:03 +0200 From: universe X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RC i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: difference between ppp nat and natd. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi list, i've changed from a dial-up isdn to a pppoe adsl connection today. while i was successfully using isdn4bsd (isdnd) for the past few months i now had to switch to userland ppp because of the need for pppoe support. in conjunction with isdnd i also ran natd for the masqueraded machines in the private network (192.168.0.0/24) and a divert ipfw rule which worked just fine. now on to my question: what's the drawback when using natd in conjunction with userland ppp? the natd man page says: This program provides a Network Address Translation facility for use with divert(4) sockets under FreeBSD. It is intended for use with NICs - if you want to do NAT on a PPP link, use the -nat switch to ppp(8). during the past hours of experimenting with the new adsl connection i realized that the nat support of userland ppp seems not to be as reliable as natd. for instance, when playing several games one needs to specify the specific ip ports that the game needs for properly connecting, eg. a master game server, in "ppp.conf" in advance. there's a list of some games' that require this step: http://www.de.freebsd.org/FAQ/ppp.html#PPP-NAT-GAMES natd on the other side doesn't require this step, it obviously recognizes which tcp/udp packets are designated for which masqueraded machine behind the gateway that is running natd. or, to put an example: running counterstrike (halflife) on a win98 box with userland ppp nat doesn't work without setting the "nat port xyz" in "ppp.conf". the game works without any additional nat configuring (redirect port) when running natd, though. therefore i stopped using the nat support of userland ppp and switched back to using natd and everything seems to be working great so far, although the natd man page says natd shouldn't be run on a ppp link. why not? thanks, markus To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message