diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-08-11 09:40:55 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-08-11 09:40:55 -0300 |
commit | 565908d277ef7d5790ecc3fea49e569e89b922d3 (patch) | |
tree | 42a935304f91cb5832f179d0b7d0c33e512e7940 /etc/inc/filter.inc | |
parent | 00311d6a841c0f6fc162ea11da06569f10220f5e (diff) | |
download | pfsense-565908d277ef7d5790ecc3fea49e569e89b922d3.zip pfsense-565908d277ef7d5790ecc3fea49e569e89b922d3.tar.gz |
Do not create automatic outbound NAT rule for disabled openvpn servers and clients
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 518d233..df096e0 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1405,14 +1405,14 @@ function filter_nat_rules_automatic_tonathosts($with_descr = false) { /* add openvpn interfaces */ if(is_array($config['openvpn']['openvpn-server'])) foreach ($config['openvpn']['openvpn-server'] as $ovpnsrv) - if (!empty($ovpnsrv['tunnel_network'])) { + if (!isset($ovpnsrv['disable']) && !empty($ovpnsrv['tunnel_network'])) { $tonathosts[] = $ovpnsrv['tunnel_network']; $descriptions[] = gettext("OpenVPN server"); } if(is_array($config['openvpn']['openvpn-client'])) foreach ($config['openvpn']['openvpn-client'] as $ovpncli) - if (!empty($ovpncli['tunnel_network'])) { + if (!isset($ovpncli['disable']) && !empty($ovpncli['tunnel_network'])) { $tonathosts[] = $ovpncli['tunnel_network']; $descriptions[] = gettext("OpenVPN client"); } |