Log in to the dial-out machine as superuser.
Ensure that the /etc/ppp/options file has the following options.
# cat /etc/ppp/options lock nodefaultroute |
Create an /etc/ppp/peers/peer-name file for the remote machine CallServe.
# cat /etc/ppp/peers/CallServe /dev/cua/a 57600 noipdefault defaultroute idle 120 user account1 connect "chat -U 'mypassword' -f /etc/ppp/mychat" |
The option user account1 sets account1 as the CHAP user name to be given to CallServe. For a description of the other options in the previous file, see the similar /etc/ppp/peers/myserver file in How to Define the Connection With an Individual Peer.
To test CHAP authentication by calling the dial-in server, refer to How to Call the Dial-in Server.