Skip to content

Commit

Permalink
mesh-vpn-wireguard: fix set incorrect MTU on the wireguard interface (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle authored Jul 1, 2024
1 parent fe2273e commit 9cdd8d5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ local util = require('gluon.util')
local site = require 'gluon.site'
local sp = util.subprocess
local wait = require 'posix.sys.wait'
local vpn_core = require('gluon.mesh-vpn')
local _, active_vpn = vpn_core.get_active_provider()

local wg_private_key = uci:get("network_gluon-old", 'wg_mesh', "private_key")

Expand Down Expand Up @@ -58,6 +60,8 @@ uci:section('network', 'interface', 'wg_mesh', {
proto = 'wireguard',
fwmark = 1,
private_key = wg_private_key,
-- Add 70 bytes for IPv6 VXLAN overhead
mtu = active_vpn.mtu() + 70,
})

uci:section('network', 'interface', 'mesh_wg_mesh', {
Expand Down

0 comments on commit 9cdd8d5

Please sign in to comment.