aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDavid Marcin <djmarcin@gmail.com>2015-07-07 17:48:42 -0700
committerDavid Marcin <djmarcin@gmail.com>2015-07-07 17:48:42 -0700
commitb997f8957f8ccf90c13fecbf8a3a7625495525f3 (patch)
tree4e83fcef160394bf0872e756c603a6bec9c2f67d /config
parentc009c57c7840c64d5a228af9b5a0b80fa7d1ee7f (diff)
downloadpfsense-packages-b997f8957f8ccf90c13fecbf8a3a7625495525f3.tar.gz
pfsense-packages-b997f8957f8ccf90c13fecbf8a3a7625495525f3.tar.bz2
pfsense-packages-b997f8957f8ccf90c13fecbf8a3a7625495525f3.zip
Add ability to specify client mode tunnels.
Diffstat (limited to 'config')
-rw-r--r--config/stunnel/stunnel.inc1
-rw-r--r--config/stunnel/stunnel.xml6
2 files changed, 7 insertions, 0 deletions
diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc
index fdc72bf2..552603b6 100644
--- a/config/stunnel/stunnel.inc
+++ b/config/stunnel/stunnel.inc
@@ -123,6 +123,7 @@ function stunnel_save($config) {
if(!is_array($config['installedpackages']['stunnel']['config'])) { $config['installedpackages']['stunnel']['config']=Array(); }
foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) {
fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n");
+ if($pkgconfig['client']) fwrite($fout, "client = yes" . "\n");
if($pkgconfig['certificate']) {
if(file_exists('/usr/local/etc/stunnel/'.$pkgconfig['certificate'].'.key') and
file_exists('/usr/local/etc/stunnel/'.$pkgconfig['certificate'].'.chain')) {
diff --git a/config/stunnel/stunnel.xml b/config/stunnel/stunnel.xml
index 95dea0c1..11334000 100644
--- a/config/stunnel/stunnel.xml
+++ b/config/stunnel/stunnel.xml
@@ -116,6 +116,12 @@
<type>input</type>
</field>
<field>
+ <fielddescr>Client Mode?</fielddescr>
+ <fieldname>client</fieldname>
+ <description>Use client mode for this tunnel (i.e. connect to an SSL server, do not act as an SSL server)</description>
+ <type>checkbox</type>
+ </field>
+ <field>
<fielddescr>Listen on IP</fielddescr>
<fieldname>localip</fieldname>
<description>Enter the local IP address to bind this redirection to.</description>