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)
commitae2c5b2b954bfc5282f0ef359d0960a2cd610e14
treeb2171a1695a85cb097e7b88255af60dd0f0039f4
parent7b9557028a381206c573e42a7f5294d20aa0609b
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 <michael.tremer@ipfire.org>
src/functions/functions.ip-tunnel