summaryrefslogtreecommitdiff
path: root/etc/ppp/ppp.linkup.sample
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1997-11-23 20:27:41 +0000
committerbrian <brian@cvs.openbsd.org>1997-11-23 20:27:41 +0000
commit2cb79b0580b6b5629530c4d142a73a9a654f282f (patch)
tree8b062ff5e99e22ec2c95145149e22b58b7fc0e22 /etc/ppp/ppp.linkup.sample
parent518c0071f44dfb9716d70e0d8781585db7a3bd7d (diff)
Import version 1.5 of ppp.
<sales> This is a user-level ppp implementation that uses the tun driver. It was originally created by a Japanese ISP. It's now piled with features. Check the man pages for details. </sales> The sources are identical to the ones in FreeBSD, except for the Makefile. IP aliasing (NAT) is disabled, and can be enabled by simply doing a ``make install'' of libalias, then rebuilding ppp. I'll create libalias as a port soon.
Diffstat (limited to 'etc/ppp/ppp.linkup.sample')
-rw-r--r--etc/ppp/ppp.linkup.sample55
1 files changed, 55 insertions, 0 deletions
diff --git a/etc/ppp/ppp.linkup.sample b/etc/ppp/ppp.linkup.sample
new file mode 100644
index 00000000000..81e190d08c9
--- /dev/null
+++ b/etc/ppp/ppp.linkup.sample
@@ -0,0 +1,55 @@
+#########################################################################
+#
+# Example of ppp.linkup file
+#
+# This file is checked when ppp establishes a connection.
+# ppp searches the labels in this file as follows:
+#
+# 1) The label that matches the IP number assigned to our side.
+#
+# 2) The label specified on the command line to ppp.
+#
+# 3) If no label has been found, use MYADDR if it exists.
+#
+#
+# $Id: ppp.linkup.sample,v 1.1 1997/11/23 20:27:40 brian Exp $
+#
+#########################################################################
+
+# By default, simply delete any existing default route and add the peer
+# as default gateway.
+# If you're into sound effects when the link comes up, you can run
+# ``auplay'' (assuming NAS is installed and configured).
+#
+MYADDR:
+ delete 0
+ add 0 0 HISADDR
+ !bg /usr/X11R6/bin/auplay /etc/ppp/linkup.au
+
+# If we've got 192.244.176.32 as our address, then regard peer as a gateway
+# to 192.244.176.0 network.
+#
+192.244.176.32:
+ add 192.244.176.0 0 HISADDR
+
+# If we are invoked with an argument ``pmdemand'', then
+# delete all existing (wrong) routing entries and add the peer IP
+# as our default gateway.
+# This is vital if you don't already know either sides IP number.
+#
+# We also want to execute a script on startup. This script can do
+# nice things such as kick off "sendmail -q", "popclient my.isp" and
+# "slurp -d news". It can be passed MYADDR, HISADDR and INTERFACE
+# as arguments too - useful for informing a DNS of your assigned IP.
+#
+pmdemand:
+ delete ALL
+ add 0 0 HISADDR
+ !bg /etc/ppp/ppp.etherup.pmdemand
+
+# If your minimum call charge is 5 minutes, you may as well stay on
+# the line for that amount of time. If we want a 60 second subsequent
+# timeout, set your timeout to 300 in ppp.conf and then do this:
+#
+min5minutes:
+ !bg sh -c "sleep 240; pppctl -p mypassword 3000 set timeout 60"