source: npl/internetserver/poptop_ppp/patches/ppp-2.3.6-sample.patch @ 5160d62

perl-5.22
Last change on this file since 5160d62 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 10.4 KB
  • ppp-2.3.3/sample/auth-down

    old new  
     1#!/bin/sh
     2#
     3# A program or script which is executed after the remote system
     4# successfully authenticates itself. It is executed with the parameters
     5# <interface-name> <peer-name> <user-name> <tty-device> <speed>
     6#
     7
     8#
     9# The environment is cleared before executing this script
     10# so the path must be reset
     11#
     12PATH=/usr/sbin:/sbin:/usr/bin:/bin
     13export PATH
     14
     15echo auth-down `date +'%y/%m/%d %T'` $* >> /var/log/pppstats
     16
     17# last line
  • ppp-2.3.3/sample/auth-up

    old new  
     1#!/bin/sh
     2#
     3# A program or script which is executed after the remote system
     4# successfully authenticates itself. It is executed with the parameters
     5# <interface-name> <peer-name> <user-name> <tty-device> <speed>
     6#
     7
     8#
     9# The environment is cleared before executing this script
     10# so the path must be reset
     11#
     12PATH=/usr/sbin:/sbin:/usr/bin:/bin
     13export PATH
     14
     15echo auth-up `date +'%y/%m/%d %T'` $* >> /var/log/pppstats
     16
     17# last line
  • ppp-2.3.3/sample/ip-down

    old new  
     1#!/bin/sh
     2#
     3# This script is run by the pppd _after_ the link is brought down.
     4# It should be used to delete routes, unset IP addresses etc.
     5#
     6# This script is called with the following arguments:
     7#    Arg  Name               Example
     8#    $1   Interface name     ppp0
     9#    $2   The tty            ttyS1
     10#    $3   The link speed     38400
     11#    $4   Local IP number    12.34.56.78
     12#    $5   Peer  IP number    12.34.56.99
     13#
     14
     15#
     16# The  environment is cleared before executing this script
     17# so the path must be reset
     18#
     19PATH=/usr/sbin:/sbin:/usr/bin:/bin
     20export PATH
     21
     22# last line
  • ppp-2.3.3/sample/ip-up

    old new  
     1#!/bin/sh
     2#
     3# This script is run by the pppd after the link is established.
     4# It should be used to add routes, set IP address, run the mailq
     5# etc.
     6#
     7# This script is called with the following arguments:
     8#    Arg  Name               Example
     9#    $1   Interface name     ppp0
     10#    $2   The tty            ttyS1
     11#    $3   The link speed     38400
     12#    $4   Local IP number    12.34.56.78
     13#    $5   Peer  IP number    12.34.56.99
     14#
     15
     16#
     17# The  environment is cleared before executing this script
     18# so the path must be reset
     19#
     20PATH=/usr/sbin:/sbin:/usr/bin:/bin
     21export PATH
     22
     23# last line
  • ppp-2.3.3/sample/options

    old new  
     1# /etc/ppp/options
     2
     3# The name of this server. Often, the FQDN is used here.
     4#name <host>
     5
     6# Enforce the use of the hostname as the name of the local system for
     7# authentication purposes (overrides the name option).
     8usehostname
     9
     10# If no local IP address is given, pppd will use the first IP address
     11# that belongs to the local hostname. If "noipdefault" is given, this
     12# is disabled and the peer will have to supply an IP address.
     13noipdefault
     14
     15# With this option, pppd will accept the peer's idea of our local IP
     16# address, even if the local IP address was specified in an option.
     17#ipcp-accept-local
     18
     19# With this option, pppd will accept the peer's idea of its (remote) IP
     20# address, even if the remote IP address was specified in an option.
     21#ipcp-accept-remote
     22
     23# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
     24# Two Servers can be remotely configured
     25#ms-dns 192.168.1.1
     26#ms-dns 192.168.1.2
     27
     28# Specify which WINS Servers the incoming connection Win95 or WinNT should use
     29#wins-addr 192.168.1.50
     30#wins-addr 192.168.1.51
     31
     32# enable this on a server that already has a permanent default route
     33#nodefaultroute
     34
     35# Run the executable or shell command specified after pppd has terminated
     36# the link.  This script could, for example, issue commands to the modem
     37# to cause it to hang up if hardware modem control signals were not
     38# available.
     39# If mgetty is running, it will reset the modem anyway. So there is no need
     40# to do it here.
     41#disconnect "chat -- \d+++\d\c OK ath0 OK"
     42
     43# Increase debugging level (same as -d). The debug output is written
     44# to syslog LOG_LOCAL2.
     45debug
     46
     47# Enable debugging code in the kernel-level PPP driver.  The argument n
     48# is a number which is the sum of the following values: 1 to enable
     49# general debug messages, 2 to request that the contents of received
     50# packets be printed, and 4 to request that the contents of transmitted
     51# packets be printed.
     52#kdebug n
     53
     54# Require the peer to authenticate itself before allowing network
     55# packets to be sent or received.
     56# Please do not disable this setting. It is expected to be standard in
     57# future releases of pppd. Use the call option (see manpage) to disable
     58# authentication for specific peers.
     59#auth
     60
     61# authentication can either be pap or chap. As most people only want to
     62# use pap, you can also disable chap:
     63#require-pap
     64#refuse-chap
     65
     66# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
     67# on the serial port.
     68crtscts
     69
     70# Specifies that pppd should use a UUCP-style lock on the serial device
     71# to ensure exclusive access to the device.
     72lock
     73
     74# Use the modem control lines.
     75modem
     76
     77# async character map -- 32-bit hex; each bit is a character
     78# that needs to be escaped for pppd to receive it.  0x00000001
     79# represents '\x01', and 0x80000000 represents '\x1f'.
     80# To allow pppd to work over a rlogin/telnet connection, ou should escape
     81# XON (^Q), XOFF  (^S) and ^]: (The peer should use "escape ff".)
     82#asyncmap  200a0000
     83asyncmap 0
     84
     85# Specifies that certain characters should be escaped on transmission
     86# (regardless of whether the peer requests them to be escaped with its
     87# async control character map).  The characters to be escaped are
     88# specified as a list of hex numbers separated by commas.  Note that
     89# almost any character can be specified for the escape option, unlike
     90# the asyncmap option which only allows control characters to be
     91# specified.  The characters which may not be escaped are those with hex
     92# values 0x20 - 0x3f or 0x5e.
     93#escape 11,13,ff
     94
     95# Set the MRU [Maximum Receive Unit] value to <n> for negotiation.  pppd
     96# will ask the peer to send packets of no more than <n> bytes. The
     97# minimum MRU value is 128.  The default MRU value is 1500.  A value of
     98# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
     99# bytes of data).
     100#mru 542
     101
     102# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
     103# requests a smaller value via MRU negotiation, pppd will request that
     104# the kernel networking code send data packets of no more than n bytes
     105# through the PPP network interface.
     106#mtu <n>
     107
     108# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
     109# notation (e.g. 255.255.255.0).
     110#netmask 255.255.255.0
     111
     112# Don't fork to become a background process (otherwise pppd will do so
     113# if a serial device is specified).
     114nodetach
     115
     116# Set the assumed name of the remote system for authentication purposes
     117# to <n>.
     118#remotename <n>
     119
     120# Add an entry to this system's ARP [Address Resolution Protocol]
     121# table with the IP address of the peer and the Ethernet address of this
     122# system. {proxyarp,noproxyarp}
     123proxyarp
     124
     125# Use the system password database for authenticating the peer using
     126# PAP. Note: mgetty already provides this option. If this is specified
     127# then dialin from users using a script under Linux to fire up ppp wont work.
     128#login
     129
     130# If this option is given, pppd will send an LCP echo-request frame to
     131# the peer every n seconds. Under Linux, the echo-request is sent when
     132# no packets have been received from the peer for n seconds. Normally
     133# the peer should respond to the echo-request by sending an echo-reply.
     134# This option can be used with the lcp-echo-failure option to detect
     135# that the peer is no longer connected.
     136lcp-echo-interval 30
     137
     138# If this option is given, pppd will presume the peer to be dead if n
     139# LCP echo-requests are sent without receiving a valid LCP echo-reply.
     140# If this happens, pppd will terminate the connection.  Use of this
     141# option requires a non-zero value for the lcp-echo-interval parameter.
     142# This option can be used to enable pppd to terminate after the physical
     143# connection has been broken (e.g., the modem has hung up) in
     144# situations where no hardware modem control lines are available.
     145lcp-echo-failure 4
     146
     147# Specifies that pppd should disconnect if the link is idle for n seconds.
     148idle 600
     149
     150# Disable the IPXCP and IPX protocols.
     151noipx
     152
     153# ---<End of File>---
  • ppp-2.3.3/sample/options.ttyXX

    old new  
     1# If you need to set up multiple serial lines then copy this file to
     2# options.<ttyname> for each tty with a modem on it.
     3#
     4# The options.tty file will assign an IP address to each PPP connection
     5# as it comes up. They must all be distinct!
     6#
     7# Example:
     8# options.ttyS1         for com2 under DOS.
     9#
     10# Edit the following line so that the first IP address
     11# mentioned is the ip address of the serial port while the second
     12# is the IP address of your host
     13#
     14hostname-s1:hostname
  • ppp-2.3.3/sample/pap-secrets

    old new  
     1# Secrets for authentication using PAP
     2# client        server  secret                  IP addresses
     3
     4# OUTBOUND CONNECTIONS
     5# Here you should add your userid password to connect to your providers via
     6# pap. The * means that the password is to be used for ANY host you connect
     7# to. Thus you do not have to worry about the foreign machine name. Just
     8# replace password with your password.
     9# If you have different providers with different passwords then you better
     10# remove the following line.
     11#hostname       *       password
     12
     13# INBOUND CONNECTIONS
     14#client         hostname        <password>      192.168.1.1
     15
     16# If you add "auth login -chap +pap" to /etc/mgetty+sendfax/login.config,
     17# all users in /etc/passwd can use their password for pap-authentication.
     18#
     19# Every regular user can use PPP and has to use passwords from /etc/passwd
     20#*      hostname        ""
     21# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
     22# other accounts that should not be able to use pppd! Replace hostname
     23# with your local hostname.
     24#guest          hostname        "*"     -
     25#master         hostname        "*"     -
     26#root           hostname        "*"     -
     27#support        hostname        "*"     -
     28#stats          hostname        "*"     -
Note: See TracBrowser for help on using the repository browser.