/[smeserver]/rpms/ppp/sme8/ppp-2.3.6-sample.patch
ViewVC logotype

Annotation of /rpms/ppp/sme8/ppp-2.3.6-sample.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 20:34:42 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: ppp-2_4_4-1_3_el5_sme, HEAD
Import on branch sme8 of package ppp-2.4.4-1.3.el5.sme.src.rpm

1 slords 1.1 --- ppp-2.3.3/sample/auth-down.sample Tue Jan 6 17:53:27 1998
2     +++ ppp-2.3.3/sample/auth-down Tue Jan 6 17:53:27 1998
3     @@ -0,0 +1,17 @@
4     +#!/bin/sh
5     +#
6     +# A program or script which is executed after the remote system
7     +# successfully authenticates itself. It is executed with the parameters
8     +# <interface-name> <peer-name> <user-name> <tty-device> <speed>
9     +#
10     +
11     +#
12     +# The environment is cleared before executing this script
13     +# so the path must be reset
14     +#
15     +PATH=/usr/sbin:/sbin:/usr/bin:/bin
16     +export PATH
17     +
18     +echo auth-down `date +'%y/%m/%d %T'` $* >> /var/log/pppstats
19     +
20     +# last line
21     --- ppp-2.3.3/sample/auth-up.sample Tue Jan 6 17:53:27 1998
22     +++ ppp-2.3.3/sample/auth-up Tue Jan 6 17:53:27 1998
23     @@ -0,0 +1,17 @@
24     +#!/bin/sh
25     +#
26     +# A program or script which is executed after the remote system
27     +# successfully authenticates itself. It is executed with the parameters
28     +# <interface-name> <peer-name> <user-name> <tty-device> <speed>
29     +#
30     +
31     +#
32     +# The environment is cleared before executing this script
33     +# so the path must be reset
34     +#
35     +PATH=/usr/sbin:/sbin:/usr/bin:/bin
36     +export PATH
37     +
38     +echo auth-up `date +'%y/%m/%d %T'` $* >> /var/log/pppstats
39     +
40     +# last line
41     --- ppp-2.3.3/sample/ip-down.sample Tue Jan 6 17:53:27 1998
42     +++ ppp-2.3.3/sample/ip-down Tue Jan 6 17:53:27 1998
43     @@ -0,0 +1,22 @@
44     +#!/bin/sh
45     +#
46     +# This script is run by the pppd _after_ the link is brought down.
47     +# It should be used to delete routes, unset IP addresses etc.
48     +#
49     +# This script is called with the following arguments:
50     +# Arg Name Example
51     +# $1 Interface name ppp0
52     +# $2 The tty ttyS1
53     +# $3 The link speed 38400
54     +# $4 Local IP number 12.34.56.78
55     +# $5 Peer IP number 12.34.56.99
56     +#
57     +
58     +#
59     +# The environment is cleared before executing this script
60     +# so the path must be reset
61     +#
62     +PATH=/usr/sbin:/sbin:/usr/bin:/bin
63     +export PATH
64     +
65     +# last line
66     --- ppp-2.3.3/sample/ip-up.sample Tue Jan 6 17:53:27 1998
67     +++ ppp-2.3.3/sample/ip-up Tue Jan 6 17:53:27 1998
68     @@ -0,0 +1,23 @@
69     +#!/bin/sh
70     +#
71     +# This script is run by the pppd after the link is established.
72     +# It should be used to add routes, set IP address, run the mailq
73     +# etc.
74     +#
75     +# This script is called with the following arguments:
76     +# Arg Name Example
77     +# $1 Interface name ppp0
78     +# $2 The tty ttyS1
79     +# $3 The link speed 38400
80     +# $4 Local IP number 12.34.56.78
81     +# $5 Peer IP number 12.34.56.99
82     +#
83     +
84     +#
85     +# The environment is cleared before executing this script
86     +# so the path must be reset
87     +#
88     +PATH=/usr/sbin:/sbin:/usr/bin:/bin
89     +export PATH
90     +
91     +# last line
92     --- ppp-2.3.3/sample/options.sample Tue Jan 6 17:53:27 1998
93     +++ ppp-2.3.3/sample/options Tue Jan 6 17:53:27 1998
94     @@ -0,0 +1,153 @@
95     +# /etc/ppp/options
96     +
97     +# The name of this server. Often, the FQDN is used here.
98     +#name <host>
99     +
100     +# Enforce the use of the hostname as the name of the local system for
101     +# authentication purposes (overrides the name option).
102     +usehostname
103     +
104     +# If no local IP address is given, pppd will use the first IP address
105     +# that belongs to the local hostname. If "noipdefault" is given, this
106     +# is disabled and the peer will have to supply an IP address.
107     +noipdefault
108     +
109     +# With this option, pppd will accept the peer's idea of our local IP
110     +# address, even if the local IP address was specified in an option.
111     +#ipcp-accept-local
112     +
113     +# With this option, pppd will accept the peer's idea of its (remote) IP
114     +# address, even if the remote IP address was specified in an option.
115     +#ipcp-accept-remote
116     +
117     +# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
118     +# Two Servers can be remotely configured
119     +#ms-dns 192.168.1.1
120     +#ms-dns 192.168.1.2
121     +
122     +# Specify which WINS Servers the incoming connection Win95 or WinNT should use
123     +#wins-addr 192.168.1.50
124     +#wins-addr 192.168.1.51
125     +
126     +# enable this on a server that already has a permanent default route
127     +#nodefaultroute
128     +
129     +# Run the executable or shell command specified after pppd has terminated
130     +# the link. This script could, for example, issue commands to the modem
131     +# to cause it to hang up if hardware modem control signals were not
132     +# available.
133     +# If mgetty is running, it will reset the modem anyway. So there is no need
134     +# to do it here.
135     +#disconnect "chat -- \d+++\d\c OK ath0 OK"
136     +
137     +# Increase debugging level (same as -d). The debug output is written
138     +# to syslog LOG_LOCAL2.
139     +debug
140     +
141     +# Enable debugging code in the kernel-level PPP driver. The argument n
142     +# is a number which is the sum of the following values: 1 to enable
143     +# general debug messages, 2 to request that the contents of received
144     +# packets be printed, and 4 to request that the contents of transmitted
145     +# packets be printed.
146     +#kdebug n
147     +
148     +# Require the peer to authenticate itself before allowing network
149     +# packets to be sent or received.
150     +# Please do not disable this setting. It is expected to be standard in
151     +# future releases of pppd. Use the call option (see manpage) to disable
152     +# authentication for specific peers.
153     +#auth
154     +
155     +# authentication can either be pap or chap. As most people only want to
156     +# use pap, you can also disable chap:
157     +#require-pap
158     +#refuse-chap
159     +
160     +# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
161     +# on the serial port.
162     +crtscts
163     +
164     +# Specifies that pppd should use a UUCP-style lock on the serial device
165     +# to ensure exclusive access to the device.
166     +lock
167     +
168     +# Use the modem control lines.
169     +modem
170     +
171     +# async character map -- 32-bit hex; each bit is a character
172     +# that needs to be escaped for pppd to receive it. 0x00000001
173     +# represents '\x01', and 0x80000000 represents '\x1f'.
174     +# To allow pppd to work over a rlogin/telnet connection, ou should escape
175     +# XON (^Q), XOFF (^S) and ^]: (The peer should use "escape ff".)
176     +#asyncmap 200a0000
177     +asyncmap 0
178     +
179     +# Specifies that certain characters should be escaped on transmission
180     +# (regardless of whether the peer requests them to be escaped with its
181     +# async control character map). The characters to be escaped are
182     +# specified as a list of hex numbers separated by commas. Note that
183     +# almost any character can be specified for the escape option, unlike
184     +# the asyncmap option which only allows control characters to be
185     +# specified. The characters which may not be escaped are those with hex
186     +# values 0x20 - 0x3f or 0x5e.
187     +#escape 11,13,ff
188     +
189     +# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
190     +# will ask the peer to send packets of no more than <n> bytes. The
191     +# minimum MRU value is 128. The default MRU value is 1500. A value of
192     +# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
193     +# bytes of data).
194     +#mru 542
195     +
196     +# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
197     +# requests a smaller value via MRU negotiation, pppd will request that
198     +# the kernel networking code send data packets of no more than n bytes
199     +# through the PPP network interface.
200     +#mtu <n>
201     +
202     +# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
203     +# notation (e.g. 255.255.255.0).
204     +#netmask 255.255.255.0
205     +
206     +# Don't fork to become a background process (otherwise pppd will do so
207     +# if a serial device is specified).
208     +nodetach
209     +
210     +# Set the assumed name of the remote system for authentication purposes
211     +# to <n>.
212     +#remotename <n>
213     +
214     +# Add an entry to this system's ARP [Address Resolution Protocol]
215     +# table with the IP address of the peer and the Ethernet address of this
216     +# system. {proxyarp,noproxyarp}
217     +proxyarp
218     +
219     +# Use the system password database for authenticating the peer using
220     +# PAP. Note: mgetty already provides this option. If this is specified
221     +# then dialin from users using a script under Linux to fire up ppp wont work.
222     +#login
223     +
224     +# If this option is given, pppd will send an LCP echo-request frame to
225     +# the peer every n seconds. Under Linux, the echo-request is sent when
226     +# no packets have been received from the peer for n seconds. Normally
227     +# the peer should respond to the echo-request by sending an echo-reply.
228     +# This option can be used with the lcp-echo-failure option to detect
229     +# that the peer is no longer connected.
230     +lcp-echo-interval 30
231     +
232     +# If this option is given, pppd will presume the peer to be dead if n
233     +# LCP echo-requests are sent without receiving a valid LCP echo-reply.
234     +# If this happens, pppd will terminate the connection. Use of this
235     +# option requires a non-zero value for the lcp-echo-interval parameter.
236     +# This option can be used to enable pppd to terminate after the physical
237     +# connection has been broken (e.g., the modem has hung up) in
238     +# situations where no hardware modem control lines are available.
239     +lcp-echo-failure 4
240     +
241     +# Specifies that pppd should disconnect if the link is idle for n seconds.
242     +idle 600
243     +
244     +# Disable the IPXCP and IPX protocols.
245     +noipx
246     +
247     +# ---<End of File>---
248     --- ppp-2.3.3/sample/options.ttyXX.sample Tue Jan 6 17:53:27 1998
249     +++ ppp-2.3.3/sample/options.ttyXX Tue Jan 6 17:53:27 1998
250     @@ -0,0 +1,14 @@
251     +# If you need to set up multiple serial lines then copy this file to
252     +# options.<ttyname> for each tty with a modem on it.
253     +#
254     +# The options.tty file will assign an IP address to each PPP connection
255     +# as it comes up. They must all be distinct!
256     +#
257     +# Example:
258     +# options.ttyS1 for com2 under DOS.
259     +#
260     +# Edit the following line so that the first IP address
261     +# mentioned is the ip address of the serial port while the second
262     +# is the IP address of your host
263     +#
264     +hostname-s1:hostname
265     --- ppp-2.3.3/sample/pap-secrets.sample Tue Jan 6 17:53:27 1998
266     +++ ppp-2.3.3/sample/pap-secrets Tue Jan 6 17:53:27 1998
267     @@ -0,0 +1,28 @@
268     +# Secrets for authentication using PAP
269     +# client server secret IP addresses
270     +
271     +# OUTBOUND CONNECTIONS
272     +# Here you should add your userid password to connect to your providers via
273     +# pap. The * means that the password is to be used for ANY host you connect
274     +# to. Thus you do not have to worry about the foreign machine name. Just
275     +# replace password with your password.
276     +# If you have different providers with different passwords then you better
277     +# remove the following line.
278     +#hostname * password
279     +
280     +# INBOUND CONNECTIONS
281     +#client hostname <password> 192.168.1.1
282     +
283     +# If you add "auth login -chap +pap" to /etc/mgetty+sendfax/login.config,
284     +# all users in /etc/passwd can use their password for pap-authentication.
285     +#
286     +# Every regular user can use PPP and has to use passwords from /etc/passwd
287     +#* hostname ""
288     +# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
289     +# other accounts that should not be able to use pppd! Replace hostname
290     +# with your local hostname.
291     +#guest hostname "*" -
292     +#master hostname "*" -
293     +#root hostname "*" -
294     +#support hostname "*" -
295     +#stats hostname "*" -

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed