Subject: Re: Setting up pppd. Erik
To: None <cryptoretro@att.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 01/28/2002 22:45:05
On Mon, Jan 28, 2002 at 02:46:10AM +0000, cryptoretro@att.net wrote:
> Hello to anyone interested,
> I am a newbie to NetBSD. I have just installed NetBSD
> 1.5.2 i386 onto an Athlon K7 650. I am having a tough
> time getting pppd to work properly. I have followed
> instructions, from two different web sites. The online
> service is AT&T, and I am using a dial-up account with
> CHAP authentication. I have checked their support site at
> www.wurd.com which has information on Linux (command line
> and GUI), and FreeBSD. Also I have checked the site at
> both NetBSD info sites which link to:
> 
> www2.giganet.net/~mark/NetBSD/ppp.html
> www.mclink.it/personal/MG2508/nbsdeng/chap-pack.html
> 
> That said, I have attached the files that both sites
> describe and configure. The results from the first site
> (giganet)enabled me to activate the modem, and the code
> for those files are below less the and my message is at
> the bottom of all of these files:
> 
> /etc/resolve.conf

This is /etc/resolv.conf

> ---------------------------------------------------------
> # This is the resolve.conf which holds information for
> DNS used by the system
> # to obtain an IP address for the current session.
> 
> nameserver 204.127.129.1
> nameserver 204.127.160.1
> domain worldnet.att.net
> lookup bind

Change that to:
nameserver 204.127.129.1
nameserver 204.127.160.1
search worldnet.att.net


> ---------------------------------------------------------
> 
> 
> /etc/ppp/options
> ---------------------------------------------------------
> #
> #
> #These are the options for ppp.
> #
> #
> 
> passive
> crtscts
> defaultroute
> lock
> lcp-echo-interval 30
> lcp-echo-failure 10
> netmask 255.255.255.0
> domain worldnet.att.net
> mtu 1500
> name 285152932@worldnet.att.net
> disconnect /etc/ppp-down

I'm not sure what domain is for, I would remove it.

> ---------------------------------------------------------
> 
> 
> /etc/ppp/ppp-up
> ---------------------------------------------------------
> #!/usr/pkg/bin/bash
> #/etc/ppp/ppp-up
> 
> /usr/sbin/pppd /dev/tty01 57600 connect '/usr/sbin/chat
> -v "" ATZ OK ATDT*70,####### CONNECT'
> \
> crtscts defaultroute noipdefault modem remotename
> *.worldnet.att.net user mark
> 
> debug

make this:
#!/usr/pkg/bin/bash
#/etc/ppp/ppp-up
/usr/sbin/pppd /dev/tty01 57600 connect '/usr/sbin/chat \
-v "" ATZ OK ATDT*70,####### CONNECT' \
crtscts defaultroute noipdefault modem remotename \
*.worldnet.att.net user mark debug

> ---------------------------------------------------------
> 
> 
> /etc/ppp/chap-secrets
> ---------------------------------------------------------
> ##########@worldnet.att.net*##############

Should be something like:
mask	*@worldnet.att.net	<passwd>

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--