diff --git a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php index 19a39c5e7..a2a0dd439 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php +++ b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php @@ -239,6 +239,8 @@ class Gateways } elseif (self::convertType($ipproto, $ifcfg) != null) { // other predefined types, only bound by interface (e.g. openvpn) $gwkey = $this->newKey($thisconf['priority'], !empty($thisconf['defaultgw'])); + // gateway should only contain a valid address, make sure its empty + unset($thisconf['gateway']); $this->cached_gateways[$gwkey] = $thisconf; } }