diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-04-26 09:05:20 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-04-26 09:05:20 +0200 |
commit | 787de45a89cb4e7cdf56c9f73245864e6d990f78 (patch) | |
tree | 0886243a6ef556a9560f72fb9b71f46ce036ead6 /etc/inc/openvpn.inc | |
parent | 97ffc51364f0e5aead21a74155b46485a52b5c2c (diff) | |
download | pfsense-787de45a89cb4e7cdf56c9f73245864e6d990f78.zip pfsense-787de45a89cb4e7cdf56c9f73245864e6d990f78.tar.gz |
Push the ipv6 routes for the local network with push route-ipv6
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 4 |
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': |