Now lets get started.
1. Install the following either from source (Unix in general) or RPM (Linux)
2. You must add a line for each modem you want mgetty to manage to your /etc/inittab
example: the line below tells mgetty to monitor the serial device /dev/ttyG2_00 in runlevels 1,2,3,4 and 5 I have:
pp20:12345:respawn: /sbin/mgetty /dev/ttyG2_00
3. Change the line (in /etc/mgetty+sendfax/login.config file):
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug
/AutoPPP/ - a_ppp /usr/sbin/pppd file /etc/ppp/options.pptpd
4. you may want to uncomment the following lines in /etc/mgetty+sendfax/mgetty.config
5. configure the /etc/options.pptpd settings appropriately for your set-up
the following will do for radius authentication
# noccp allows clients to browse!!!
You only need the last line above if you are using RADIUS authentication. In which case, you also need to configure some extra files - the radiusclient for one.
6. Configure your server as a radiusclient (relevant files are in the /etc/radiusclient
Basically you enter your radius server's IP-address and port into the radiusclient.conf file AND enter the radius server's IP-address and secret-key(s) into the servers file.
Please read the descriptions in these two files.
NOTE: please ensure that you have (at least) the following files in your /etc/radiusclient directory:
dictionary, issue, port-id-map, radiusclient.conf, servers
7. What about IP address allocation!
The config above assumes that the RADIUS server would be allocating IP addresses.
If you want the dial-in server to allocate IP addresses then do the following:
For every modem, you need to create a file in /etc/ppp directory called "options.device-name" where device-name is the serial-device's name, e.g., for serial device /dev/ttyS4, I would have a file called options.ttyS4
In this file I will put the IP address that the server will allocate to a client that calls in on that modem.
The file format is:
Alternatively you may use hostnames, lets assume that the /etc/hosts file on the server contains the line
then in the options.ttyS4 for example, I could have the line below instead:
This means that the server endpoint for the link is 10.1.0.10 and the client should be allocated the address 10.1.0.12
You need one IP address for every modem.
Finally read the MAN pages for all these programs :-)
By the way, the "1 hour" in the title was chosen arbitrarily :-)
* Some *nixes distributions have specific formats for the identification string.
Back to main page | Back to the top | Contact me | Favourite sites