summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-04-21 09:59:09 -0400
committerjim-p <jimp@pfsense.org>2011-04-21 09:59:09 -0400
commit0cc5ab42269a5aa1588ac2f862b0201917569ada (patch)
tree55c3ff181432feb091cae3feb337252a249dec64 /etc
parentbd24573bb00fcc385587cf87d1d455d000a17ff0 (diff)
downloadpfsense-0cc5ab42269a5aa1588ac2f862b0201917569ada.zip
pfsense-0cc5ab42269a5aa1588ac2f862b0201917569ada.tar.gz
Confirmed working fix for ticket #1417 - with this change I have two-way connectivity on Site-to-Site (SSL/TLS) with iroutes.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index df531c7..4115784 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -383,6 +383,8 @@ function openvpn_reconfigure($mode, $settings) {
// configure p2p/server modes
switch($settings['mode']) {
case 'p2p_tls':
+ $conf .= "server {$ip} {$mask}\n";
+ $conf .= "client-config-dir {$g['varetc_path']}/openvpn-csc\n";
case 'p2p_shared_key':
$baselong = ip2long32($ip) & ip2long($mask);
$ip1 = long2ip32($baselong + 1);
OpenPOWER on IntegriCloud