From eed3b4461c6930a027a71ac1648d1b65493e9f9d Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Mon, 28 Mar 2005 22:30:06 +0000 Subject: Add Frickin PPTP proxy. --- packages/frickin.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 packages/frickin.xml (limited to 'packages') diff --git a/packages/frickin.xml b/packages/frickin.xml new file mode 100644 index 00000000..773bd0dd --- /dev/null +++ b/packages/frickin.xml @@ -0,0 +1,56 @@ + + + frickin + 1.2 + Services: Frickin + + Frickin + Modify settings for the Frickin PPTP proxy. +
Diagnostics
+ frickin.xml +
+ installedpackages->package->$packagename->configuration->settings + + /usr/local/bin/ + a+x + http://www.pfsense.com/packages/config/frickin.xml + + + + PPTP Server Address + serveraddress + Enter the PPTP server's IP address. + input + + + Maximum Concurrent Tunnels + maxtunnels + Enter the maximum number of concurrent tunnels to allow at any given time. + input + + + + function write_frickin_static_config() { + $fout = fopen("/usr/local/etc/rc.d/frickin.sh", "w"); + fwrite($fout, "#!/bin/sh\n# This package was automatically generated\n# by the pfSense package system.\n\n"); + fwrite($fout, "/usr/local/bin/frickin "); + fclose($fout); + } + function sync_package_frickin() { + $frickin_options = ""; + if($_POST['serveraddress'] != "") $frickin_options .= "-s {$_POST['serveraddress']} "; + if($_POST['maxtunnels'] != "") $frickin_options .= "-c {$_POST['maxtunnels']}"; + $fout = fopen("/usr/local/etc/rc.d/frickin.sh", "a"); + $fwrite($fout, $frickin_options . "\n"); + mwexec("/usr/bin/killall frickin"); + mwexec("/usr/local/etc/rc.d/frickin.sh"); + } + + + write_frickin_static_config(); + sync_package_frickin(); + + + unlink_if_exists("/usr/local/etc/rc.d/frickin.sh"); + +
-- cgit v1.2.3