summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-05-31 16:36:51 -0400
committerChris Buechler <cmb@pfsense.org>2009-05-31 16:36:51 -0400
commit24afa0183ed4237b04f8e63468dd455a93cf2df3 (patch)
tree58cc1f485065bb6e6df1375610d3b8b767a95a0d /etc
parent47c13f0359b0b82cdb0076c506b319fbfd216593 (diff)
parenta0793ae4686da42ae5c8281bd296f4e82070ec41 (diff)
downloadpfsense-24afa0183ed4237b04f8e63468dd455a93cf2df3.zip
pfsense-24afa0183ed4237b04f8e63468dd455a93cf2df3.tar.gz
Merge branch 'RELENG_1_2' of http://gitweb.pfsense.org/pfsense/mainline into RELENG_1_2
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc7
-rw-r--r--etc/inc/system.inc7
-rwxr-xr-xetc/rc3
3 files changed, 13 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index f647e58..9cdddbc 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2819,6 +2819,10 @@ EOD;
$shorttunneldescr = substr($tunnel['descr'], 0, 26);
$ipfrules .= "pass out quick on \${$iface} proto udp from any to {$remote_gateway} port = 500 keep state label \"IPSEC: {$shorttunneldescr} - outbound isakmp\"\n";
$ipfrules .= "pass in quick on \${$iface} proto udp from {$remote_gateway} to any port = 500 keep state label \"IPSEC: {$shorttunneldescr} - inbound isakmp\"\n";
+ if (isset($tunnel['natt'])) {
+ $ipfrules .= "pass out quick on \${$iface} proto udp from any to {$remote_gateway} port = 4500 keep state label \"IPSEC: {$shorttunneldescr} - outbound nat-t\"\n";
+ $ipfrules .= "pass in quick on \${$iface} proto udp from {$remote_gateway} to any port = 4500 keep state label \"IPSEC: {$shorttunneldescr} - inbound nat-t\"\n";
+ }
if ($tunnel['p2']['protocol'] == 'esp') {
$ipfrules .= "pass out quick on \${$iface} proto esp from any to {$remote_gateway} keep state label \"IPSEC: {$shorttunneldescr} - outbound esp proto\"\n";
$ipfrules .= "pass in quick on \${$iface} proto esp from {$remote_gateway} to any keep state label \"IPSEC: {$shorttunneldescr} - inbound esp proto\"\n";
@@ -2842,6 +2846,9 @@ EOD;
$ipfrules .= "pass in quick on \${$iface} proto udp from any to any port = 500 keep state label \"IPSEC: Mobile - inbound isakmp\"\n";
$ipfrules .= "pass in quick on \${$iface} proto esp from any to any keep state label \"IPSEC: Mobile - inbound esp proto\"\n";
$ipfrules .= "pass in quick on \${$iface} proto ah from any to any keep state label \"IPSEC: Mobile - inbound ah proto\"\n";
+ if (isset($ipseccfg['mobileclients']['natt'])) {
+ $ipfrules .= "pass in quick on \${$iface} proto udp from any to any port = 4500 keep state label \"IPSEC: Mobile - inbound nat-t\"\n";
+ }
}
}
}
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index c493ccd..779925d 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -215,8 +215,13 @@ function system_hostname_configure() {
$syscfg = $config['system'];
/* set hostname */
- return mwexec("/bin/hostname " .
+ $status = mwexec("/bin/hostname " .
escapeshellarg("{$syscfg['hostname']}.{$syscfg['domain']}"));
+
+ /* Setup host GUID ID. This is used by ZFS. */
+ mwexec("/etc/rc.d/hostid start");
+
+ return $status;
}
function system_routing_configure() {
diff --git a/etc/rc b/etc/rc
index 8e99d85..241cb91 100755
--- a/etc/rc
+++ b/etc/rc
@@ -270,9 +270,6 @@ fi
rm -f /cf/conf/backup/backup.cache
-# Setup host GUID ID. This is used by ZFS.
-/etc/rc.d/hostid start
-
# Copy php.ini to alternate location after generation
cp /usr/local/lib/php.ini /usr/local/etc/php.ini
OpenPOWER on IntegriCloud