Cannot disable ppp "-nat" option

Cannot disable ppp "-nat" option

Post by Kenneth Yan » Sun, 23 Sep 2001 23:39:00



Hello,

I'm using ppp_enable and ddail to dialup automatically after boot. And I
intented to use natd to do NATing:

<part of rc.conf>
## start PPPoE
ppp_enable="YES"
ppp_mode=ddial
## put this machine a NAT gw
gateway_enable="YES"
#ppp_nat="YES"
firewall_enable="YES"
##firewall_script="/etc/rc.firewall"
firewall_script="/etc/ipfw.conf"
firewall_type="open"
firewall_quite="NO"
natd_program="/sbin/natd"
natd_enable="YES"
natd_interface="xl1"
natd_flags="-f /etc/natd.conf"

 However, when i check i found the ppp is infact doing NAT:

myhost# ps -ax
..
..
138  ??  Ss     0:00.47 /usr/sbin/ppp -quiet -ddial -nat papchap

But as i already commented out 'ppp_nat="YES"', how come ppp still doing
it? anyway to alter the option?

Thanks.

 
 
 

Cannot disable ppp "-nat" option

Post by Paul Southwor » Mon, 24 Sep 2001 01:15:53




Quote:

><part of rc.conf>
>#ppp_nat="YES"
> However, when i check i found the ppp is infact doing NAT:

>myhost# ps -ax
>..
>..
>138  ??  Ss     0:00.47 /usr/sbin/ppp -quiet -ddial -nat papchap

>But as i already commented out 'ppp_nat="YES"', how come ppp still doing
>it? anyway to alter the option?

The default value of ppp_nat (in /etc/defaults/rc.conf) is "YES".
So to override it, you need:

ppp_nat="NO"

in your rc.conf.

--Paul