Contents
- INDEX
- HP-UX Index
- Solaris
- Linux Index
- Other Unix types
- General Unix
- Unix Networking
- Unix Scripts
- Unix Databases
Associated Information
- Rebuilding the Kernel
Useful Links
- HOWTOs, FAQs, etc
- Linux Documentation Project
- Linux Sites Search Engine
- GNU free software sight
- Freshmeat software sight
- Linux Weekly News
- Linux Gazzette
- Caldera Openlinux knowledge d/base
- Corel Linux knowledge d/base
- Debian documentation
- Mandrake documentation
- Redhat Online Manuals
- Slackware FAQs
- SUSE support database
|
Manually Configuring PPP
PPP-Client
- kernel: PPP is best set up as a kernel module. If you haven't got PPP loaded as
a module, check Rebuilding the kernel for details of adding a
kernel module.
- As of the 2.2 version of the kernel, the kernel automatically loads modules using the
/sbin/modprobe command. If it doesn't load , /sbin/insmod> can be used
to manually load the module. (lsmod lists the modules loaded).
- FOR LAPTOPS ONLY: Problems with modems can be due due to pcmcia not being installed
or configured correctly. See the PCMCIA-HOWTO in /usr/doc/HOWTOS for details.
A daemon called cardmgr should be running. This is controlled by
/etc/sysconfig/pcmcia which should have the parameter PCMCIA=yes set.
Various config files are found in /etc/pcmcia. If you have trouble with
settings, do the following:
- Devices are defined as follows:
- | input | output |
com1 |
/dev/ttyS0 |
/dev/cua0 |
com2 |
/dev/ttyS1 |
/dev/cua1 |
com3 |
/dev/ttyS2 |
/dev/cua2 |
com4 |
/dev/ttyS3 |
/dev/cua3 |
- Check device using command setserial -a /dev/ttySx . This will show settings.
- to exclude an IRQ if you suspect an IRQ clash, edit /etc/pcmcia/config.opts
and add line
exclude irq "number"
- To limit the range to IRQs selectable, edit /etc/pcmcia/config ad follows:
device "serail_cs"
class "serial" module "serial_cs" opts "irq_list=5,7,9"
- The following modules should be loaded (check with lsmod)
serial_cs 1 0
ds 2 [serial_cs] 3
i82365(*) 4 2
pcmcia-core 8 [serial_cs ds i82365] 4
*i82365 can be replaced by a different pcmcia controller depending on the hardware.See
PCMCIA-HOWTO and SERIAL-HOWTO for details.
- PPP configuration follows:
- Edit /etc/group and add a ppp group with a unique gid number. Add any users to the
group that may be required.
- ensure /sbin/pped is owned by root, group ppp and the suid bit is on as follows:
- chown root /usr/sbin/ppd
- ghgrp ppp /usr/sbin/ppd
- chmod u+s /usr/sbin/pppd
- copy ppp-on and ppp-off from /usr/doc/ppp-version/scripts to
/usr/sbin
- chown root /usr/sbin/ppp-on (and ppp-off)
chgrp ppp /usr/sbin/ppp-on (and ppp-off)
chmod 550 /usr/sbin/ppp-on (and ppp-off)
- copy ppp-on-dialer script from /usr/doc/ppp-version/scripts to
/etc/ppp and set the permissions the same as ppp-on
- Edit the ppp-on script setting:
TELEPHONE=telephone number
ACCOUNT=ppp-account
PASSWORD=current password
on the exec /usr/sbin/ppd line, set the device to the correct dial out device
- Edit /etc/ppp/options file so that it contains:
lock
modem
-detach
crtscts
defaultroute
asyncmap 0
mtu 552
mru 552
(some of these aren't required as they are specofoed on the command line ppp-on
script. However, if this line is cahnged, the correct options will still be picked up).
- Add any local & remote IP addresses in /etc/hosts (This isn't required for
connecting to an ISP)
The client should now be configured.
NOTE: modem testing can be done via the minicom program.
For more details on the above, see the PPP-HOWTO
PPP Server
- Set up the kernel as per the client.
- Configure PPP as follows:
- Add a user called ppp (or whatever desired) into /etc/passwd as
follows:
ppp:password:uid:gid:PPP Client login:/home/ppp:/isr/sbin/pppd
- Create a ppp group as per client (ppp user should be in this group)
- Create the home directory, owned by ppp, group ppp
- Create .ppprc in this home directory with contents as follows:
-detach
modem
crtscts
lock
:ipaddress-assigned-to-remote-user
- Set permissions for this file to root:ppp 444
- Ensure pppd is owned by root, group ppp, setuid bit on (as per client)
See /usr/doc/ppp-version/README_linux for details
- configure getty as follows:
- vi /etc/conf.uugetty and ensure the following is included:
ATLOCK=cuax (where x is the correct output device the modem is
attached to)
TIMEOUT=60
INIT="" \d+++\dAT\r OK etc....
WAITFOR=RING
CONNECT="" ATA \r CONNECT\s\A
DELAY=1
This can be copied from template file /usr/doc/getty-version/Examples/default/uugetty.autoanswer
and edited to add WAITFOR and CONNECT statements.
- edit /etc/inittab to add statement:
s1:2345:respawn:/sbin/uugetty -d /etc/conf.uugetty ttySx F115200 vt100
- run init q and check uugetty is running with ps ax
command. (See Serial-HOWTO for details).
- To get connection up:
- On the client execute ppp-on &
- Once the connection is made, check with ifconfig -a a ppp0
entry should be present
- can now connect using telnet, ftp, etc...
- To stop the connection, run ppp-off
|