FreeBSD Handbook : PPP and SLIP : Setting up user PPP : Final system configuration
Previous: PPP and Dynamic IP configuration
Next: Setting up kernel PPP

12.1.7. Final system configuration

You now have PPP configured, but there are a few more things to do before it is ready to work. They all involve editing the /etc/sysconfig file.

Working from the top down in this file, make sure the ``hostname='' line is set, e.g.,

hostname=foo.bar.com
Look for the network_interfaces variable, and make sure the tun0 device is NOT added to the list. My line looks like
network_interfaces="lo0 ep0"
because I have an ethernet card (ep0) to configure as well.

Set the router program to ``NO'' with the line

router=NO
It is important that this is not set to routed (the default) as routed tends to delete the routing table entries made by ppp.

It is probably worth your while ensuring that the ``sendmail_flags'' line does not include the ``-q'' option, otherwise sendmail will attempt to do a network lookup every now and then, possibly causing your machine to dial out. My sendmail line looks like

sendmail_flags="-bd"
The upshot of this is that I must force sendmail to re-examine the mailqueue whenever I have the PPP link up, by typing
# /usr/sbin/sendmail -q
If you don't like this, it is possible to set up a "dfilter" to block SMTP traffic. Refer to the sample files for further details.

That should be about all you need to do to get PPP working. All that is left is to reboot the machine.

You can now either type

# ppp
and then ``dial provider'' to start the PPP session, or, if you want ppp to establish sessions automatically when there is outbound traffic, type
# ppp -auto provider
This line could be added to your /etc/rc.local file.


FreeBSD Handbook : PPP and SLIP : Setting up user PPP : Final system configuration
Previous: PPP and Dynamic IP configuration
Next: Setting up kernel PPP