From owner-freebsd-isp@FreeBSD.ORG Wed Feb 25 04:16:26 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F84116A4DC for ; Wed, 25 Feb 2004 04:16:26 -0800 (PST) Received: from mail011.syd.optusnet.com.au (mail011.syd.optusnet.com.au [211.29.132.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E66F43D31 for ; Wed, 25 Feb 2004 04:16:25 -0800 (PST) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-241-189.eburwd5.vic.optusnet.com.au [211.28.241.189])i1PCGM102716; Wed, 25 Feb 2004 23:16:22 +1100 Received: by marvin.home.local (Postfix, from userid 1001) id 49EB3333; Wed, 25 Feb 2004 23:16:21 +1100 (EST) Date: Wed, 25 Feb 2004 23:16:20 +1100 From: Tony Frank To: Roberto Pereyra Message-ID: <20040225121620.GC26059@marvin.home.local> References: <20040223123108.GB1220@gualeguaychu.gov.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040223123108.GB1220@gualeguaychu.gov.ar> User-Agent: Mutt/1.4.2.1i cc: freebsd-isp@freebsd.org Subject: Re: dialup questions again X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2004 12:16:26 -0000 On Mon, Feb 23, 2004 at 09:31:08AM -0300, Roberto Pereyra wrote: > Hi > > I want to setup a dialup freebsd 5.2 server. > > My setup is: > > ---INTERNET---------| GATEWAY |-------------|DIALUP SERVER| -----|----192.160.0.171 > 192.169.0.1 192.168.0.170 |----192.168.0.172 > |----192.168.0.173 > 8 lines > My ppp.conf is: > > default: > pap: > set debug phase lcp chat > set timeout 0 set debug phase lcp chat > enable pap > set ifaddr 192.168.0.1 192.168.0.171-192.168.0.178 255.255.255.0 > enable proxy > accept dns > set dns 192.168.0.1 > load server > set radius /etc/radius.conf > > I have enable the eight lines in my /etc/ttys > > ttyd0 "/usr/local/sbin/mgetty -s 115200" dialup on secure > ttyd1 "/usr/local/sbin/mgetty -s 115200" dialup on secure > ...... My setup for /etc/ttys is: # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. # Mgetty lines - replace dialup getty cuaa0 "/usr/local/sbin/mgetty" unknown on insecure cuaa1 "/usr/local/sbin/mgetty" unknown on insecure ttyd0 "/usr/libexec/getty std.115200" dialup off ttyd1 "/usr/libexec/getty std.115200" dialup off ttyd2 "/usr/libexec/getty std.115200" dialup off ttyd3 "/usr/libexec/getty std.115200" dialup off Note that the mgetty is using cuaa0/cuaa1 instead of ttyd0/ttyd1. I'm not sure if this made a different for me, but this is how mgetty installed by default. In my case I set the speed in the mgetty configuration file. > Some questions: > > I must enable > > pseudo-device tun 1 > > 1 must be 8 or this setup is automatic for freebsd 5.2 ? The number is automatic, just "pseudo-device tun" should be sufficient. > Is my ppp.conf rigth ? It looks fine. Does it work for you? > Is the "set ifaddr ...." line rigth ? Does it work when you test it? > I have in both sides USR 56K and not have more than 32k with analog lines. How can I have more speed ? You may be able to get up to 33600 both ways with analog lines but no more. For 56k operation one end must be digital. In that case downstream is 56k and upstream is 33600 (max) Regards, Tony