Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Feb 1999 11:40:26 +0300
From:      "Igor Sysoev" <igor@nitek.ru>
To:        <freebsd-questions@FreeBSD.ORG>, <rivers@dignus.com>
Subject:   Re: PPP and ipfw/natd - what's the interface to use for natd?
Message-ID:  <199902080841.LAA09676@gate.nitek.ru>

next in thread | raw e-mail | index | archive | help
> From: Thomas David Rivers <rivers@dignus.com>

>  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902080841.LAA09676>