summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-08-04 20:26:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-08-04 20:26:37 +0000
commit725dd10ae2512af0dc26cf812ea16376b035fb08 (patch)
tree4b2c9d8b75e906595094c10fef29e8d016f09d17
parent4ed746322f54f41a0f2cbb7376c023b24cbf1dc8 (diff)
downloadpfsense-725dd10ae2512af0dc26cf812ea16376b035fb08.zip
pfsense-725dd10ae2512af0dc26cf812ea16376b035fb08.tar.gz
Sync NATT support from m0n0wall
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index b668c5c..d578bf4 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -317,6 +317,11 @@ function vpn_ipsec_configure($ipchg = false) {
$myident = gethostbyname($tunnel['p1']['myident']['dyn_dns']);
}
+ $nattline = '';
+ if (isset($tunnel['natt'])) {
+ $nattline = "nat_traversal on;";
+ }
+
if (isset($tunnel['p1']['authentication_method'])) {
$authmethod = $tunnel['p1']['authentication_method'];
} else {$authmethod = 'pre_shared_key';}
@@ -380,6 +385,7 @@ EOD;
remote {$tunnel['remote-gateway']} \{
exchange_mode {$tunnel['p1']['mode']};
my_identifier {$myidentifier};
+ {$nattline}
{$certline}
peers_identifier address {$tunnel['remote-gateway']};
initial_contact on;
OpenPOWER on IntegriCloud