summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-05-26 12:19:37 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-05-26 12:19:37 +0000
commit628da537a524ab269a6e03275aa652854187d57c (patch)
treeef56a587aa75abffdec5b4d9cf91122bc454beeb /generic
parent318a92d9f46332f06166a4e85065f9bfe94ba71d (diff)
downloadptxdist-628da537a524ab269a6e03275aa652854187d57c.tar.gz
ptxdist-628da537a524ab269a6e03275aa652854187d57c.tar.xz
* generic/etc/chatscripts, generic/etc/chatscripts/provider, generic/etc/ppp/chap-secrets, generic/etc/ppp/pap-secrets, generic/etc/ppp/ip-up, generic/etc/ppp/options, generic/etc/ppp/ip-down, generic/etc/ppp/peers, generic/etc/ppp/peers/provider:
added generic config files, patch by carsten schlote git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8240 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'generic')
-rw-r--r--generic/etc/chatscripts/provider19
-rw-r--r--generic/etc/ppp/chap-secrets2
-rw-r--r--generic/etc/ppp/ip-down42
-rw-r--r--generic/etc/ppp/ip-up43
-rw-r--r--generic/etc/ppp/options1
-rw-r--r--generic/etc/ppp/pap-secrets43
-rw-r--r--generic/etc/ppp/peers/provider21
7 files changed, 166 insertions, 5 deletions
diff --git a/generic/etc/chatscripts/provider b/generic/etc/chatscripts/provider
new file mode 100644
index 000000000..efcb04a6f
--- /dev/null
+++ b/generic/etc/chatscripts/provider
@@ -0,0 +1,19 @@
+# This is the chat script used to dial out to your default service provider.
+# Please customize the entries enclosed in parenthesis to match your setup.
+# Only the "provider" file will be handled by poff and pon (unless with
+# extra command line arguments).
+#
+# Remember to edit /etc/ppp/peers/provider accordingly.
+#
+# ATZW2 as a default init string
+# - On all hayes compatible modems, W2 will correctly report the connect
+# speed.
+#
+ABORT BUSY
+ABORT "NO CARRIER"
+ABORT VOICE
+ABORT "NO DIALTONE"
+"" ATZW2
+OK ATDT<put phone number here>
+ogin <put login name here>
+word \q<put password here>
diff --git a/generic/etc/ppp/chap-secrets b/generic/etc/ppp/chap-secrets
new file mode 100644
index 000000000..7d1c3cd7c
--- /dev/null
+++ b/generic/etc/ppp/chap-secrets
@@ -0,0 +1,2 @@
+# Secrets for authentication using CHAP
+# client server secret IP addresses
diff --git a/generic/etc/ppp/ip-down b/generic/etc/ppp/ip-down
new file mode 100644
index 000000000..b3a43a8a6
--- /dev/null
+++ b/generic/etc/ppp/ip-down
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# $Id: ip-down,v 1.2 1998/02/10 21:21:55 phil Exp $
+#
+# This script is run by the pppd _after_ the link is brought down.
+# It uses run-parts to run scripts in /etc/ppp/ip-down.d, so to delete
+# routes, unset IP addresses etc. you should create script(s) there.
+#
+# Be aware that other packages may include /etc/ppp/ip-down.d scripts (named
+# after that package), so choose local script names with that in mind.
+#
+# This script is called with the following arguments:
+# Arg Name Example
+# $1 Interface name ppp0
+# $2 The tty ttyS1
+# $3 The link speed 38400
+# $4 Local IP number 12.34.56.78
+# $5 Peer IP number 12.34.56.99
+# $6 Optional ``ipparam'' value foo
+
+# The environment is cleared before executing this script
+# so the path must be reset
+PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
+export PATH
+# These variables are for the use of the scripts run by run-parts
+PPP_IFACE="$1"
+PPP_TTY="$2"
+PPP_SPEED="$3"
+PPP_LOCAL="$4"
+PPP_REMOTE="$5"
+PPP_IPPARAM="$6"
+export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
+
+# as an additional convenience, $PPP_TTYNAME is set to the tty name,
+# stripped of /dev/ (if present) for easier matching.
+PPP_TTYNAME=`/usr/bin/basename "$2"`
+export PPP_TTYNAME
+
+# Main Script starts here
+run-parts /etc/ppp/ip-down.d
+
+# last line
diff --git a/generic/etc/ppp/ip-up b/generic/etc/ppp/ip-up
new file mode 100644
index 000000000..4fc4fa37f
--- /dev/null
+++ b/generic/etc/ppp/ip-up
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+# $Id: ip-up,v 1.2 1998/02/10 21:25:34 phil Exp $
+#
+# This script is run by the pppd after the link is established.
+# It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add routes,
+# set IP address, run the mailq etc. you should create script(s) there.
+#
+# Be aware that other packages may include /etc/ppp/ip-up.d scripts (named
+# after that package), so choose local script names with that in mind.
+#
+# This script is called with the following arguments:
+# Arg Name Example
+# $1 Interface name ppp0
+# $2 The tty ttyS1
+# $3 The link speed 38400
+# $4 Local IP number 12.34.56.78
+# $5 Peer IP number 12.34.56.99
+# $6 Optional ``ipparam'' value foo
+
+# The environment is cleared before executing this script
+# so the path must be reset
+PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
+export PATH
+# These variables are for the use of the scripts run by run-parts
+PPP_IFACE="$1"
+PPP_TTY="$2"
+PPP_SPEED="$3"
+PPP_LOCAL="$4"
+PPP_REMOTE="$5"
+PPP_IPPARAM="$6"
+export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
+
+
+# as an additional convenience, $PPP_TTYNAME is set to the tty name,
+# stripped of /dev/ (if present) for easier matching.
+PPP_TTYNAME=`/usr/bin/basename "$2"`
+export PPP_TTYNAME
+
+# Main Script starts here
+run-parts /etc/ppp/ip-up.d
+
+# last line
diff --git a/generic/etc/ppp/options b/generic/etc/ppp/options
new file mode 100644
index 000000000..4b67b6a0d
--- /dev/null
+++ b/generic/etc/ppp/options
@@ -0,0 +1 @@
+lock
diff --git a/generic/etc/ppp/pap-secrets b/generic/etc/ppp/pap-secrets
index 50ae03b94..1465a0a82 100644
--- a/generic/etc/ppp/pap-secrets
+++ b/generic/etc/ppp/pap-secrets
@@ -1,10 +1,43 @@
# PAP Secrets Database
# ------------------------------------------------------------------------
#
-# INBOUND connections
+# /etc/ppp/pap-secrets
+#
+# This is a pap-secrets file to be used with the AUTO_PPP function of
+# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
+# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
+# after a user has passed this file. Don't be disturbed therfore by the fact
+# that this file defines logins with any password for users. /etc/passwd
+# (again, /etc/shadow, too) will catch passwd mismatches.
#
-# Every regular user can use PPP and has to use passwords from /etc/passwd:
-# * * "" *
+# This file should block ALL users that should not be able to do AUTO_PPP.
+# AUTO_PPP bypasses the usual login program so its necessary to list all
+# system userids with regular passwords here.
#
-# User foo with password foofoo can connect from everywhere:
-# foo * "foofoo" *
+# ATTENTION: The definitions here can allow users to login without a
+# password if you don't use the login option of pppd! The mgetty Debian
+# package already provides this option; make sure you don't change that.
+
+# INBOUND connections
+
+# Every regular user can use PPP and has to use passwords from /etc/passwd
+* hostname "" *
+
+# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
+# other accounts that should not be able to use pppd!
+guest hostname "*" -
+master hostname "*" -
+root hostname "*" -
+support hostname "*" -
+stats hostname "*" -
+
+# OUTBOUND connections
+
+# Here you should add your userid password to connect to your providers via
+# PAP. The * means that the password is to be used for ANY host you connect
+# to. Thus you do not have to worry about the foreign machine name. Just
+# replace password with your password.
+# If you have different providers with different passwords then you better
+# remove the following line.
+
+hostname * password
diff --git a/generic/etc/ppp/peers/provider b/generic/etc/ppp/peers/provider
new file mode 100644
index 000000000..3dc51cd15
--- /dev/null
+++ b/generic/etc/ppp/peers/provider
@@ -0,0 +1,21 @@
+# These are the options to dial out to your default service provider.
+# Please customize them correctly. Only the "provider" file will be
+# handled by poff and pon (unless with extra command line arguments).
+
+# You usually need this if there is no PAP authentication
+noauth
+
+# The chat script (be sure to edit that file, too!)
+connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
+
+# Set up routing to go through this PPP link
+defaultroute
+
+# Default modem (you better replace this with /dev/ttySx!)
+/dev/modem
+
+# Speed
+38400
+
+# Keep modem up even if connection fails
+persist