frickin
1.2
Services: Frickin
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");
unlink_if_exists("/usr/local/bin/frickin");