From bfecb33b0409e9f2d51483dbef5ee2c475c05278 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 22 Dec 2004 00:27:10 +0000 Subject: Add stunnel package! --- packages/stunnel.xml | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ pkg_config.xml | 9 +++++ 2 files changed, 102 insertions(+) create mode 100644 packages/stunnel.xml diff --git a/packages/stunnel.xml b/packages/stunnel.xml new file mode 100644 index 00000000..611f614c --- /dev/null +++ b/packages/stunnel.xml @@ -0,0 +1,93 @@ + + + stunnel + + + STunnel + The stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without any changes in the programs' code. It will negotiate an SSL connection using the OpenSSL or SSLeay libraries. It calls the underlying crypto libraries, so stunnel supports whatever cryptographic algorithms you compiled into your crypto package. +
Services
+
+ + ['installedpackages']['package']['$packagename']['configuration'] + + + + Description + description + + + Listen on IP + localip + + + Listen on Port + localport + + + Redirects to IP + redirectip + + + Redirects to Port + redirectport + + + + + + Description + description + Enter a description for this redirection. + input + + + Listen on IP + localip + Enter the local IP address to bind this redirection to. + input + + + Listen on port + localport + Enter the local port to bind this redirection to. + input + + + Redirects to IP + redirectip + Enter the local IP address to redirect this to. + input + + + Redirects to Port + redirectport + Enter the local port to rediect to. + input + + + + system("mkdir /var/tmp/stunnel 2>/dev/null"); + + + system("rm -rf /var/tmp/stunnel 2>/dev/null"); + + + global $config; + $fout = fopen("/usr/local/etc/stunnel.conf","w"); + fwrite($fout, "cert = /usr/local/etc/stunnel/mail.pem \n"); + fwrite($fout, "chroot = /var/tmp/stunnel \n"); + fwrite($fout, "setuid = stunnel \n"); + fwrite($fout, "setgid = stunnel \n"); + foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) { + fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n"); + fwrite($fout, "accept = " . $pkgconfig['localip'] . ":" . $pkgconfig['localport'] . "\n"); + fwrite($fout, "accept = " . $pkgconfig['redirectip'] . ":" . $pkgconfig['redirectport'] . "\n\n"); + } + fclose($fout); + system("/usr/bin/killall stunnel 2>/dev/null"); + system("/usr/local/sbin/stunnel 2>/dev/null"); + +
diff --git a/pkg_config.xml b/pkg_config.xml index 38e4b49f..b0cdda4c 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -42,5 +42,14 @@ http://www.pfsense.com/packages/config/ntop.xml ntop.xml + + stunnel + The stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without any changes in the programs' code. It will negotiate an SSL connection using the OpenSSL or SSLeay libraries. It calls the underlying crypto libraries, so stunnel supports whatever cryptographic algorithms you compiled into your crypto package. + Network Management + http://www.pfsense.com/packages/All + stunnel.tbz + http://www.pfsense.com/packages/config/stunnel.xml + stunnel.xml + -- cgit v1.2.3