From b997f8957f8ccf90c13fecbf8a3a7625495525f3 Mon Sep 17 00:00:00 2001 From: David Marcin Date: Tue, 7 Jul 2015 17:48:42 -0700 Subject: Add ability to specify client mode tunnels. --- config/stunnel/stunnel.inc | 1 + config/stunnel/stunnel.xml | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'config/stunnel') 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 @@ -115,6 +115,12 @@ Enter a description for this redirection. input + + Client Mode? + client + Use client mode for this tunnel (i.e. connect to an SSL server, do not act as an SSL server) + checkbox + Listen on IP localip -- cgit v1.2.3