… | |
… | |
122 | .\} |
122 | .\} |
123 | .rm #[ #] #H #V #F C |
123 | .rm #[ #] #H #V #F C |
124 | .\" ======================================================================== |
124 | .\" ======================================================================== |
125 | .\" |
125 | .\" |
126 | .IX Title "GVPE.CONF 5" |
126 | .IX Title "GVPE.CONF 5" |
127 | .TH GVPE.CONF 5 "2011-02-12" "2.24" "GNU Virtual Private Ethernet" |
127 | .TH GVPE.CONF 5 "2012-07-06" "2.24" "GNU Virtual Private Ethernet" |
128 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
128 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes |
129 | .\" way too many mistakes in technical documents. |
129 | .\" way too many mistakes in technical documents. |
130 | .if n .ad l |
130 | .if n .ad l |
131 | .nh |
131 | .nh |
132 | .SH "NAME" |
132 | .SH "NAME" |
… | |
… | |
158 | = value\*(C'\fR pairs. Empty lines are ignored. Comments start with a \f(CW\*(C`#\*(C'\fR and |
158 | = value\*(C'\fR pairs. Empty lines are ignored. Comments start with a \f(CW\*(C`#\*(C'\fR and |
159 | extend to the end of the line. They can be used on their own lines, or |
159 | extend to the end of the line. They can be used on their own lines, or |
160 | after any directives. Whitespace is allowed around the \f(CW\*(C`=\*(C'\fR sign or after |
160 | after any directives. Whitespace is allowed around the \f(CW\*(C`=\*(C'\fR sign or after |
161 | values, but not within the variable names or values themselves. |
161 | values, but not within the variable names or values themselves. |
162 | .PP |
162 | .PP |
163 | The only exception to the above is the \*(L"on\*(R" directive that can prefix any |
163 | All settings are applied \*(L"in order\*(R", that is, later settings of the same |
164 | \&\f(CW\*(C`name = value\*(C'\fR setting and will only \*(L"execute\*(R" it on the named node, or |
164 | variable overwrite earlier ones. |
165 | (if the nodename starts with \*(L"!\*(R") on all nodes except the named one. |
|
|
166 | .PP |
165 | .PP |
|
|
166 | The only exceptions to the above are the \*(L"on\*(R" and \*(L"include\*(R" directives: |
|
|
167 | .IP "on nodename ..." 4 |
|
|
168 | .IX Item "on nodename ..." |
|
|
169 | .PD 0 |
|
|
170 | .IP "on !nodename ..." 4 |
|
|
171 | .IX Item "on !nodename ..." |
|
|
172 | .PD |
|
|
173 | You can prefix any configuration directive with \f(CW\*(C`on\*(C'\fR and a nodename. \s-1GVPE\s0 |
|
|
174 | will will only \*(L"execute\*(R" it on the named node, or (if the nodename starts |
|
|
175 | with \f(CW\*(C`!\*(C'\fR) on all nodes except the named one. |
|
|
176 | .Sp |
167 | For example, set the \s-1MTU\s0 to \f(CW1450\fR everywhere, loglevel to \f(CW\*(C`noise\*(C'\fR on |
177 | Example: set the \s-1MTU\s0 to \f(CW1450\fR everywhere, \f(CW\*(C`loglevel\*(C'\fR to \f(CW\*(C`noise\*(C'\fR on |
168 | branch1, and connect to \f(CW\*(C`ondemand\*(C'\fR everywhere but on branch2: |
178 | \&\f(CW\*(C`branch1\*(C'\fR, and \f(CW\*(C`connect\*(C'\fR to \f(CW\*(C`ondemand\*(C'\fR everywhere but on branch2. |
169 | .PP |
179 | .Sp |
170 | .Vb 3 |
180 | .Vb 3 |
171 | \& mtu = 1450 |
181 | \& mtu = 1450 |
172 | \& on branch1 loglevel = noise |
182 | \& on branch1 loglevel = noise |
173 | \& on !branch2 connect = ondemand |
183 | \& on !branch2 connect = ondemand |
174 | .Ve |
184 | .Ve |
175 | .PP |
185 | .IP "include relative-or-absolute-path" 4 |
176 | All settings are applied \*(L"in order\*(R", that is, later settings of the same |
186 | .IX Item "include relative-or-absolute-path" |
177 | variable overwrite earlier ones. |
187 | Reads the specified file (the path must not contain whitespace or \f(CW\*(C`=\*(C'\fR |
|
|
188 | characters) and evaluate all config directives in it as if they were |
|
|
189 | spelled out in place of the \f(CW\*(C`include\*(C'\fR directive. |
|
|
190 | .Sp |
|
|
191 | The path is a printf format string, that is, you must escape any \f(CW\*(C`%\*(C'\fR |
|
|
192 | by doubling it, and you can have a single \f(CW%s\fR inside, which will be |
|
|
193 | replaced by the current nodename. |
|
|
194 | .Sp |
|
|
195 | Relative paths are interpreted relative to the \s-1GVPE\s0 config directory. |
|
|
196 | .Sp |
|
|
197 | Example: include the file \fIlocal.conf\fR in the config directory on every |
|
|
198 | node. |
|
|
199 | .Sp |
|
|
200 | .Vb 1 |
|
|
201 | \& include local.conf |
|
|
202 | .Ve |
|
|
203 | .Sp |
|
|
204 | Example: include a file \fIconf/\fRnodename\fI.conf\fR |
|
|
205 | .Sp |
|
|
206 | .Vb 1 |
|
|
207 | \& include conf/%s.conf |
|
|
208 | .Ve |
178 | .SH "ANATOMY OF A CONFIG FILE" |
209 | .SH "ANATOMY OF A CONFIG FILE" |
179 | .IX Header "ANATOMY OF A CONFIG FILE" |
210 | .IX Header "ANATOMY OF A CONFIG FILE" |
180 | Usually, a config file starts with a few global settings (like the \s-1UDP\s0 |
211 | Usually, a config file starts with a few global settings (like the \s-1UDP\s0 |
181 | port to listen on), followed by node-specific sections that begin with a |
212 | port to listen on), followed by node-specific sections that begin with a |
182 | \&\f(CW\*(C`node = nickname\*(C'\fR line. |
213 | \&\f(CW\*(C`node = nickname\*(C'\fR line. |
… | |
… | |
202 | (default: \f(CW127.0.0.1\fR, changing it is highly recommended). |
233 | (default: \f(CW127.0.0.1\fR, changing it is highly recommended). |
203 | .IP "dns-forw-port = port-number" 4 |
234 | .IP "dns-forw-port = port-number" 4 |
204 | .IX Item "dns-forw-port = port-number" |
235 | .IX Item "dns-forw-port = port-number" |
205 | The port where the \f(CW\*(C`dns\-forw\-host\*(C'\fR is to be contacted (default: \f(CW53\fR, |
236 | The port where the \f(CW\*(C`dns\-forw\-host\*(C'\fR is to be contacted (default: \f(CW53\fR, |
206 | which is fine in most cases). |
237 | which is fine in most cases). |
|
|
238 | .IP "dns-case-preserving = yes|true|on | no|false|off" 4 |
|
|
239 | .IX Item "dns-case-preserving = yes|true|on | no|false|off" |
|
|
240 | Sets whether the \s-1DNS\s0 transport forwarding server preserves case (\s-1DNS\s0 |
|
|
241 | servers have to, but some access systems are even more broken than others) |
|
|
242 | (default: true). |
|
|
243 | .Sp |
|
|
244 | Normally, when the forwarding server changes the case of domain names then |
|
|
245 | \&\s-1GVPE\s0 will automatically set this to false. |
207 | .IP "dns-max-outstanding = integer-number-of-requests" 4 |
246 | .IP "dns-max-outstanding = integer-number-of-requests" 4 |
208 | .IX Item "dns-max-outstanding = integer-number-of-requests" |
247 | .IX Item "dns-max-outstanding = integer-number-of-requests" |
209 | The maximum number of outstanding \s-1DNS\s0 transport requests |
248 | The maximum number of outstanding \s-1DNS\s0 transport requests |
210 | (default: \f(CW100\fR). \s-1GVPE\s0 will never issue more requests then the given |
249 | (default: \f(CW100\fR). \s-1GVPE\s0 will never issue more requests then the given |
211 | limit without receiving replies. In heavily overloaded situations it might |
250 | limit without receiving replies. In heavily overloaded situations it might |
… | |
… | |
393 | currently supported. |
432 | currently supported. |
394 | .IP "keepalive = seconds" 4 |
433 | .IP "keepalive = seconds" 4 |
395 | .IX Item "keepalive = seconds" |
434 | .IX Item "keepalive = seconds" |
396 | Sets the keepalive probe interval in seconds (default: \f(CW60\fR). After this |
435 | Sets the keepalive probe interval in seconds (default: \f(CW60\fR). After this |
397 | many seconds of inactivity the daemon will start to send keepalive probe |
436 | many seconds of inactivity the daemon will start to send keepalive probe |
398 | every 3 seconds until it receives a reply from the other end. If no reply |
437 | every 3 seconds until it receives a reply from the other end. If no reply |
399 | is received within 15 seconds, the peer is considered unreachable and the |
438 | is received within 15 seconds, the peer is considered unreachable and the |
400 | connection is closed. |
439 | connection is closed. |
401 | .IP "loglevel = noise|trace|debug|info|notice|warn|error|critical" 4 |
440 | .IP "loglevel = noise|trace|debug|info|notice|warn|error|critical" 4 |
402 | .IX Item "loglevel = noise|trace|debug|info|notice|warn|error|critical" |
441 | .IX Item "loglevel = noise|trace|debug|info|notice|warn|error|critical" |
403 | Set the logging level. Connection established messages are logged at level |
442 | Set the logging level. Connection established messages are logged at level |
… | |
… | |
614 | when gvpe was compiled using the \f(CW\*(C`\-\-enable\-tcp\*(C'\fR option. |
653 | when gvpe was compiled using the \f(CW\*(C`\-\-enable\-tcp\*(C'\fR option. |
615 | .IP "enable-udp = yes|true|on | no|false|off" 4 |
654 | .IP "enable-udp = yes|true|on | no|false|off" 4 |
616 | .IX Item "enable-udp = yes|true|on | no|false|off" |
655 | .IX Item "enable-udp = yes|true|on | no|false|off" |
617 | See \fIgvpe.protocol\fR\|(7) for a description of the \s-1UDP\s0 transport protocol. |
656 | See \fIgvpe.protocol\fR\|(7) for a description of the \s-1UDP\s0 transport protocol. |
618 | .Sp |
657 | .Sp |
619 | Enable the UDPv4 transport using the \f(CW\*(C`udp\-port\*(C'\fR port (default: \f(CW\*(C`no\*(C'\fR, |
658 | Enable the UDPv4 transport using the \f(CW\*(C`udp\-port\*(C'\fR port (default: \f(CW\*(C`no\*(C'\fR). |
620 | unless no other protocol is enabled for a node, in which case this |
|
|
621 | protocol is enabled automatically). |
|
|
622 | .Sp |
|
|
623 | \&\s-1NOTE:\s0 Please specify \f(CW\*(C`enable\-udp = yes\*(C'\fR if you want to use it even though |
|
|
624 | it might get switched on automatically, as some future version might |
|
|
625 | default to another default protocol. |
|
|
626 | .IP "hostname = hostname | ip [can not be defaulted]" 4 |
659 | .IP "hostname = hostname | ip [can not be defaulted]" 4 |
627 | .IX Item "hostname = hostname | ip [can not be defaulted]" |
660 | .IX Item "hostname = hostname | ip [can not be defaulted]" |
628 | Forces the address of this node to be set to the given \s-1DNS\s0 hostname or \s-1IP\s0 |
661 | Forces the address of this node to be set to the given \s-1DNS\s0 hostname or \s-1IP\s0 |
629 | address. It will be resolved before each connect request, so dyndns should |
662 | address. It will be resolved before each connect request, so dyndns should |
630 | work fine. If this setting is not specified and a router is available, |
663 | work fine. If this setting is not specified and a router is available, |