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