diff options
author | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:07:20 +1200 |
---|---|---|
committer | Andrew Thompson <andrew@clonedev.co.nz> | 2011-08-17 14:07:20 +1200 |
commit | a26d95383a6146734f67c9db21cd83534052843a (patch) | |
tree | b1d1e008b6bd84f7c76d0e1b4d9a1d478347a9af /etc/inc/interfaces.inc | |
parent | 487830da860f9ba44c4daf83df2c5903400aaa53 (diff) | |
download | pfsense-a26d95383a6146734f67c9db21cd83534052843a.zip pfsense-a26d95383a6146734f67c9db21cd83534052843a.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/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 679e347..0e333fb 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -204,6 +204,10 @@ This block of code is only entered for OPTx interfaces that are configured for P } function interfaces_loopback_configure() { + global $g; + + if ($g['platform'] == 'jail') + return; if($g['booting']) echo "Configuring loopback interface..."; pfSense_interface_setaddress("lo0", "127.0.0.1"); @@ -853,6 +857,9 @@ function interface_gif_configure(&$gif, $gifkey = "") { function interfaces_configure() { global $config, $g; + if ($g['platform'] == 'jail') + return; + /* Set up our loopback interface */ interfaces_loopback_configure(); |