diff options
author | Ermal <eri@pfsense.org> | 2012-10-05 19:08:53 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-10-05 19:08:53 +0000 |
commit | 909890c4f09623cfbb1b5f8ff933cd1b4ebeadd9 (patch) | |
tree | af3c9157f898e8ec12a435decb45faac4d12aac6 /etc/inc/vpn.inc | |
parent | a0c4a6ced5c1ad64eb7b738e4ee55220654cdd59 (diff) | |
download | pfsense-909890c4f09623cfbb1b5f8ff933cd1b4ebeadd9.zip pfsense-909890c4f09623cfbb1b5f8ff933cd1b4ebeadd9.tar.gz |
Correct the config generation
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 418ec14..6e19738 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -709,14 +709,13 @@ EOD; } $localid_spec = "{$localid_type} {$localid_data} any"; if (!empty($ph2ent['natlocalid'])) { - $natlocalid_spec = " nat "; $natlocalid_data = ipsec_idinfo_to_cidr($ph2ent['natlocalid']); if ($ph2ent['natlocalid']['type'] != "address") { if (is_subnet($natlocalid_data)) - $localid_spec .= "subnet {$natlocalid_data} any"; + $localid_spec .= " nat subnet {$natlocalid_data} any"; } else { if (is_ipaddr($natlocalid_data)) - $localid_spec .= "address {$natlocalid_data} any"; + $localid_spec .= " nat address {$natlocalid_data} any"; } } } |