From owner-freebsd-doc Tue Nov 21 12:03:42 1995 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA17209 for doc-outgoing; Tue, 21 Nov 1995 12:03:42 -0800 Received: from bsd4me.dmacc.cc.ia.us (bsd4me.dmacc.cc.ia.us [161.210.217.132]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA17192 for ; Tue, 21 Nov 1995 12:03:19 -0800 Received: (from cfr@localhost) by bsd4me.dmacc.cc.ia.us (8.6.11/8.6.9) id OAA09936; Tue, 21 Nov 1995 14:02:14 -0600 Date: Tue, 21 Nov 1995 14:02:14 -0600 From: "Charles F. Randall" Message-Id: <199511212002.OAA09936@bsd4me.dmacc.cc.ia.us> To: andrew@hobart.tased.edu.au Subject: Re: [Q] Acting as a PPP server. [hints + question] Reply-To: "Charles F. Randall" Newsgroups: comp.unix.bsd.freebsd.misc In-Reply-To: Organization: Des Moines Area Community College, Ankeny, Iowa (USA) Cc: doc@freebsd.org Sender: owner-doc@freebsd.org Precedence: bulk In article you write: >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