1xl2tpd.conf(5) xl2tpd.conf(5)
2
3
4
6 xl2tpd.conf - L2TPD configuration file
7
9 The xl2tpd.conf file contains configuration information for xl2tpd, the
10 implementation of l2tp protocol.
11
12 The configuration file is composed of sections and parameters. Each
13 section has a given name which will be used when using the configura‐
14 tion FIFO (normally /var/run/xl2tpd/l2tp-control). See xl2tpd.8 for
15 more details.
16
17 The specific given name default will specify parameters applicable for
18 all the following sections.
19
21 auth file
22 Specify where to find the authentication file used to authenti‐
23 cate l2tp tunnels. The default is /etc/xl2tpd/l2tp-secrets.
24
25
26 ipsec saref
27 Use IPsec Security Association tracking. When this is enabled,
28 packets received by xl2tpd should have to extra fields (refme
29 and refhim) which allows tracking of multiple clients using the
30 same internal NATed IP address, and allows tracking of multiple
31 clients behind the same NAT router. This needs to be supported
32 by the kernel. Currently, this only works with Openswan KLIPS in
33 "mast" mode. (see http://www.openswan.org/)
34
35 Set this to yes and the system will provide proper SAref values
36 in the recvmsg() calls.
37
38 Values can be yes or no. The default is no.
39
40
41 saref refinfo
42 When using IPsec Security Association trackinng, a new setsock‐
43 opt is used. Since this is not (yet?) an official Linux kernel
44 option, we got bumped. Openswan upto 2.6.35 for linux kernels
45 up to 2.6.35 used a saref num of 22. Linux 3.6.36+ uses 22 for
46 IP_NODEFRAG. We moved our IP_IPSEC_REFINFO to 30. If not set,
47 the default is to use 30. For older SAref patched kernels, use
48 22.
49
50
51 listen-addr
52 The IP address of the interface on which the daemon listens. By
53 default, it listens on INADDR_ANY (0.0.0.0), meaning it listens
54 on all interfaces.
55
56
57 port Specify which UDP port xl2tpd should use. The default is 1701.
58
59
60 access control
61 If set to yes, the xl2tpd process will only accept connections
62 from peers addresses specified in the following sections. The
63 default is no.
64
65
66 debug avp
67 Set this to yes to enable syslog output of L2TP AVP debugging
68 information.
69
70
71 debug network
72 Set this to yes to enable syslog output of network debugging
73 information.
74
75
76 debug packet
77 Set this to yes to enable printing of L2TP packet debugging
78 information. Note: Output goes to STDOUT, so use this only in
79 conjunction with the -D command line option.
80
81
82 debug state
83 Set this to yes to enable syslog output of FSM debugging infor‐
84 mation.
85
86
87 debug tunnel
88 Set this to yes to enable syslog output of tunnel debugging
89 information.
90
91
93 exclusive
94 If set to yes, only one control tunnel will be allowed to be
95 built between 2 peers. CHECK
96
97
98 (no) ip range
99 Specify the range of ip addresses the LNS will assign to the
100 connecting LAC PPP tunnels. Multiple ranges can be defined.
101 Using the 'no' statement disallows the use of that particular
102 range. Ranges are defined using the format IP - IP (example:
103 1.1.1.1 - 1.1.1.10). Note that either at least one ip range
104 option must be given, or you must set assign ip to no.
105
106
107 assign ip
108 Set this to no if xl2tpd should not assign IP addresses out of
109 the pool defined with the ip range option. This can be useful
110 if you have some other means to assign IP addresses, e. g. a
111 pppd that supports RADIUS AAA.
112
113
114
115 (no) lac
116 Specify the ip addresses of LAC's which are allowed to connect
117 to xl2tpd acting as a LNS. The format is the same as the ip
118 range option.
119
120
121 hidden bit
122 If set to yes, xl2tpd will use the AVP hiding feature of L2TP.
123 To get more information about hidden AVP's and AVP in general,
124 refer to rfc2661 (add URL?)
125
126
127 local ip
128 Use the following IP as xl2tpd's own ip address.
129
130
131 local ip range
132 Specify the range of addresses the LNS will assign as the local
133 address to connecting LAC PPP tunnels. This option is mutually
134 exclusive with the local ip option and is useful in cases where
135 it is desirable to have a unique IP address for each tunnel.
136 Specify the range value exactly like the ip range option. Note
137 that the assign ip option has no effect on this option.
138
139
140 length bit
141 If set to yes, the length bit present in the l2tp packet payload
142 will be used.
143
144
145 (refuse | require) chap
146 Will require or refuse the remote peer to get authenticated via
147 CHAP for the ppp authentication.
148
149
150 (refuse | require) pap
151 Will require or refuse the remote peer to get authenticated via
152 PAP for the ppp authentication.
153
154
155 (refuse | require) authentication
156 Will require or refuse the remote peer to authenticate itself.
157
158
159 unix authentication
160 If set to yes, /etc/passwd will be used for remote peer ppp
161 authentication.
162
163
164 hostname
165 Will report this as the xl2tpd hostname in negotiation.
166
167
168 ppp debug
169 This will enable the debug for pppd.
170
171
172 pass peer
173 Pass the peer's IP address to pppd as ipparam. Enabled by
174 default.
175
176
177 pppoptfile
178 Specify the path for a file which contains pppd configuration
179 parameters to be used.
180
181
182 call rws
183 This option is deprecated and no longer functions. It used to
184 be used to define the flow control window size for individual
185 L2TP calls or sessions. The L2TP standard (RFC2661) no longer
186 defines flow control or window sizes on calls or sessions.
187
188
189 tunnel rws
190 This defines the window size of the control channel. The window
191 size is defined as the number of outstanding unacknowledged
192 packets, not as a number of bytes.
193
194
195 flow bits
196 If set to yes, sequence numbers will be included in the communi‐
197 cation. The feature to use sequence numbers in sessions is cur‐
198 rently broken and does not function.
199
200
201 challenge
202 If set to yes, use challenge authentication to authenticate
203 peer.
204
205
206 rx bps If set, the receive bandwidth maximum will be set to this value
207
208
209 tx bps If set, the transmit bandwidth maximum will be set to this value
210
211
213 The following are LAC specific configuration flags. Most of those
214 described in the LNS section may be used in a LAC context, where it
215 makes common sense (essentially l2tp protocols tuning flags and authen‐
216 tication / ppp related ones).
217
218
219 lns Set the dns name or ip address of the LNS to connect to.
220
221
222 autodial
223 If set to yes, xl2tpd will automatically dial the LAC during
224 startup.
225
226
227 redial If set to yes, xl2tpd will attempt to redial if the call get
228 disconnected. Note that, if enabled, xl2tpd will keep passwords
229 in memory: a potential security risk.
230
231
232 redial timeout
233 Wait X seconds before redial. The redial option must be set to
234 yes to use this option. Defaults to 30 seconds.
235
236
237 max redials
238 Will give up redial tries after X attempts.
239
240
242 /etc/xl2tpd/xl2tpd.conf /etc/xl2tpd/l2tp-secrets
243 /var/run/xl2tpd/l2tp-control
244
246 Please address bugs and comment to xl2tpdv@lists.xelerance.com
247
249 xl2tpd(8)
250
252 Forked from xl2tpd by Xelerance (https://www.xelerance.com/soft‐
253 ware/xl2tpd/)
254
255 Michael Richardson <mcr@xelerance.com> Paul Wouters <paul@xeler‐
256 ance.com>
257
258 Many thanks to Jacco de Leeuw <jacco2@dds.nl> for maintaining l2tpd.
259
260
261 Previous development was hosted at sourceforge (http://www.source‐
262 forge.net/projects/l2tpd) by:
263
264 Scott Balmos <sbalmos@iglou.com>
265 David Stipp <dstipp@one.net>
266 Jeff McAdams <jeffm@iglou.com>
267
268
269 Based off of l2tpd version 0.60
270 Copyright (C)1998 Adtran, Inc.
271 Mark Spencer <markster@marko.net>
272
273
274
275Jean-Francois Dive xl2tpd.conf(5)