Date: Wed, 25 Feb 2004 23:16:20 +1100 From: Tony Frank <tfrank@optushome.com.au> To: Roberto Pereyra <rjpereyra@gualeguaychu.gov.ar> Cc: freebsd-isp@freebsd.org Subject: Re: dialup questions again Message-ID: <20040225121620.GC26059@marvin.home.local> In-Reply-To: <20040223123108.GB1220@gualeguaychu.gov.ar> References: <20040223123108.GB1220@gualeguaychu.gov.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040225121620.GC26059>