ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/doc/gvpe.conf.5
(Generate patch)

Comparing gvpe/doc/gvpe.conf.5 (file contents):
Revision 1.15 by pcg, Tue Jun 21 08:48:03 2005 UTC vs.
Revision 1.21 by pcg, Sun Aug 10 22:18:58 2008 UTC

1.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.3 1.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
2.\" 2.\"
3.\" Standard preamble: 3.\" Standard preamble:
4.\" ======================================================================== 4.\" ========================================================================
5.de Sh \" Subsection heading 5.de Sh \" Subsection heading
6.br 6.br
23.ft R 23.ft R
24.fi 24.fi
25.. 25..
26.\" Set up some character translations and predefined strings. \*(-- will 26.\" Set up some character translations and predefined strings. \*(-- will
27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left 27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28.\" double quote, and \*(R" will give a right double quote. | will give a 28.\" double quote, and \*(R" will give a right double quote. \*(C+ will
29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to 29.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' 30.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
31.\" expand to `' in nroff, nothing in troff, for use with C<>. 31.\" nothing in troff, for use with C<>.
32.tr \(*W-|\(bv\*(Tr 32.tr \(*W-
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' 33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34.ie n \{\ 34.ie n \{\
35. ds -- \(*W- 35. ds -- \(*W-
36. ds PI pi 36. ds PI pi
37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
127.\} 127.\}
128.rm #[ #] #H #V #F C 128.rm #[ #] #H #V #F C
129.\" ======================================================================== 129.\" ========================================================================
130.\" 130.\"
131.IX Title "GVPE.CONF 5" 131.IX Title "GVPE.CONF 5"
132.TH GVPE.CONF 5 "2005-06-21" "1.9" "GNU Virtual Private Ethernet" 132.TH GVPE.CONF 5 "2008-08-10" "2.2" "GNU Virtual Private Ethernet"
133.SH "NAME" 133.SH "NAME"
134gvpe.conf \- configuration file for the GNU VPE daemon 134gvpe.conf \- configuration file for the GNU VPE daemon
135.SH "SYNOPSIS" 135.SH "SYNOPSIS"
136.IX Header "SYNOPSIS" 136.IX Header "SYNOPSIS"
137.Vb 3 137.Vb 3
138\& udp-port = 407 138\& udp\-port = 407
139\& mtu = 1492 139\& mtu = 1492
140\& ifname = vpn0 140\& ifname = vpn0
141.Ve 141.Ve
142.PP 142.PP
143.Vb 2 143.Vb 2
146.Ve 146.Ve
147.PP 147.PP
148.Vb 3 148.Vb 3
149\& node = branch2 149\& node = branch2
150\& hostname = www.example.net 150\& hostname = www.example.net
151\& udp-port = 500 # this host uses a different udp-port 151\& udp\-port = 500 # this host uses a different udp\-port
152.Ve 152.Ve
153.PP 153.PP
154.Vb 2 154.Vb 2
155\& node = branch3 155\& node = branch3
156\& connect = ondemand 156\& connect = ondemand
181listen on), followed by node-specific sections that begin with a \f(CW\*(C`node = 181listen on), followed by node-specific sections that begin with a \f(CW\*(C`node =
182nickname\*(C'\fR line. 182nickname\*(C'\fR line.
183.PP 183.PP
184Every node that is part of the network must have a section that starts 184Every node that is part of the network must have a section that starts
185with \f(CW\*(C`node = nickname\*(C'\fR. The number and order of the nodes is important 185with \f(CW\*(C`node = nickname\*(C'\fR. The number and order of the nodes is important
186and must be the same on all hosts. It is not uncommon for node sections to 186and must be the same on all nodes. It is not uncommon for node sections to
187be completely empty \- if the default values are right. 187be completely empty \- if the default values are right.
188.PP 188.PP
189Node-specific settings can be used at any time. If used before the first 189Node-specific settings can be used at any time. If used before the first
190node section they will set the default values for all following nodes. 190node section they will set the default values for all following nodes.
191.SH "CONFIG VARIABLES" 191.SH "CONFIG VARIABLES"
245get request timeouts. The default of \f(CW8\fR means that the \s-1DNS\s0 transport 245get request timeouts. The default of \f(CW8\fR means that the \s-1DNS\s0 transport
246will resend the request when no reply has been received for longer than 246will resend the request when no reply has been received for longer than
247eight times the minimum (= expected) latency, assuming the request or 247eight times the minimum (= expected) latency, assuming the request or
248reply has been lost. 248reply has been lost.
249.Sp 249.Sp
250For congested links a higher value might be necessary (e.g. \f(CW30\fR). If the 250For congested links a higher value might be necessary (e.g. \f(CW30\fR). If
251link is very stable lower values (e.g. \f(CW2\fR) might work nicely. Values 251the link is very stable lower values (e.g. \f(CW2\fR) might work
252near or below \f(CW1\fR makes no sense whatsoever. 252nicely. Values near or below \f(CW1\fR makes no sense whatsoever.
253.Sp 253.Sp
254The default should be working ok for most links. 254The default should be working ok for most links but will result in low
255throughput if packet loss is high.
255.IP "if-up = relative-or-absolute-path" 4 256.IP "if-up = relative-or-absolute-path" 4
256.IX Item "if-up = relative-or-absolute-path" 257.IX Item "if-up = relative-or-absolute-path"
257Sets the path of a script that should be called immediately after the 258Sets the path of a script that should be called immediately after the
258network interface is initialized (but not neccessarily up). The following 259network interface is initialized (but not neccessarily up). The following
259environment variables are passed to it (the values are just examples). 260environment variables are passed to it (the values are just examples).
276\&\s-1OS\s0 name in lowercase) that this \s-1GVPE\s0 was configured for. Can be used to 277\&\s-1OS\s0 name in lowercase) that this \s-1GVPE\s0 was configured for. Can be used to
277select the correct syntax to use for network-related commands. 278select the correct syntax to use for network-related commands.
278.IP "MTU=1436" 4 279.IP "MTU=1436" 4
279.IX Item "MTU=1436" 280.IX Item "MTU=1436"
280The \s-1MTU\s0 to set the interface to. You can use lower values (if done 281The \s-1MTU\s0 to set the interface to. You can use lower values (if done
281consistently on all hosts), but this is usually ineffective. 282consistently on all nodes), but this is usually either inefficient or
283simply ineffective.
282.IP "NODES=5" 4 284.IP "NODES=5" 4
283.IX Item "NODES=5" 285.IX Item "NODES=5"
284The number of nodes in this \s-1GVPE\s0 network. 286The number of nodes in this \s-1GVPE\s0 network.
285.RE 287.RE
286.RS 4 288.RS 4
338the local node, try to set this to \f(CW\*(C`off\*(C'\fR and do an ifconfig down on the 340the local node, try to set this to \f(CW\*(C`off\*(C'\fR and do an ifconfig down on the
339device. 341device.
340.IP "ip-proto = numerical-ip-protocol" 4 342.IP "ip-proto = numerical-ip-protocol" 4
341.IX Item "ip-proto = numerical-ip-protocol" 343.IX Item "ip-proto = numerical-ip-protocol"
342Sets the protocol number to be used for the rawip protocol. This is a 344Sets the protocol number to be used for the rawip protocol. This is a
343global option because all hosts must use the same protocol, and since 345global option because all nodes must use the same protocol, and since
344there are no port numbers, you cannot easily run more than one gvpe 346there are no port numbers, you cannot easily run more than one gvpe
345instance using the same protocol, nor can you share the protocol with 347instance using the same protocol, nor can you share the protocol with
346other programs. 348other programs.
347.Sp 349.Sp
348The default is 47 (\s-1GRE\s0), which has a good chance of tunneling through 350The default is 47 (\s-1GRE\s0), which has a good chance of tunneling through
362Please note that gvpe will still try to resolve all hostnames in the 364Please note that gvpe will still try to resolve all hostnames in the
363configuration file, so if you are behind a proxy without access to a dns 365configuration file, so if you are behind a proxy without access to a dns
364server better use numerical \s-1IP\s0 addresses. 366server better use numerical \s-1IP\s0 addresses.
365.Sp 367.Sp
366To make best use of this option disable all protocols except tcp in your 368To make best use of this option disable all protocols except tcp in your
367config file and make sure your routers (or all other hosts) are listening 369config file and make sure your routers (or all other nodes) are listening
368on a port that the proxy allows (443, https, is a common choice). 370on a port that the proxy allows (443, https, is a common choice).
369.Sp 371.Sp
370If you have a router, connecting to it will suffice. Otherwise tcp must be 372If you have a router, connecting to it will suffice. Otherwise tcp must be
371enabled on all hosts. 373enabled on all nodes.
372.Sp 374.Sp
373Example: 375Example:
374.Sp 376.Sp
375.Vb 3 377.Vb 3
376\& http-proxy-host = proxy.example.com 378\& http\-proxy\-host = proxy.example.com
377\& http-proxy-port = 3128 # 8080 is another common choice 379\& http\-proxy\-port = 3128 # 8080 is another common choice
378\& http-proxy-auth = schmorp:grumbeere 380\& http\-proxy\-auth = schmorp:grumbeere
379.Ve 381.Ve
380.IP "http-proxy-port = proxy-tcp-port" 4 382.IP "http-proxy-port = proxy-tcp-port" 4
381.IX Item "http-proxy-port = proxy-tcp-port" 383.IX Item "http-proxy-port = proxy-tcp-port"
382The port where your proxy server listens. 384The port where your proxy server listens.
383.IP "http-proxy-auth = login:password" 4 385.IP "http-proxy-auth = login:password" 4
403maximum overhead (e.g. udp header size, encryption blocksize...) and pass 405maximum overhead (e.g. udp header size, encryption blocksize...) and pass
404this information to the \f(CW\*(C`if\-up\*(C'\fR script. 406this information to the \f(CW\*(C`if\-up\*(C'\fR script.
405.Sp 407.Sp
406Recommended values are 1500 (ethernet), 1492 (pppoe), 1472 (pptp). 408Recommended values are 1500 (ethernet), 1492 (pppoe), 1472 (pptp).
407.Sp 409.Sp
408This value must be the minimum of the mtu values of all hosts. 410This value must be the minimum of the mtu values of all nodes.
409.IP "node = nickname" 4 411.IP "node = nickname" 4
410.IX Item "node = nickname" 412.IX Item "node = nickname"
411Not really a config setting but introduces a node section. The nickname is 413Not really a config setting but introduces a node section. The nickname is
412used to select the right configuration section and must be passed as an 414used to select the right configuration section and must be passed as an
413argument to the gvpe daemon. 415argument to the gvpe daemon.
414.IP "node-up = relative-or-absolute-path" 4 416.IP "node-up = relative-or-absolute-path" 4
415.IX Item "node-up = relative-or-absolute-path" 417.IX Item "node-up = relative-or-absolute-path"
416Sets a command (default: no script) that should be called whenever a 418Sets a command (default: none) that should be called whenever a connection
417connection is established (even on rekeying operations). In addition to 419is established (even on rekeying operations). Note that node\-up/down
420scripts will be run asynchronously, but execution is serialised, so there
421will only ever be one such script running.
422.Sp
418all the variables passed to \f(CW\*(C`if\-up\*(C'\fR scripts, the following environment 423In addition to all the variables passed to \f(CW\*(C`if\-up\*(C'\fR scripts, the following
419variables will be set: 424environment variables will be set:
420.RS 4 425.RS 4
421.IP "DESTNODE=branch2" 4 426.IP "DESTNODE=branch2" 4
422.IX Item "DESTNODE=branch2" 427.IX Item "DESTNODE=branch2"
423The name of the remote node. 428The name of the remote node.
424.IP "DESTID=2" 4 429.IP "DESTID=2" 4
425.IX Item "DESTID=2" 430.IX Item "DESTID=2"
426The node id of the remote node. 431The node id of the remote node.
427.IP "DESTIP=188.13.66.8" 4 432.IP "DESTIP=188.13.66.8" 4
428.IX Item "DESTIP=188.13.66.8" 433.IX Item "DESTIP=188.13.66.8"
429The numerical \s-1IP\s0 address of the remote host (gvpe accepts connections from 434The numerical \s-1IP\s0 address of the remote node (gvpe accepts connections from
430everywhere, as long as the other host can authenticate itself). 435everywhere, as long as the other node can authenticate itself).
431.IP "DESTPORT=655 # deprecated" 4 436.IP "DESTPORT=655 # deprecated" 4
432.IX Item "DESTPORT=655 # deprecated" 437.IX Item "DESTPORT=655 # deprecated"
433The \s-1UDP\s0 port used by the other side. 438The \s-1UDP\s0 port used by the other side.
434.IP "STATE=UP" 4 439.IP "STATE=UP" 4
435.IX Item "STATE=UP" 440.IX Item "STATE=UP"
445\& #!/bin/sh 450\& #!/bin/sh
446\& { 451\& {
447\& echo update delete $DESTNODE.lowttl.example.net. a 452\& echo update delete $DESTNODE.lowttl.example.net. a
448\& echo update add $DESTNODE.lowttl.example.net. 1 in a $DESTIP 453\& echo update add $DESTNODE.lowttl.example.net. 1 in a $DESTIP
449\& echo 454\& echo
450\& } | nsupdate -d -k $CONFBASE:key.example.net. 455\& } | nsupdate \-d \-k $CONFBASE:key.example.net.
451.Ve 456.Ve
452.RE 457.RE
453.IP "node-down = relative-or-absolute-path" 4 458.IP "node-down = relative-or-absolute-path" 4
454.IX Item "node-down = relative-or-absolute-path" 459.IX Item "node-down = relative-or-absolute-path"
455Same as \f(CW\*(C`node\-up\*(C'\fR, but gets called whenever a connection is lost. 460Same as \f(CW\*(C`node\-up\*(C'\fR, but gets called whenever a connection is lost.
464be doubled. A single \f(CW%s\fR is replaced by the hostname, so you could 469be doubled. A single \f(CW%s\fR is replaced by the hostname, so you could
465use paths like \f(CW\*(C`hostkeys/%s\*(C'\fR to fetch the files at the location where 470use paths like \f(CW\*(C`hostkeys/%s\*(C'\fR to fetch the files at the location where
466\&\f(CW\*(C`gvpectrl\*(C'\fR puts them. 471\&\f(CW\*(C`gvpectrl\*(C'\fR puts them.
467.Sp 472.Sp
468Since only the private key file of the current node is used and the 473Since only the private key file of the current node is used and the
469private key file should be kept secret per-host to avoid spoofings, it is 474private key file should be kept secret per-node to avoid spoofings, it is
470not recommended to use this feature. 475not recommended to use this feature.
471.IP "rekey = seconds" 4 476.IP "rekey = seconds" 4
472.IX Item "rekey = seconds" 477.IX Item "rekey = seconds"
473Sets the rekeying interval in seconds (default: \f(CW3600\fR). Connections are 478Sets the rekeying interval in seconds (default: \f(CW3600\fR). Connections are
474reestablished every \f(CW\*(C`rekey\*(C'\fR seconds. 479reestablished every \f(CW\*(C`rekey\*(C'\fR seconds.
475.Sh "\s-1NODE\s0 \s-1SPECIFIC\s0 \s-1SETTINGS\s0" 480.Sh "\s-1NODE\s0 \s-1SPECIFIC\s0 \s-1SETTINGS\s0"
476.IX Subsection "NODE SPECIFIC SETTINGS" 481.IX Subsection "NODE SPECIFIC SETTINGS"
477The following settings are node\-specific, that is, every node can have 482The following settings are node\-specific, that is, every node can have
478different settings, even within the same gvpe instance. Settings that are 483different settings, even within the same gvpe instance. Settings that are
479executed before the first node section set the defaults, settings that are 484set before the first node section set the defaults, settings that are
480executed within a node section only apply to the given node. 485set within a node section only apply to the given node.
486.IP "allow-direct = nodename" 4
487.IX Item "allow-direct = nodename"
488Allow direct connections to this node. See \f(CW\*(C`deny\-direct\*(C'\fR for more info.
481.IP "compress = yes|true|on | no|false|off" 4 489.IP "compress = yes|true|on | no|false|off" 4
482.IX Item "compress = yes|true|on | no|false|off" 490.IX Item "compress = yes|true|on | no|false|off"
483Wether to compress data packets sent to this host (default: \f(CW\*(C`yes\*(C'\fR). 491Wether to compress data packets sent to this node (default: \f(CW\*(C`yes\*(C'\fR).
484Compression is really cheap even on slow computers and has no size 492Compression is really cheap even on slow computers and has no size
485overhead at all, so enabling this is a good idea. 493overhead at all, so enabling this is a good idea.
486.IP "connect = ondemand | never | always | disabled" 4 494.IP "connect = ondemand | never | always | disabled" 4
487.IX Item "connect = ondemand | never | always | disabled" 495.IX Item "connect = ondemand | never | always | disabled"
488Sets the connect mode (default: \f(CW\*(C`always\*(C'\fR). It can be \f(CW\*(C`always\*(C'\fR (always 496Sets the connect mode (default: \f(CW\*(C`always\*(C'\fR). It can be \f(CW\*(C`always\*(C'\fR (always
489try to establish and keep a connection to the given host), \f(CW\*(C`never\*(C'\fR 497try to establish and keep a connection to the given node), \f(CW\*(C`never\*(C'\fR
490(never initiate a connection to the given host, but accept connections), 498(never initiate a connection to the given host, but accept connections),
491\&\f(CW\*(C`ondemand\*(C'\fR (try to establish a connection on the first packet sent, and 499\&\f(CW\*(C`ondemand\*(C'\fR (try to establish a connection when there are outstanding
492take it down after the keepalive interval) or \f(CW\*(C`disabled\*(C'\fR (node is bad, 500packets in the queue and take it down after the keepalive interval) or
493don't talk to it). 501\&\f(CW\*(C`disabled\*(C'\fR (node is bad, don't talk to it).
502.Sp
503Routers will automatically be forced to \f(CW\*(C`always\*(C'\fR unless they are
504\&\f(CW\*(C`disabled\*(C'\fR, to ensure all nodes can talk to each other.
505.IP "deny-direct = nodename | *" 4
506.IX Item "deny-direct = nodename | *"
507Deny direct connections to the specified node (or all nodes when \f(CW\*(C`*\*(C'\fR
508is given). Only one node can be specified, but you can use multiple
509\&\f(CW\*(C`allow\-direct\*(C'\fR and \f(CW\*(C`deny\-direct\*(C'\fR statements. This only makes sense in
510networks with routers, as routers are required for indirect connections.
511.Sp
512Sometimes, a node cannot reach some other nodes for reasons of network
513connectivity. For example, a node behind a firewall that only allows
514conenctions to/from a single other node in the network. In this case one
515should specify \f(CW\*(C`deny\-direct = *\*(C'\fR and \f(CW\*(C`allow\-direct = othernodename\*(C'\fR (the other
516node \fImust\fR be a router for this to work).
517.Sp
518The algorithm to check wether a connection may be direct is as follows:
519.Sp
5201. Other node mentioned in a \f(CW\*(C`allow\-direct\*(C'\fR? If yes, allow the connection.
521.Sp
5222. Other node mentioned in a \f(CW\*(C`deny\-direct\*(C'\fR? If yes, deny direct connections.
523.Sp
5243. Allow the connection.
525.Sp
526That is, \f(CW\*(C`allow\-direct\*(C'\fR takes precedence over \f(CW\*(C`deny\-direct\*(C'\fR.
527.Sp
528The check is done in both directions, i.e. both nodes must allow a direct
529connection before one is attempted, so you only need to specify connect
530limitations on one node.
494.IP "dns-domain = domain-suffix" 4 531.IP "dns-domain = domain-suffix" 4
495.IX Item "dns-domain = domain-suffix" 532.IX Item "dns-domain = domain-suffix"
496The \s-1DNS\s0 domain suffix that points to the \s-1DNS\s0 tunnel server for this node. 533The \s-1DNS\s0 domain suffix that points to the \s-1DNS\s0 tunnel server for this node.
497.Sp 534.Sp
498The domain must point to a \s-1NS\s0 record that points to the \fIdns-hostname\fR, 535The domain must point to a \s-1NS\s0 record that points to the \fIdns-hostname\fR,
499i.e. 536i.e.
500.Sp 537.Sp
501.Vb 2 538.Vb 2
502\& dns-domainname = tunnel.example.net 539\& dns\-domainname = tunnel.example.net
503\& dns-hostname = tunnel-server.example.net 540\& dns\-hostname = tunnel\-server.example.net
504.Ve 541.Ve
505.Sp 542.Sp
506Corresponds to the following \s-1DNS\s0 entries in the \f(CW\*(C`example.net\*(C'\fR domain: 543Corresponds to the following \s-1DNS\s0 entries in the \f(CW\*(C`example.net\*(C'\fR domain:
507.Sp 544.Sp
508.Vb 2 545.Vb 2
509\& tunnel.example.net. NS tunnel-server.example.net. 546\& tunnel.example.net. NS tunnel\-server.example.net.
510\& tunnel-server.example.net. A 13.13.13.13 547\& tunnel\-server.example.net. A 13.13.13.13
511.Ve 548.Ve
512.IP "dns-hostname = hostname/ip" 4 549.IP "dns-hostname = hostname/ip" 4
513.IX Item "dns-hostname = hostname/ip" 550.IX Item "dns-hostname = hostname/ip"
514The address to bind the \s-1DNS\s0 tunnel socket to, similar to the \f(CW\*(C`hostname\*(C'\fR, 551The address to bind the \s-1DNS\s0 tunnel socket to, similar to the \f(CW\*(C`hostname\*(C'\fR,
515but for the \s-1DNS\s0 tunnel protocol only. Default: \f(CW0.0.0.0\fR, but that might 552but for the \s-1DNS\s0 tunnel protocol only. Default: \f(CW0.0.0.0\fR, but that might
553protocol is enabled automatically). 590protocol is enabled automatically).
554.Sp 591.Sp
555\&\s-1NOTE:\s0 Please specify \f(CW\*(C`enable\-udp = yes\*(C'\fR if you want t use it even though 592\&\s-1NOTE:\s0 Please specify \f(CW\*(C`enable\-udp = yes\*(C'\fR if you want t use it even though
556it might get switched on automatically, as some future version might 593it might get switched on automatically, as some future version might
557default to another default protocol. 594default to another default protocol.
595.IP "hostname = hostname | ip [can not be defaulted]" 4
596.IX Item "hostname = hostname | ip [can not be defaulted]"
597Forces the address of this node to be set to the given dns hostname or ip
598address. It will be resolved before each connect request, so dyndns should
599work fine. If this setting is not specified and a router is available,
600then the router will be queried for the address of this node. Otherwise,
601the connection attempt will fail.
558.IP "icmp-type = integer" 4 602.IP "icmp-type = integer" 4
559.IX Item "icmp-type = integer" 603.IX Item "icmp-type = integer"
560Sets the type value to be used for outgoing (and incoming) packets sent 604Sets the type value to be used for outgoing (and incoming) packets sent
561via the \s-1ICMP\s0 transport. 605via the \s-1ICMP\s0 transport.
562.Sp 606.Sp
579retries to establish a connection to this node. When a connection cannot 623retries to establish a connection to this node. When a connection cannot
580be established, gvpe uses exponential backoff capped at this value. It's 624be established, gvpe uses exponential backoff capped at this value. It's
581sometimes useful to set this to a much lower value (e.g. \f(CW120\fR) on 625sometimes useful to set this to a much lower value (e.g. \f(CW120\fR) on
582connections to routers that usually are stable but sometimes are down, to 626connections to routers that usually are stable but sometimes are down, to
583assure quick reconnections even after longer downtimes. 627assure quick reconnections even after longer downtimes.
628.IP "max-ttl = seconds" 4
629.IX Item "max-ttl = seconds"
630Expire packets that couldn't be sent after this many seconds
631(default: \f(CW60\fR). Gvpe will normally queue packets for a node without an
632active connection, in the hope of establishing a connection soon. This
633value specifies the maximum lifetime a packet will stay in the queue, if a
634packet gets older, it will be thrown away.
635.IP "max-queue = positive\-number>=1" 4
636.IX Item "max-queue = positive-number>=1"
637The maximum number of packets that will be queued (default: \f(CW512\fR)
638for this node. If more packets are sent then earlier packets will be
639expired. See \f(CW\*(C`max\-ttl\*(C'\fR, above.
584.IP "router-priority = 0 | 1 | positive\-number>=2" 4 640.IP "router-priority = 0 | 1 | positive\-number>=2" 4
585.IX Item "router-priority = 0 | 1 | positive-number>=2" 641.IX Item "router-priority = 0 | 1 | positive-number>=2"
586Sets the router priority of the given host (default: \f(CW0\fR, disabled). If 642Sets the router priority of the given node (default: \f(CW0\fR, disabled).
587some host tries to connect to another host without a hostname, it asks
588the router host for it's \s-1IP\s0 address. The router host is the one with the
589highest priority larger than \f(CW1\fR that is currently reachable.
590.Sp 643.Sp
591Make sure all hosts always connect (\f(CW\*(C`connect = always\*(C'\fR) to the router 644If some node tries to connect to another node but it doesn't have a
592hosts, otherwise connecting to them might be impossible. 645hostname, it asks a router node for it's \s-1IP\s0 address. The router node
646chosen is the one with the highest priority larger than \f(CW1\fR that is
647currently reachable. This is called a \fImediated\fR connection, as the
648connection itself will still be direct, but it uses another node to
649mediate between the two nodes.
650.Sp
651The value \f(CW0\fR disables routing, that means if the node receives a packet
652not for itself it will not forward it but instead drop it.
593.Sp 653.Sp
594The special value \f(CW1\fR allows other hosts to route through the router 654The special value \f(CW1\fR allows other hosts to route through the router
595host, but they will never route through it by default. The value \f(CW0\fR 655host, but they will never route through it by default (i.e. the config
596disables routing. The idea behind this is that some hosts can, if 656file of another node needs to specify a router priority higher than one
657to choose such a node for routing).
658.Sp
659The idea behind this is that some hosts can, if required, bump the
597required, bump the \f(CW\*(C`router\-priority\*(C'\fR setting to higher than \f(CW1\fR in their 660\&\f(CW\*(C`router\-priority\*(C'\fR setting to higher than \f(CW1\fR in their local config to
598local config to route through specific hosts. If \f(CW\*(C`router\-priority\*(C'\fR is 661route through specific hosts. If \f(CW\*(C`router\-priority\*(C'\fR is \f(CW0\fR, then routing
599\&\f(CW0\fR, then routing will be refused, so \f(CW1\fR serves as a \*(L"enable, but do 662will be refused, so \f(CW1\fR serves as a \*(L"enable, but do not use by default\*(R"
600not use by default\*(R" switch. 663switch.
664.Sp
665Nodes with \f(CW\*(C`router\-priority\*(C'\fR set to \f(CW2\fR or higher will always be forced
666to \f(CW\*(C`connect\*(C'\fR = \f(CW\*(C`always\*(C'\fR (unless they are \f(CW\*(C`disabled\*(C'\fR).
601.IP "tcp-port = port-number" 4 667.IP "tcp-port = port-number" 4
602.IX Item "tcp-port = port-number" 668.IX Item "tcp-port = port-number"
603Similar to \f(CW\*(C`udp\-port\*(C'\fR (default: \f(CW655\fR), but sets the \s-1TCP\s0 port number. 669Similar to \f(CW\*(C`udp\-port\*(C'\fR (default: \f(CW655\fR), but sets the \s-1TCP\s0 port number.
604.IP "udp-port = port-number" 4 670.IP "udp-port = port-number" 4
605.IX Item "udp-port = port-number" 671.IX Item "udp-port = port-number"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines