From owner-freebsd-questions Sat Feb 6 14:25:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA29736 for freebsd-questions-outgoing; Sat, 6 Feb 1999 14:25:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29726 for ; Sat, 6 Feb 1999 14:25:10 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id RAA06726 for ; Sat, 6 Feb 1999 17:25:54 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.1/8.8.5) with ESMTP id SAA00328 for ; Sat, 6 Feb 1999 18:08:24 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.1/8.6.9) id RAA00444; Sat, 6 Feb 1999 17:27:08 -0500 (EST) Date: Sat, 6 Feb 1999 17:27:08 -0500 (EST) From: Thomas David Rivers Message-Id: <199902062227.RAA00444@lakes.dignus.com> To: freebsd-questions@FreeBSD.ORG, rivers@lakes.dignus.com Subject: PPP and ipfw/natd - what's the interface to use for natd? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ok - My ISP is moving me off of SL/IP and onto PPP. So, I've got to brave the waters and set everything up again. I believe using pppd is pretty straight forward, and shouldn't present me with too many problems... but, I have a question. Right now, I use the following ipfw/natd rules to do some forwarding and gateway stuff: (from /etc/rc.conf): natd_interface="sl0" natd_flags="-m -u -dynamic -redirect_port tcp 10.0.0.11:telnet 6666 -redirect_port udp 10.0.0.11:telnet 6666" And, from /etc/rc.firewall: ... $fwcmd add divert natd all from any to any via ${natd_interface} ... $fwcmd add 400 pass tcp from any to 166.82.177.48 7490 $fwcmd add 401 pass tcp from any to 10.0.0.10 7490 $fwcmd add 65000 pass all from any to any So - now - how do I redo this using pppd? Basically, I'm asking what the natd_interface should be. Is it tun0? Just what is the interface in this case? I'd rather change a little as possible, so I'd like to just get pppd working (kernel-mode ppp) with my current natd/ipfw setup instead of using the ppp natd support... - Thanks - - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message