From ae2c5b2b954bfc5282f0ef359d0960a2cd610e14 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 3 Dec 2018 13:38:13 +0100 Subject: [PATCH] ip-tunnel: Set TTL to 255 by default By default, the Linux kernel inherits the TTL of the transported packet. Usually with BGP, the TTL is deliberately set to 1 or very low numbers which causes the packet to be dropped after the first hop. Since the tunnel should be routed, we set this to a default value of 255 and ignore the TTL of the encapsulated packet. Signed-off-by: Michael Tremer --- src/functions/functions.ip-tunnel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/functions.ip-tunnel b/src/functions/functions.ip-tunnel index 1184a844..11eb3c7f 100644 --- a/src/functions/functions.ip-tunnel +++ b/src/functions/functions.ip-tunnel @@ -77,7 +77,7 @@ ip_tunnel_add() { shift local mode - local ttl + local ttl=255 local address local remote_address -- 2.39.2