1 .\" Copyright (C) 1997 by Joerg Wunsch, Dresden
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
14 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
25 .\" $FreeBSD: src/sbin/spppcontrol/spppcontrol.8,v 1.6.2.6 2003/02/23 22:12:39 trhodes Exp $
32 .Nd display or set parameters for an sppp interface
37 .Op Ar parameter Ns Op Li = Ns Ar value
42 driver might require a number of additional arguments or optional
43 parameters besides the settings that can be adjusted with
45 These are things like authentication protocol parameters, but also
46 other tunable configuration variables.
49 utility can be used to display the current settings, or adjust these
50 parameters as required.
54 is being called, at least the parameter
56 needs to be specified, naming the interface for which the settings
57 are to be performed or displayed.
62 to see which interfaces are available.
64 If no other parameter is given,
66 will just list the current settings for
69 The reported settings include the current PPP phase the
70 interface is in, which can be one of the names
77 If an authentication protocol is configured for the interface, the
78 name of the protocol to be used, as well as the system name to be used
79 or expected will be displayed, plus any possible options to the
80 authentication protocol if applicable.
81 Note that the authentication
82 secrets (sometimes also called
84 are not being returned by the underlying system call, and are thus not
87 If any additional parameter is supplied, superuser privileges are
88 required, and the command works in the
91 This is normally done quietly, unless the option
93 is also enabled, which will cause a final printout of the settings as
94 described above once all other actions have been taken.
96 mode will be rejected if the interface is currently in any other phase
99 Note that you can force an interface into
106 The currently supported parameters include:
107 .Bl -tag -offset indent -width indent
108 .It Va authproto Ns Li = Ns Ar protoname
109 Set both, his and my authentication protocol to
111 The protocol name can be one of
116 In the latter case, the use of an authentication protocol will be
117 turned off for the named interface.
118 This has the side-effect of
119 clearing the other authentication-related parameters for this
120 interface as well (i.e. system name and authentication secret will
122 .It Va myauthproto Ns Li = Ns Ar protoname
123 Same as above, but only for my end of the link.
125 protocol when remote is authenticator, and I am the peer required to
127 .It Va hisauthproto Ns Li = Ns Ar protoname
128 Same as above, but only for his end of the link.
129 .It Va myauthname Ns Li = Ns Ar name
130 Set my system name for the authentication protocol.
131 .It Va hisauthname Ns Li = Ns Ar name
132 Set his system name for the authentication protocol.
134 will only be used as a hint, causing a warning message if remote did
135 supply a different name.
136 For PAP, it's the name remote must use to
137 authenticate himself (in connection with his secret).
138 .It Va myauthsecret Ns Li = Ns Ar secret
139 Set my secret (key, password) for use in the authentication phase.
140 For CHAP, this will be used to compute the response hash value, based
141 on remote's challenge.
142 For PAP, it will be transmitted as plain text
143 together with the system name.
144 Don't forget to quote the secrets from
145 the shell if they contain shell metacharacters (or white space).
146 .It Va myauthkey Ns Li = Ns Ar secret
148 .It Va hisauthsecret Ns Li = Ns Ar secret
149 Same as above, to be used if we are an authenticator and the remote peer
150 needs to authenticate.
151 .It Va hisauthkey Ns Li = Ns Va secret
154 Require remote to authenticate himself only when he's calling in, but
155 not when we are caller.
156 This is required for some peers that do not
157 implement the authentication protocols symmetrically (like Ascend
158 routers, for example).
162 Require remote to always authenticate, regardless of which side is
164 This is the default, and will not be explicitly
169 Only meaningful with CHAP.
170 Do not re-challenge peer once the initial
171 CHAP handshake was successful.
172 Used to work around broken peer
173 implementations that can't grok being re-challenged once the
176 With CHAP, send re-challenges at random intervals while the connection
178 (The intervals are currently in the range of 300
179 through approximately 800 seconds.)
180 This is the default, and will not
181 be explicitly displayed in the
184 .It Va lcp-timeout Ns Li = Ns Ar timeout-value
185 Allows to change the value of the LCP restart timer.
186 Values are specified in milliseconds.
187 The value must be between 10 and 20000 ms,
188 defaulting to 3000 ms.
190 Enable negotiation of Van Jacobsen header compression.
191 (Enabled by default.)
193 Disable negotiation of Van Jacobsen header compression.
195 Enable negotiation of the IPv6 network control protocol.
196 (Enabled by default if the kernel has IPv6 enabled.)
198 Disable negotiation of the IPv6 network control protocol.
199 Since every IPv4 interface in an IPv6-enabled kernel automatically gets an IPv6
200 address assigned, this option provides for a way to administratively
201 prevent the link from attempting to negotiate IPv6.
202 Note that initialization of an IPv6 interface causes a multicast packet to be
203 sent, which can cause unwanted traffic costs (for dial-on-demand
210 myauthproto=chap myauthname="uriah"
211 hisauthproto=chap hisauthname="ifb-gw" norechallenge
217 Display the settings for
219 The interface is currently in
221 phase, i.e. the LCP layer is down, and no traffic is possible.
223 ends of the connection use the CHAP protocol, my end tells remote the
226 and remote is expected to authenticate by the name
228 Once the initial CHAP handshake was successful, no further CHAP
229 challenges will be transmitted.
230 There are supposedly some known CHAP
231 secrets for both ends of the link which are not being shown.
233 # spppcontrol bppp0 \e
235 myauthname=uriah myauthsecret='some secret' \e
236 hisauthname=ifb-gw hisauthsecret='another' \e
242 that could have been used to bring the interface into the state shown
243 by the previous example.
251 .%T "PPP Authentication Protocols"
255 .%A W. Simpson, Editor
256 .%T "The Point-to-Point Protocol (PPP)"
261 .%T "PPP Challenge Handshake Authentication Protocol (CHAP)"
270 The program was written by