chiark / gitweb /
Add new `knock' protocol.
[tripe] / peerdb / peers.in
index 25a144280695f3ae8cfbd3a3f56cd38b77e62f9b..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