Commit Graph

546 Commits

Author SHA1 Message Date
jim-p
58168f4e2a Fix input validation and import test. 2012-05-30 12:59:23 -04:00
jim-p
cf180ccc2a Switch to ntpd from ports, add Services > NTP to select interfaces for binding. Respect old ntp settings in the process. 2012-05-30 12:44:55 -04:00
jim-p
0b8e9d38d8 On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever. 2012-05-16 10:48:26 -04:00
jim-p
7dab8995dd Clear process signals before exec() or ntpd misbehaves if called from PHP on i386. 2012-05-15 16:37:07 -04:00
jim-p
42135f0786 Use FreeBSD's ntpd instead in the backend 2012-05-14 15:44:37 -04:00
Irving Popovetsky
98f20e3577 max_procs adjustments for small memory systems, attempt 2
Per Jim P's feedback,  move max_procs completely out of
system_webgui_start()  and move all of the memory/procs decision logic
to system_generate_lighty_config().

Adjust the captive portal max_procs to reflect the low memory
conditions like ALIX which tends to run out of memory quickly due to
piggy PHP processes.

In real life testing, each PHP process (with APC) can consume up to
64MB RAM.

128MB ALIX systems show an available RAM of 107 MB.
256MB ALIX systems show an available RAM of 228 MB.

The logic here is that <128MB systems should never be running more than
1 PHP process,  and <256MB systems should run 1 by default,  or 2 if
captive portal is running.

Also give the top-end captive portal 1 more PHP process (6 now)
although I think very busy captive portals will probably need more.
2012-05-10 11:17:55 -07:00
jim-p
5db4d1eb56 Test if this is an array before using it as an array. 2012-05-06 12:02:07 -04:00
Lorenz Schori
5a2a83493c Add support for aliases in DNS Forwarder, fixes #2410 2012-05-05 13:07:04 +02:00
jim-p
e0c45357b2 Move routing (radvd, routed, ospf, bgp) to its own log since these daemons can be really spammy at times. 2012-05-01 16:00:10 -04:00
jim-p
60dd7649d0 Move the stop_packages code to a function, and call the function from the shell script, and call the function directly for a reboot. Fixes #2402 and ticket #1564 2012-04-30 15:32:47 -04:00
jim-p
4f8adcb66a Include the ntp facility also, should fix ntp logging 2012-04-17 09:33:04 -04:00
smos
4b2bf4fc01 Prevent a invalid argument on a empty array 2012-04-16 10:12:09 +02:00
jim-p
64a8dbf264 Fix missing - on route parameter 2012-04-14 14:53:59 -04:00
Jim P
9583759704 Merge pull request #90 from vizvayu/master
Mode selection options for PowerD
2012-04-13 13:27:16 -07:00
Ermal
d46c3acd20 Enable verbosity to actually put something in the logs 2012-04-13 19:13:33 +00:00
jim-p
bd29bb7baa Add brackets to a syslog server if it's an IPv6 IP. (Though FreeBSD's syslogd still won't send to it ... http://www.freebsd.org/cgi/query-pr.cgi?pr=150530&cat=misc ) 2012-04-12 11:07:25 -04:00
jim-p
f898c1a982 Add alias support to static routes (needs some testing) Ticket #2239
Conflicts:

	etc/inc/filter.inc
	etc/inc/util.inc
	usr/local/www/system_routes_edit.php
2012-04-11 11:58:21 -04:00
Cristian Feldman
53c210dd64 Added mode selection options for PowerD. 2012-04-10 22:12:30 -03:00
jim-p
08ab5cd2b4 Expand these checks to include 'dynamic' or they'll never match dynamic gateways, leading to issues with routing. 2012-04-04 13:44:28 -04:00
smos
e0977fed0f Move some of the log file tabs around.
Add seperate tabs for dnsmasq,unbound as well as gateways.
2012-03-29 12:20:03 +02:00
Darren Embry
ef59af2728 fix for: Captive Portal cannot work on master branch
reverting to listening on 0.0.0.0 seems to work just fine

mostly fixes #1700 .

http://redmine.pfsense.org/issues/1700
2012-03-22 10:48:57 -04:00
Ermal
f5b8bdbfb2 Set FCGI_CHILDREN to 0 since it does not make sense php to manage itself when lighttpd is doing so. This makes it possible to recover from 550-Internal... error. 2012-03-15 14:58:52 +00:00
jim-p
4a8c0780d2 Ermal says the new openntpd binary fixes this instead -- Revert "Start ntpd in the background since we don't need to care about its return data. Speeds up GUI with broken DNS."
This reverts commit 89d291ec25.
2012-03-13 15:16:12 -04:00
jim-p
89d291ec25 Start ntpd in the background since we don't need to care about its return data. Speeds up GUI with broken DNS. 2012-03-13 13:31:46 -04:00
Warren Baker
bfe407e5a2 Add the ability to disable static routes without deleting them 2012-03-02 23:02:22 +02:00
Ermal
3b8a17a1d0 Correctly match ntpd syslog messages 2012-03-02 19:07:24 +00:00
Chris Buechler
f581cb10fd only skip adding default gateway if OLSR is actually enabled, and log why you're skipping it, otherwise it's tons of "fun" to dig in and figure out what's going on. 2012-02-22 07:01:17 -05:00
jim-p
c82b2c3f21 Change SNMP binding option to work on any eligible interface/VIP. Fixes #2158 2012-02-01 13:28:53 -05:00
Scott Ullrich
943994ff7d Ensure timezone is set 2012-01-18 15:05:39 -05:00
jim-p
7c6856f8cd Include DHCPDv6 static maps when generating hosts file. Fixes #2017 2011-11-29 11:47:31 -05:00
jim-p
236524c2e8 Fix up syslog settings a bit, add some missing options, fix formatting of syslog.conf, correct behavior of 'everything', code cleanup. 2011-10-26 17:14:19 -04:00
jim-p
1e656ec491 Change the way syslogd is killed/restarted a bit. Fixes log related pages hanging when logs are reset (or saving syslog settings) 2011-09-30 20:20:59 -04:00
jim-p
689eaa4dc6 Move hostapd to its own log and tab, so it stops spamming the system log. 2011-09-30 19:57:43 -04:00
jim-p
722112f391 Exclude relayd from main system log, it's really spammy, and is already in relayd.log 2011-09-29 22:28:36 -04:00
Ermal
b4792bf8fe Add the multi instance CP to master branch. This allows to define CP with different properties on different interfaces. 2011-09-07 13:04:01 +00:00
smos
02091d234d Encapsulate in curlies for safety 2011-09-03 12:20:08 +02:00
smos
ea91a8c0c2 Unbreak system_routing_configure(); 2011-09-03 12:17:15 +02:00
smos
26ecc19c99 Only add the Interface scope on link local addresses 2011-09-03 11:13:43 +02:00
smos
1a40ed8ad8 Fix system_routing_configure() so that that it also passes the interface scope with the IPv6 address on route changes. This is required for link local gateways to work. 2011-09-01 08:41:16 +02:00
Seth Mos
c935003d50 Update the system.inc code that sets up the static routes for DNS servers to reflect the interface to gateway name conversion 2011-08-24 10:51:03 +02:00
Andrew Thompson
7734aea648 Make initial changes to allow pfSense to work in a jail.
This mostly avoids starting things that will not work and gets the
initial config. Most of the pfSense functionality will not work
(pf rules, routing, etc) but it can be used for testing.
2011-08-17 14:15:18 +12:00
jim-p
af6576a89c Also only add 127.0.0.1 as a DNS server if dnsmasq (DNS Forwarder) is enabled. 2011-08-12 10:32:16 -04:00
Ermal
6c86a39f8e Allow disabling having localhost in resolv.conf. There are some special setups that might need this. 2011-08-12 11:47:12 +00:00
Ermal
8e8662170a When clicked allow overriding of dns servers by dynamic WANs still configure the other dns servers so in multi-WAN environments dns has a chance to work still. 2011-08-08 17:19:27 +00:00
Ermal
8ac329daa0 Tell the local system to use the locally running dns forwarder as a primary source. This should help ticket #1407 2011-08-08 17:16:07 +00:00
Scott Ullrich
1fd3fe31ff Start hostid 2011-08-01 14:15:24 -04:00
Scott Ullrich
43086fae24 Max procs should be 1 when using an op code cacher 2011-07-29 20:19:32 -04:00
Ermal
4c41b62653 Use route change here as well to avoid leaving the routing table without a destination for a short period. 2011-07-28 19:58:16 +00:00
jim-p
0124456b0c Rework rc.stop_packages a little. Fixes #1564 2011-07-28 15:44:46 -04:00
Ermal
6968b356b9 Correct check as per http://forum.pfsense.org/index.php/topic,39155.0.html 2011-07-27 20:39:56 +00:00