diff --git a/listener/tun/ipstack/commons/router_linux.go b/listener/tun/ipstack/commons/router_linux.go index 6f1b6f51..39f4dca7 100644 --- a/listener/tun/ipstack/commons/router_linux.go +++ b/listener/tun/ipstack/commons/router_linux.go @@ -28,7 +28,7 @@ func ConfigInterfaceAddress(dev device.Device, addr netip.Prefix, forceMTU int, return err } - execRouterCmd("add", addr.String(), interfaceName, ip.String(), "main") + execRouterCmd("add", addr.Masked().String(), interfaceName, ip.String(), "main") if autoRoute { err = configInterfaceRouting(interfaceName, addr, autoDetectInterface)