]> git.ipfire.org Git - network.git/commitdiff
ip-tunnel: Set TTL to 255 by default
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2018 12:38:13 +0000 (13:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2018 12:38:13 +0000 (13:38 +0100)
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 <michael.tremer@ipfire.org>
src/functions/functions.ip-tunnel

index 1184a844959c252e94375f0b6b764626e59789fc..11eb3c7f451b457d0180b175ea04ca9dc4c48e4e 100644 (file)
@@ -77,7 +77,7 @@ ip_tunnel_add() {
        shift
 
        local mode
-       local ttl
+       local ttl=255
 
        local address
        local remote_address