chiark / gitweb /
Add new `knock' protocol.
[tripe] / peerdb / peers.in
index b17015747619a94b124e71f2f5d34683efa8de1b..3fb23803c8fc0e79b24d39a8d3e9193f04741bdf 100644 (file)
@@ -81,6 +81,19 @@ retries = 5
 ;;; The parameters here affect peers to whom dynamic connections are made.
 ;;; The user and connect parameters probably need customizing.
 
+[@KNOCK]
+@inherit = @ACTIVE, @WATCH
+
+;; 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
+
+;; every: interval for checking that this connection is alive.
+every = 30s
+
+;; knock: peer-name string to send to the peer.
+knock = $(myhost)
+
 [@DYNAMIC]
 @inherit = @ACTIVE, @WATCH
 
@@ -113,7 +126,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