Include .inc files for plugin system
Add function header
Adding a new hook system for firewall nat edit and firewall rules edit page.Basically if the directory exists it will suck in the files to extend these pags.
/usr/local/pkg/firewall_nat/input_validation/usr/local/pkg/firewall_nat/pre_write_config/usr/local/pkg/firewall_nat/htmlphpearly...
Correct code to use correct refernces for proxy settings set in Advanced->misc. Reported-by: http://forum.pfsense.org/index.php/topic,36939.0.html
Correct curl setting for setting a proxy username and password. Reported-by: http://forum.pfsense.org/index.php/topic,36939.0.html
Fix small typo
MAC prefix to vendor resolution at Status->Interfaces, Status->DHCP leases, Diagnostics->ARP table
Resolves #1529. Check if the file exists before opening it.
Add an option under advanced->misc to specify a proxy for retreiving pfsense package info or downloading packages.
Suppress curl errors (if we get a 404 it tosses its own error if there is no response body, just a 404 code.)
Make update check a little more robust. Timeout after a few seconds, and if we get a non-200 http code, ignore the response.
In update_alias_names_upon_change function add capability to access more deeply nested sections and fields.
Generalize pppoe server enabled check and use it elsewhere in the GUI that needed fixed. Still needs changes in filter.inc - Ticket #1243
Fix a date compare bug, resolves #1273
Scroll the textarea to bottom on each update
Take into account< 10 too
When installing packages on console (downloading) only show every 10% meaning 10% 20% 30% instead of 1% 2% 3% 4% 5%, etc
nuke trailing carriage returns
Prevent division by zero if the file size is zero.
Actually we expect an array to be returned.
Hello xmlrpc to another function!
Tighten checks a bit also when check_firmware_version is called return the config version too.
Use send_event since touch()'ing files does not work.
Do not call filter_configure here the caller does. Also remove old code of the times when check_reload_status used files as trigers.
Use pfSense_sync()
Remove extraneous ')'. So much for php -l
Rework this loader.conf changing code a bit. Might help with ticket #560
Use php_uname where possible.
Nuke trailing c/r
Ticket #1023. Correct carp status even on the status page.
Ticket #1023. Correct the widget code bringing it full speed with latest carp code.
Upon restoring a config, replacing whole sections, or editing config.xml in edit.php, prevent possible accidental lockout from DNS rebind and HTTP referrer checks by disabling them until reboot or the next time they pass, whichever comes sooner. Ticket #1027
Fix problem with syslog adding/removing for pacakges. Fix sync pacakges to call the right functions. Optimizations and code cleanup along the way.
Clear up some code.
Boost timeout for file downloads to 60 seconds
Separate this into the original case with the floating rule cases above it to fix some scenarios where the order was still wrong.
Move this function to allow removing it from easyrule.
Use php calls rather than forking to shell.
Remove trailing carriage return
Add function to convert pfsense slice name to product name.
Add additional acceptable version strings.
Use foreach and check for type to avoid errors.
Use the new events mechanisms to dispatch events.
Remove not existing function reference. Pointy-hat: myself
Setup polling per interface rather only at bootup. This is a proper fix and a optimization on large interface cases. Also setup_microcode and polling defaults before configuring interfaces.
Fixes #88. Actually fix all the mess that was caused by setup_microcode() which overwrote the whole decisions being made on boot from other code. Solve this by moving the setting of all interface capabilities to interface_configure() and just leaving microcode setup to setup_microcode. Also optimize and make more readble the polling setup if activated/deactivated. This also fixes the ticket issue because the settings are now kept after booting up and not overwritten by other code.
Add l2tp where missing. Also add l2tp and igb to altq capable interfaces.
Refine the setting/checking of these variables a little.
Disable SSL peer verification in cURL. Also, explicitly set FOLLOWLOCATION to make sure that we can redirect properly. Both of these are needed to fix snort rule downloads.
Use the real interface list in setup_microcode() Fixes #705
Add checkboxes to disable TSO and LRO since some drivers will misbehave with them set. Resolves #703
Add build-time comparison also.
Modify pfsense-utils and status_interfaces.php so Uptime is shown for all PPPx type links.
Fix up for new ptpid scheme and iface name scheme.
Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp
Trim the output. This only nails you if your interface is last in the list.
Conflicts: etc/inc/interfaces.inc etc/inc/pfsense-utils.inc
Make display of interface name and uptime work again on status_interfaces.php
One more $if changed to $ifdescr and remove unneccessary line.
Revert "One more $if must change to $ifdescr"
This reverts commit a045b3270f13f39908beb875ede4e75f565e12e9.
Not correct.
One more $if must change to $ifdescr
Merge branch 'master' of rcs.pfsense.org:pfsense/mainline
Some $config variable referencing $if but $if is not defined.
Change $if to $ifdescr to restore normal functionality.
Use the module functions to set/remove/test interface capabilities.
First steps for 3g serviceproviders support
o Move xml2array from rrd.inc to pfsense-utils.inc because it'll be used on non-rrd related placeso Add necessary require_once() calls to pfsense-utils.inc on places that are calling xml2array()o Add serviceproviders.xml, obtained from [1]...
Conflicts: etc/inc/pfsense-utils.inc usr/local/www/interfaces.php
Ticket #444. Use noatime even here.
Do not run netstat but use pfSense_get_interface_stats to gather interface statistics. This speedups a lot on nanobsd which needed some time to generate the statistics especially with dashboard
Ensure config.cache does not exist so the subsequent requests can cleanly reload the configuration. Ticket #601
Move get_include_contents function to pfsense-utils.inc
Conflicts: usr/local/www/interfaces.phpNot sure why there was a conflict since the last change to this file was May 20.
Add a GUI field to let the user configure the maxium table entries size. Resolves #588NOTE: Actual tables, not states.
New code working with PPP connections, and probably PPPoE/PPtP but I haven't tested yet.
It makes the proper mpd config files for PPPoE and MultiLink PPPoE.
Use "PPPs" as the new Tab name in Interfaces -> Assign. Rename files and update affected files.
Also, add upgrade_config function 062_to_063.
Remove unused function.
Fix up code to make ppp work again with new interface naming structure.
New interface naming for all PPP (point to point) links is that interfacesin the ppps config section will be numbered from 0 to n and the numberwill be appended to the link type (ppp, pppoe, pptp) to create the interface...
Improve NAT Port Forwarding
The console menu does not show if the terminal type is not cons25 - not sure why. Changed to cons25 to allow the menu to work on the serial console when enabling it through the web GUI. Ticket #316
Improve NanoBSD slice updating/changing a bit, add some error checking. Resolves #534.
Relocate some NanoBSD functions to a central place. Change NanoBSD diagnostics and system info widget to use the new code. Ticket #533 and some prerequisite parts of Ticket #534.
Add a new alias type, urltable, which downloads a file of IP/CIDR addresses and loads them into a pf persist table instead of importing the addresses directly into a traditional alias. This allows for using huge tables of addresses that would otherwise break the GUI and/or fail to load into pf. Part of ticket #512
Beef up the version comparison code. This should let us compare several combinations of local and remote versions and properly determine if the current version is older or the same as the remote version.
Make PPP redial when the connection is dropped. Also, fix PPP uptime display.
Remove unnecessary variables.
Implement reporting and logging of historical PPP uptime with data persistent through reboot.
Also, change the way uptime is captured. The mpd console is no longer used toget PPP uptime data, which will prevent spamming of PPP logs with console access messages....
Changes to make PPP work again. mpd5 fails to establish a ppp link withoutsome username and password, so defaults are set if user enters nothing.Removed interface_ppp_configure call from interfaces_ppp_edit.php. It wasuseless there with the new structure, and it caused all PPP links to attempt...
Fix a few small bugs in new PPP code, and one type in pfsense-utils.inc
Ticket #447. Handle multiple instances propperly.
Redo most of the ppp interface handling to be consistent with the other mpd5 configurations. This way there is no more special handling for ppp around.
I have PPP with mpd5 working really well now, including setting the APN and APNNumber, and the SIM PIN and wait time for the SIM to settle after the PIN isentered.
Still no work on multilink PPP with serial port links.
Right now the code creates the mpd.secret file. I tested it using the set auth...
Add unzip support if unzip binary exists
Add alias data url option. This code existed but lacked a backend daemon to update the data every 24 hours. Adding this as well.
Ticket #434. Do not die when parsing config since we know how to recover. Only die during packages.
fix text
Use pgrep/pkill to save a bit of cpu.
This may break booting so try only 100 times and fail gracely in case of error.