diff options
author | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:15:18 +1200 |
---|---|---|
committer | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:15:18 +1200 |
commit | 7734aea648d609bbdf308d97f85d7d089c831d6f (patch) | |
tree | 44b364f02f771f54a5350c226459886068a3361a /etc/inc/vpn.inc | |
parent | 8f9bffbc987a072b7d266011396726489ed92450 (diff) | |
download | pfsense-7734aea648d609bbdf308d97f85d7d089c831d6f.zip pfsense-7734aea648d609bbdf308d97f85d7d089c831d6f.tar.gz |
Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 59e6d78..99eecab 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -82,6 +82,8 @@ function vpn_ipsec_configure($ipchg = false) { global $config, $g, $sa, $sn, $p1_ealgos, $p2_ealgos; + if ($g['platform'] == 'jail') + return; /* get the automatic ping_hosts.sh ready */ unlink_if_exists("{$g['vardb_path']}/ipsecpinghosts"); touch("{$g['vardb_path']}/ipsecpinghosts"); @@ -1011,6 +1013,11 @@ function vpn_ipsec_force_reload() { /* master setup for vpn (mpd) */ function vpn_setup() { + global $g; + + if ($g['platform'] == 'jail') + return; + /* start pptpd */ vpn_pptpd_configure(); |