diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-09 17:53:06 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-09 17:53:06 +0000 |
commit | c73bd8f08806256960fcfb852cd730188b5f8f2b (patch) | |
tree | f5dc9c66ffcf2a6e459f5e6005dff04137bed912 /etc | |
parent | b72e70ae3f77170cb5dea567d651502cb9a3e3a9 (diff) | |
download | pfsense-c73bd8f08806256960fcfb852cd730188b5f8f2b.zip pfsense-c73bd8f08806256960fcfb852cd730188b5f8f2b.tar.gz |
Ticket #324. Add allow all rule during upgrade.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 222e7a1..0b09b00 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1491,6 +1491,20 @@ function upgrade_051_to_052() { unset($config['installedpackages']['openvpncsc']); } + if (count($config['openvpn']['openvpn-server']) > 0 || + count($config['openvpn']['openvpn-client']) > 0) { + $ovpnrule = array(); + $ovpnrule['type'] = "pass"; + $ovpnrule['interface'] = "openvpn"; + $ovpnrule['statetype'] = "keep state"; + $ovpnrule['source'] = array(); + $ovpnrule['destination'] = array(); + $ovpnrule['source']['any'] = true; + $ovpnrule['destination']['any'] = true; + $ovpnrule['descr'] = "Auto added OpenVPN rule from config upgrade."; + $config['filter']['rule'][] = $ovpnrule; + } + /* * FIXME: hack to keep things working with no installedpackages * or carp array in the configuration data. |