Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2002 23:46:12 +1000
From:      "Leigh V" <leighv@roq.com>
To:        "Acid-Angel" <tbest@monroe.lib.mi.us>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: setting up a dialup server 
Message-ID:  <007301c2502b$9a77bf30$2d01a8c0@michael>
References:  <000001c24fa3$b2eec050$6a01a8c0@workstation1>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
I been thinking of doing a how-to on this because I feel the handbook text
on it isn't clear (well last time I checked)
Its been awhile since I setup mine so I will mostly just paste my config
setup
Its setup for 1 line in only. Wouldn't be hard to make it multi modem setup.
Install mgetty
cd /usr/ports/comms/mgetty+sendfax
make install

answer all the questions, I cant remember what they asked now but I do
remember kind of skipping the fax questions to get a more normal modem cfg.
This is my mgetty.config
I dont recall hand tweaking it, this is just what I got after answering all
the mgetty install questions.
#######################################
port cuaa1
debug 4
fax-id 00 00 000000
speed 115200
direct NO
blocking NO
port-owner uucp
port-group uucp
port-mode 0660
toggle-dtr YES
toggle-dtr-waittime 500
data-only YES
fax-only NO
modem-type auto
init-chat "" ATS0=0Q0&D3&C1 OK
modem-check-time 3600
rings 7
answer-chat "" ATA CONNECT \c \r
answer-chat-timeout 80
autobauding NO
ringback NO
ringback-time 30
ignore-carrier false
issue-file /etc/issue
prompt-waittime 500
login-prompt @!login:
login-time 240
diskspace 1024
notify faxadmin
fax-owner uucp
fax-group modem
fax-mode 0660
#################################################
I added this to my /usr/local/etc/mgetty+sendfax/login.config
/AutoPPP/ -     -            /etc/ppp/ppplogin
#################################################
for my /etc/ttys I added this to the bottom
cuaa1   "/usr/local/sbin/mgetty"        unknown on insecure
#################################################
For the /etc/ppp/ppplogin script I put this (chmod 755 /etc/ppp/ppplogin)
#!/bin/sh
exec /usr/sbin/ppp -direct server

#################################################
For my /etc/ppp.conf file I have this
default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa1
# set device /dev/cuaa0

 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 180                        # 3 minute idle timer (the default)
 enable dns                             # request DNS info (for resolv.conf)

server:
 enable pap
 enable passwdauth
 enable proxy
 set ifaddr 192.168.1.36 192.168.1.37
 accept dns

papchap:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 set phone PHONE_NUM
 set authname USERNAME
 set authkey PASSWORD

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR                    # Add a (sticky) default route
#############################################################
This setup assumes you have a internal 192.168.1.0/255.255.255.0 network
(well actully I have a 255.255.255.240 just to keep my self sharp, but you
dont have to)
And I am using a ipfilter/nat firewall network setup from my setup script at
www.roq.com/bsd/

You can just make any normal unix user/password account on the system and
they can dial in.
I have found the best way of checking if my modem is working properly is to
use the "ppp" command by its self then type "term" you will then be able to
send commands to the modem directly.. I type "AT(enter)" and it returns "OK"
back
When that happens I know the modem is live and working with FreeBSD, if its
not its always a serial port prob or incorrect /etc/ppp/ppp.conf setup such
as using /dev/cuaa0 instead of /dev/cuaa1 ,etc.
Now I have done this mildly complete text I may as well pop it on my web
page.

Good luck.


----- Original Message -----
From: Acid-Angel
To: freebsd-questions@FreeBSD.ORG
Sent: Friday, August 30, 2002 7:33 AM
Subject: setting up a dialup server


Im trying to set up a dialup server with a single modem on com 1 (cuaa0) so
I can have a friend dial in and connect out to my cable sevice
Every time I edit my ttys to dialup on insecure from dialup off secure the
machine freezes and I loose all my connections
Im using ttyd0 in the ttys file I have read almost every file I can find
about it on the net from google/bsd and including using mgetty instead of
getty
Im using fbsd 4.5 , why and how comethis isn't working and is there a
uptodate page out there that will explain this and show how to do it

Thanks


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?007301c2502b$9a77bf30$2d01a8c0>