Fix url. Do not include mod_accesslog twice
Add the empty check otherwise all static routes are skipped. Reported-by: Seth
This logic was reversed fix it. Reported-by: Seth
Prevent a IPv6 address from breaking system routing. This is a hack because we don't have the proper ip validation in 2.0 mainline
Specify the -inet family so that accidental IPv6 addresses here don't break the system routing.
Remove extra brace
Better test for an empty CA to avoid writing out an empty CA file (some on the forum are seeing this.)
Unbreak dns server colletion. Pointyhat: myself
Oops remove forgotten line and correct variable name error that seems to have existed from long time. Even though the file read is not used in pfSense this days!
Use glob instead of forking cat with glob patterns. Also use file() instead of forking cat just for reading a file. This might help with the issue reported on Ticket #943 which seems like a timing issue even though the dns events happen before newip events.
nuke trailing carriage returns
Make the CP locking more granular and make use correctly of exclusive/shared locks where appripriate. This speeds up CP login process.
Do not spam console, spam log
use is_dir(). Sometimes php lack of uniform function names can be annoying.
Ensure log directory exists before invoking syslogd
Add missing - in syslogd command line parameters, fixes #1111
Hard code maxlockouts to 15 until GUI portion is ready
Correct webConfgurator auth/error messages
Get rid of fastforwarding since it is not maintained from long time. Courtesy-of: battlez_ IRC
If a pkg has logging enabled in syslog, then correctly ensure that it does not get logged to one of the other logs but only to its specified log file.
Syslog.conf would end up with multiple pkg facility names on the same line. So multiple pkgs with logging enabled would end up with the previous pkg prepended to its syslog entry.
Revert "Use -ss for syslogd. Suggested-by: Ermal"
This reverts commit c57e0d704ac08afee31e1e79f0b8228f5eb66cb1.
Use -ss for syslogd. Suggested-by: Ermal
Use -l
Unbreak Status -> System Logs -> DHCP due to chroot and new version of DHCPD.
Use pfSense_sync()
Reintroduce this optimization, but use the correct return value this time.
Unbreak sysctl handling.
No need to go through the array when the key can be tested directly.
Nuke trailing c/r
Not sure why sometimes works sometimes does not work when bound to localhost the lighttpd instance of CP. Back to previous setup! Though security of it is debatble.
Remove trailing carriage return
Kill dhcplease before writing the hosts file so that it does not scramble the content from kqueue events.
Ticket #980. Bring CP widget up to date. Also bind lighty for CP to 127.0.0.1 it should not be accessible otherwise.
More VPN log fixes, for consistency. Ticket #912
Rename 'name' to 'descr' for CA, Certificates, and CRLs, to gain CDATA protection and standardize field names. Ticket #320.
Make sure this is an array before entering the foreach loop. Reported at http://forum.pfsense.org/index.php/topic,29118.0.html
Fix syslog.conf generation. Ticket #929
Make this code more readble and clear on what it does.
Remove legacy code for static routes.
Oops fix long standing variable name mistype.
Remove legacy code
on newip event reload the static routes for that interface because on dynamic gateways the ip might have changed. While here make sure the interface argument is repsected on system_routing_configure() and use send_event to reconfigure an interface to aleviate a possible race.
Add as a search domain the domains suggested by dhcp.
Actually there is a script that will run ntpd on bootup. Revert partially the change to fix ntp.
Fix ntpd starting at boot time and also status->services checking/stop/start/restart display. Previously ntpd would not start at all either though it should.
CA/CERT Move
There are no interfaces stored in static routes. Correct code for that.
Fix declaration. Change 'global $configure' to 'global $config' tomake function work.
Also, remove reference to $syscfg variable not declared in newsystem_dhcpleases_configure.
Fixes #837. Fix the startup of dhcpleases during bootup. Also start the dhcpd service earlier there is not reason no to!
Default to 2 max procs
Fixes #717. Actually if no default gateway is found assume wan is the one.
Increase max requests to 2 so that requests can continue if a thread is blocked
Move this block down, and fix the log name. It was in the wrong place and preventing IPsec logs from reaching remote servers.
fix some of the logging for load balancer, still partially broken
Load cpufreq on nanobsd when enabling powerd. It's in the kernel on full installs. Fixes #704
Also teach system_routing_configure to have an interface as parameter so to reload only routes related to this interface when an interface is reconfigured.
Silence.
Fixes #652. Correct typo.
Only change max procs for captive portal configurations
Fixes #374. Actually reload teh dhcpleases utility whenever the hosts files is regenerated to avoid problems.
Fixes #622. Add a new file status for signaling default gateway under /tmp. dhclient script will check for this file to define if the interface needs a default gateway or not from its given routes.
Revert "Use a global array for the most part of using the return_gateways_array() function in the backend which should lower the memory allocated/cached by php a lot."
This reverts commit e51cf5960f6718a14c07daa7b6e96337fdba1f0e.
Use a global array for the most part of using the return_gateways_array() function in the backend which should lower the memory allocated/cached by php a lot.
Use nanobsd
Use !=
Nuke nonsense
Add back needed functions
Only check g['platform'] for nanobsd
Add missing functions and move check earlier since this only checks on bootup
Add system_identify_specific_platform()
Add reset button support to alix/wrap. Obtained-from: m0n0wall
Do not throw the error message unnecerssarily. It is legal on 2.0 to not specify default gw on 2.0 with pppoe/pptp links specified.
Reduce the amount of logic in system_routing_configure to check for existing routes. This code is in the same style as usedby Ermal. Ticket #507
Do not unconditionaly remove the default route and readd it. This should make system_routing_configure morereliably. Ticket #507stability
fix up text
Ticket #567. Create an entry on hosts file with the ip address of lan or the first inerface ip without a gateway if lan is not present.
Reload gateway groups when changing them.
Ticket #507. Do not remove all static routes to readd them back. The change will never delete a rule but define the action to be taken on it, either add or change a present route. Be consinstent on gateways allowed to be selected as destinations for static routes, including dynamic gateways.
Do not enable fastforwarding with ipsec. Silence command because default gw might not exist yet.
Fix typo.
Upps use correct variable. Reported-by: kaarposoft(forum)
Generate hosts entries for all ips configured.
Use the -s ident option of mpd to send the logs for the PPPoE/PPTP/L2TP servers to syslogs appropriate files. Create the files for these vpn's as for the others. Logs can be viewed in the VPN tab of the system log.
Resolve problems with dns server setup when allow override is set. Also add static routes for all nameservers to be friendly with multiwan.
Only fetch inet family routes.
Correctly configure the default route addition when interfaces are configured for pppoe/pptp. Handle in system routing configure dynamic interfaces. Also when chaning or configuring the defaultgw reconfigure the underlying interface, this helps when this interfaces are dynamics one.
Actually put it to background.
Put this on background to avoid delays.
Default to http.
Make sure we have initialized vars.
Allow the GUI auth API to be used for doing authentication against authentication servers specified. Teach Openvpn to use this API. Allow openvpn to authenticate against multiple servers that can be selected on the server configuration page.
Mute route delete message, regenerate resolv.conf as this also corrects static routes to the DNS servers.
Add support for authenticating users against server specified in the system->user manager->servers for openvpn. While there propperly fill the shared secret field for raidus in the servers page.
Fix several handling of gif/gre addresses and automatically added routes.
Stop fighting php bugs where a variable is not defined on one system yet it is defined on another.
Include item
Really unbreak sysctl handling
Unbreak default sysctl handling
Add some missing braces