The procedure uses the PPP configuration files that were introduced in How to Define Communications Over the Serial Line (Dial-in Server) as examples.
Log in to the dial-in server as superuser.
Add authentication options to the /etc/ppp/options file.
For example, you would add the options in bold to an existing /etc/ppp/options file to implement PAP authentication:
lock idle 120 nodefaultroute name myserver auth require-pap user myserver remotename user2 login |
Sets myserver as the PAP name of the user on the local machine. If the login option is used, the PAP name must be the same as the user's UNIX user name in the password database.
States that the server must authenticate callers before establishing the link.
Defines user2 as a peer that requires authentication credentials from the local machine.
Specifies that the local machine must use the login option of PAP for authentication wherever login is called for in the /etc/ppp/pap-secrets file.
Create an /etc/ppp/options.ttyname file, as described in How to Define Communications Over the Serial Line.
Set up the $HOME/.ppprc file for each remote caller, as explained in How to Configure Users of the Dial-in Server.
Task |
For Instructions |
---|---|
Configure PAP authentication credentials for trusted callers of the dial-in server |
Configuring PAP Authentication for Trusted Callers (Dial-out Machines) |