Next: 13 Raid on Linux
Up: Redhat FAQ
Previous: 11 Postfix
Contents
Subsections
This section describes setting up PPP for a single modem. It may not
be suitable for use with a modem bank and multiple users. Before starting
this, first setup regular dial in access. See Section 7
- Check the permissions on pppd
$ ls -l /usr/sbin/pppd
-rwxr-xr-x 1 root root 184412 Jan 24 2003 /usr/sbin/pppd
- If it is not SUID root (and it probably isn't) change the permissions.
Because the pppd program must manipulate a kernel device, the suid
is necessary to allow an unprivileged dialup user to set up the connection.
$ sudo chmod u+s /usr/sbin/pppd
$ ls -l /usr/sbin/pppd
-rwsr-xr-x 1 root root 184412 Jan 24 2003 /usr/sbin/pppd
- Next change the ownership to restrict pppd to users in the correct
group.
$ sudo chgrp pppusers /usr/sbin/pppd
$ sudo chmod o-rwx /usr/sbin/pppd
$ ls -l /usr/sbin/pppd
-rwsr-x-- 1 root pppusers 184412 Jan 24 2003
/usr/sbin/pppd
- Set up /etc/ppp/options
asyncmap 0
netmask 255.255.255.252
proxyarp
lock
crtscts
modem
- Add a configuration for the dialup
user addresses in /etc/ppp/options.ttyS0.
172.16.254.1:172.16.254.2
- Add/edit the following line in /etc/mgetty+sendfax/login.config.
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login
-detach
- In /etc/ppp/pap-secrets add the following line
uucp * ``'' 172.16.254.0/24
This means that the user uucp can connect from any server (*),
will authenticate agaisnt the system password file (``''), and
is authorized to use addresses in the 172.16.254.0/24 network. The
allowed address must include whatever addresses were assigned above
in step 5
If there is a firewall running on the server, it must be configured
to allow ppp traffic. I sue shorewall to configure iptables.
- Define the ppp zone. In zones add
ppp Dial Up Point to point connection
- Associate the ppp zone with an interface. In interfaces add
ppp ppp0
- Define what services ppp can access. In params add
PPP=smtp,pop
- Allow ppp to talk to the firewall. In rules add
ACCEPT ppp fw tcp $PPP
- If you want ping to work add to rules
ACCEPT fw ppp icmp
ACCEPT ppp fw icmp
- Check configuration. The check option is unsupperted but it
will catch really stupid errors
# shorewall check
- Restart shorewall
# service shorewall restart
Next: 13 Raid on Linux
Up: Redhat FAQ
Previous: 11 Postfix
Contents
2005-03-20