summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@dds.nl>2011-04-26 09:05:20 +0200
committerSeth Mos <seth.mos@dds.nl>2011-04-26 09:05:20 +0200
commit787de45a89cb4e7cdf56c9f73245864e6d990f78 (patch)
tree0886243a6ef556a9560f72fb9b71f46ce036ead6 /etc
parent97ffc51364f0e5aead21a74155b46485a52b5c2c (diff)
downloadpfsense-787de45a89cb4e7cdf56c9f73245864e6d990f78.zip
pfsense-787de45a89cb4e7cdf56c9f73245864e6d990f78.tar.gz
Push the ipv6 routes for the local network with push route-ipv6
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 733705f..a444185 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -458,6 +458,10 @@ function openvpn_reconfigure($mode, $settings) {
$mask = gen_subnet_mask($mask);
$conf .= "push \"route $ip $mask\"\n";
}
+ if ($settings['local_networkv6']) {
+ list($ipv6, $prefix) = explode('/', $settings['local_networkv6']);
+ $conf .= "push \"route-ipv6 $ipv6/$prefix\"\n";
+ }
switch($settings['mode']) {
case 'server_tls':
OpenPOWER on IntegriCloud