X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/02c995246c1aa9703c9ab6d476884748f497f510..d3a17033e6285dfb9a7c626ec2e9403b6e1d5034:/peerdb/peers.in diff --git a/peerdb/peers.in b/peerdb/peers.in index b1701574..75c039d9 100644 --- a/peerdb/peers.in +++ b/peerdb/peers.in @@ -57,6 +57,10 @@ host = override-me ;; the remote peer. peer = INET $[$(host)] $(port) +;; ephemeral: whether to send the peer a disconnection notification, or +;; react to one from the peer. +ephemeral = nil + ;;;-------------------------------------------------------------------------- ;;; Temporary association defaults. ;;; @@ -81,9 +85,29 @@ retries = 5 ;;; The parameters here affect peers to whom dynamic connections are made. ;;; The user and connect parameters probably need customizing. -[@DYNAMIC] +[@EPHEMERAL] @inherit = @ACTIVE, @WATCH +;; ephemeral: whether to send the peer a disconnection notification, or +;; react to one from the peer. +ephemeral = t + +;; every: interval for checking that this connection is alive. +every = 30s + +[@KNOCK] +@inherit = @EPHEMERAL + +;; keepalive: how often to send NOP packets to keep the connection alive, at +;; least in the minds of intermediate stateful firewalls and NAT routers. +keepalive = 2m + +;; knock: peer-name string to send to the peer. +knock = $(myhost) + +[@DYNAMIC] +@inherit = @EPHEMERAL + ;; cork: whether to wait for a key-exchange packet from the peer before ;; sending one of our own. cork = t @@ -102,9 +126,6 @@ disconnect = ssh -q $(ssh-user)@$[$(host)] goodbye ;; least in the minds of intermediate stateful firewalls and NAT routers. keepalive = 2m -;; every: interval for checking that this connection is alive. -every = 30s - ;;;-------------------------------------------------------------------------- ;;; Passive-peers defaults. ;;; @@ -113,7 +134,7 @@ every = 30s ;;; of the parameters and these defaults are probably pretty good. [@PASSIVE] -@inherit = @GLOBAL, @WATCH +@inherit = @WATCH ;; peer: mark this entry as being a passive peer. peer = PASSIVE