… | |
… | |
300 | used to select the right configuration section and must be passed as an |
300 | used to select the right configuration section and must be passed as an |
301 | argument to the gvpe daemon. |
301 | argument to the gvpe daemon. |
302 | |
302 | |
303 | =item node-up = relative-or-absolute-path |
303 | =item node-up = relative-or-absolute-path |
304 | |
304 | |
305 | Sets a command (default: no script) that should be called whenever a |
305 | Sets a command (default: none) that should be called whenever a connection |
306 | connection is established (even on rekeying operations). In addition to |
306 | is established (even on rekeying operations). Note that node-up/down |
|
|
307 | scripts will be run asynchronously, but execution is serialised, so there |
|
|
308 | will only ever be one such script running. |
|
|
309 | |
307 | all the variables passed to C<if-up> scripts, the following environment |
310 | In addition to all the variables passed to C<if-up> scripts, the following |
308 | variables will be set: |
311 | environment variables will be set: |
309 | |
312 | |
310 | =over 4 |
313 | =over 4 |
311 | |
314 | |
312 | =item DESTNODE=branch2 |
315 | =item DESTNODE=branch2 |
313 | |
316 | |
… | |
… | |
393 | =item connect = ondemand | never | always | disabled |
396 | =item connect = ondemand | never | always | disabled |
394 | |
397 | |
395 | Sets the connect mode (default: C<always>). It can be C<always> (always |
398 | Sets the connect mode (default: C<always>). It can be C<always> (always |
396 | try to establish and keep a connection to the given host), C<never> |
399 | try to establish and keep a connection to the given host), C<never> |
397 | (never initiate a connection to the given host, but accept connections), |
400 | (never initiate a connection to the given host, but accept connections), |
398 | C<ondemand> (try to establish a connection on the first packet sent, and |
401 | C<ondemand> (try to establish a connection when there are outstanding |
399 | take it down after the keepalive interval) or C<disabled> (node is bad, |
402 | packets in the queue and take it down after the keepalive interval) or |
400 | don't talk to it). |
403 | C<disabled> (node is bad, don't talk to it). |
401 | |
404 | |
402 | =item deny-direct = nodename | * |
405 | =item deny-direct = nodename | * |
403 | |
406 | |
404 | Deny direct connections to the specified node (or all nodes when C<*> |
407 | Deny direct connections to the specified node (or all nodes when C<*> |
405 | is given). Only one node can be specified, but you can use multiple |
408 | is given). Only one node can be specified, but you can use multiple |
… | |
… | |
529 | retries to establish a connection to this node. When a connection cannot |
532 | retries to establish a connection to this node. When a connection cannot |
530 | be established, gvpe uses exponential backoff capped at this value. It's |
533 | be established, gvpe uses exponential backoff capped at this value. It's |
531 | sometimes useful to set this to a much lower value (e.g. C<120>) on |
534 | sometimes useful to set this to a much lower value (e.g. C<120>) on |
532 | connections to routers that usually are stable but sometimes are down, to |
535 | connections to routers that usually are stable but sometimes are down, to |
533 | assure quick reconnections even after longer downtimes. |
536 | assure quick reconnections even after longer downtimes. |
|
|
537 | |
|
|
538 | =item max-ttl = seconds |
|
|
539 | |
|
|
540 | Expire packets that couldn't be sent after this many seconds |
|
|
541 | (default: C<60>). Gvpe will normally queue packets for a node without an |
|
|
542 | active connection, in the hope of establishing a connection soon. This |
|
|
543 | value specifies the maximum lifetime a packet will stay in the queue, if a |
|
|
544 | packet gets older, it will be thrown away. |
|
|
545 | |
|
|
546 | =item max-queue = positive-number |
|
|
547 | |
|
|
548 | The maximum number of packets that will be queued (default: C<512>) |
|
|
549 | for this node. If more packets are sent then earlier packets will be |
|
|
550 | expired. See C<max-ttl>, above. |
534 | |
551 | |
535 | =item router-priority = 0 | 1 | positive-number>=2 |
552 | =item router-priority = 0 | 1 | positive-number>=2 |
536 | |
553 | |
537 | Sets the router priority of the given host (default: C<0>, disabled). If |
554 | Sets the router priority of the given host (default: C<0>, disabled). If |
538 | some host tries to connect to another host without a hostname, it asks |
555 | some host tries to connect to another host without a hostname, it asks |