*BSD News Article 55550


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!delta.misha.net!newsrelay.netins.net!news.netins.net!news.dmacc.cc.ia.us!not-for-mail
From: cfr@bsd4me.dmacc.cc.ia.us (Charles F. Randall)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [Q] Acting as a PPP server.
Date: 21 Nov 1995 14:25:54 -0600
Organization: Des Moines Area Community College, Ankeny, Iowa (USA)
Lines: 104
Message-ID: <48tcki$9o8@bsd4me.dmacc.cc.ia.us>
References: <andrew-1811952123030001@dslip2.cc.utas.edu.au>
Reply-To: "Charles F. Randall" <crandall@dmacc.cc.ia.us>
NNTP-Posting-Host: bsd4me.dmacc.cc.ia.us

Andrew <andrew@hobart.tased.edu.au> wrote:
>I am trying to set up a FreeBSD box (2.0.5) to act as a PPP server. The
>box has an ethernet connection and two 14.4 modems. I couldn't seem to
>find much help in the handbook about ijjppp as a server so I mailed
>questions who suggested man ppp.

Having just went through this (for a personal PPP connection to home -
static IP address), I'll offer the following advice. As always,
YMMV...

First off,

o Read the information in the FreeBSD handbook and the ppp(8) manpage.
  Pay particular attention to the 'RECEIVING INCOMING PPP CONNECTIONS'
  section.

o Determine the serial device names ('/dev/cuaa?') for each of the modems.

o On the server, modify the /etc/ttys file, create the "ppp" account
  (if that's how you want to manage it), etc. as outlined in steps 1-4
  of the 'RECEIVING INCOMING PPP CONNECTIONS' section of the ppp(8)
  manpage.

o Attempt to make a call using kermit from the client to the server. 
  The modem should answer and you should get a login prompt (make sure
  that the modem on the server is configured to auto-answer).

o Don't continue from here unless you can establish a "normal"
  login using kermit.

o Login once as the "ppp" user and you should see a bunch of garbage
  on the screen soon after you type your password. That's the ppp server
  trying to negotiate the connection (exit from this in Kermit by
  typing C-\ then 'c' - then type "hangup" at the kermit prompt).

Then, on the server:

o Follow the instructions outlined in these sections of the handbook:

  11.1.2. Building a ppp ready kernel
  11.1.3. Check the tun device
  11.1.4. PPP Configuration
    11.1.4.1. Configure the resolver(5) 
    11.1.4.2. Create the /etc/hosts(5) file 
    11.1.4.3. Create the /etc/resolv.conf file 
	       
o Build a kernel on the server with 'options=GATEWAY'. See the
  handbook for instructions on building a new kernel.

o Create a /etc/ppp/ppp.conf file on the server with at least 
  the following lines:

  # Default setup. Executed always when PPP is invoked.
  #
  default:
    set timeout 0
    enable proxy

On the client,

o Create an /etc/ppp/ppp.conf file similar to that outlined in the
  following section of the handbook:
  
  11.1.5. PPP and static IP addresses
  
  Mine looks like:
  
  default:
   set device /dev/cuaa1
   set speed 38400
   set timeout 0
   set phone your-phone-number-here
   set dial  "your-chat-script-here" <- I dial the phone here
   set login "login:-login: ppp word: your-ppp-password-here"
   dial

o Create an /etc/ppp/ppp.linkup file as described in the same section of
  the handbook. Mine looks like this,

  #
  # Otherwise, simply add peer as default gateway.
  #
  MYADDR:
   add 0 0 HISADDR

Based on input from a few old news articles, I ignored most of the
instructions about client configuration in the handbook section
'11.1.7. Final system configuration'. I just set the hostname and set
'routdflags="NO"'.

I can connect by just issuing the 'ppp' command on the client machine
and everything works just fine. 

Well, that's my input. Now for the question...

I'm still seeing the ~180 second idle timeout even though
I've done a 'set timeout 0' on both sides. Any suggesions?

FYI,
-Randy
-- 
Charles F. Randall              E-mail: crandall@dmacc.cc.ia.us
UNIX Systems Programmer         Voice:  (515) 965-7057
Powered by FreeBSD!             FAX:    (515) 965-7305