Describe your package here
Describe your package requirements here
Currently there are no FAQ items provided.
stunnel
4.18
Services: Secure Tunnel
['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 IP address to redirect this to.
input
Redirects to Port
redirectport
Enter the port to redirect to.
input
stunnel
/usr/local/etc/rc.d/stunnel.sh
stunnel
/dev/null");
system("/usr/local/etc/rc.d/stunnel.sh start 2>/dev/null");
]]>
/dev/null");
chmod("/usr/local/etc/stunnel/stunnel.pem", 600);
system("/bin/mkdir /var/tmp/stunnel");
system("/bin/mkdir /var/tmp/stunnel/var");
system("/bin/mkdir /var/tmp/stunnel/var/tmp");
system("/usr/sbin/chown -R stunnel:stunnel /var/tmp/stunnel");
chmod("/var/tmp/stunnel/var/tmp/", 1777);
$fout = fopen("/usr/local/etc/rc.d/stunnel.sh","w");
system("/usr/sbin/chown -R stunnel:stunnel /var/tmp/stunnel/var/stunnel");
fwrite($fout, "#!/bin/sh\n");
fwrite($fout, "# PACKAGE: STunnel\n");
fwrite($fout, "# EXECUTABLE: stunnel\n");
fwrite($fout, "/usr/local/sbin/stunnel /usr/local/etc/stunnel/stunnel.conf\n\n");
fclose($fout);
chmod("/usr/local/etc/rc.d/stunnel.sh", 0555);
]]>