Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenVPN tap mode push route-gateway for bridge interface
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc
index 0b7f1fa949..fa240a57d9 100644
--- a/src/etc/inc/openvpn.inc
+++ b/src/etc/inc/openvpn.inc
@@ -950,6 +950,9 @@ function openvpn_reconfigure($mode, $settings) {
} else {
$conf .= "mode server\n";
}
+ if (is_ipaddrv4($biface_ip)) {
+ $conf .= "push \"route-gateway {$biface_ip}\"\n";
+ }
} else {
$conf .= "mode server\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.