From owner-freebsd-questions Mon Feb 8 00:41:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA03938 for freebsd-questions-outgoing; Mon, 8 Feb 1999 00:41:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gate.nitek.ru (nitek.east.ru [195.170.63.240]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA03930 for ; Mon, 8 Feb 1999 00:41:22 -0800 (PST) (envelope-from igor@nitek.ru) Received: from igor (igor.nitek.ru [192.168.1.10]) by gate.nitek.ru (8.9.1/8.9.1) with ESMTP id LAA09676; Mon, 8 Feb 1999 11:41:14 +0300 (MSK) Message-Id: <199902080841.LAA09676@gate.nitek.ru> From: "Igor Sysoev" To: , Subject: Re: PPP and ipfw/natd - what's the interface to use for natd? Date: Mon, 8 Feb 1999 11:40:26 +0300 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1161 MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > From: Thomas David Rivers > 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... pppd interface is ppp0, ppp - tun0. With best regards, Igor Sysoev To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message