aboutsummaryrefslogtreecommitdiffstats
path: root/packages/frickin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-11-30 21:13:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-11-30 21:13:12 +0000
commit565680d78d9bdb34934900cbeda77d326a112ebe (patch)
treeaba83a64ac6947a06fb61d4d527a01fc5b4cbfba /packages/frickin
parent57cffabda731fae055df11d6fb87f9e84fb5fca5 (diff)
downloadpfsense-packages-565680d78d9bdb34934900cbeda77d326a112ebe.tar.gz
pfsense-packages-565680d78d9bdb34934900cbeda77d326a112ebe.tar.bz2
pfsense-packages-565680d78d9bdb34934900cbeda77d326a112ebe.zip
Write out and use frickin.conf
Diffstat (limited to 'packages/frickin')
-rw-r--r--packages/frickin/frickin.inc41
1 files changed, 36 insertions, 5 deletions
diff --git a/packages/frickin/frickin.inc b/packages/frickin/frickin.inc
index d4aacae4..ee094332 100644
--- a/packages/frickin/frickin.inc
+++ b/packages/frickin/frickin.inc
@@ -35,23 +35,54 @@ function frickin_custom_php_install_command() {
fwrite($fout, "# PACKAGE: Frickin Proxy\n");
fwrite($fout, "# EXECUTABLE: frickin\n");
fwrite($fout, "/usr/local/bin/frickin");
- fwrite($fout, " -s 127.0.0.1");
- fwrite($fout, " -c 20");
+ fwrite($fout, " -c /usr/local/etc/frickin.conf");
fwrite($fout, " &\n");
fclose($fout);
+
+ $fout = fopen("/usr/local/etc/frickin.conf", "w");
+ $frickin_conf = <<<EOD
+
+proxy {
+ user = "nobody";
+ group = "nobody";
+ client {
+ queue = 5; # Maximum connection queue size
+ max = 100; # Maximum number of concurrent clients
+ multiple = FALSE; # Allow multiple connections from same ip
+ }
+ session {
+ connect = 15; # Connect timout (seconds)
+ idle = 60; # Idle timeout (seconds)
+ }
+}
+
+listeners {
+ default {
+ name = "Frickin PPTP Proxy";
+ vendor = "Placid Development";
+ ip = "127.0.0.1";
+ port = 1723;
+ }
+}
+
+EOD;
+
+ fwrite($fout, "{$frickin_conf}");
+ fclose($fout);
+
mwexec("/usr/bin/killall frickin");
mwexec("chmod a+rx /usr/local/etc/rc.d/frickin.sh");
- mwexec("/usr/local/etc/rc.d/frickin.sh");
+ mwexec("/usr/local/etc/rc.d/frickin.sh");
}
function custom_php_deinstall_command() {
unlink_if_exists("/usr/local/etc/rc.d/frickin.sh");
- unlink_if_exists("/usr/local/bin/frickin");
+ unlink_if_exists("/usr/local/bin/frickin");
}
function frickin_generate_rules($type) {
global $config;
-
+
$rules = "";
$frickin_conf = $config['installedpackages']['frickin']['config'][0];