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.
Fix console auto-login.
Do not spread checking for value accross code. Do it in the function that is supposed to do it.
Put safe_write_file to the include it belongs to.
Ticket #255. Fix get_interface_info output to return propper ip address by using pfSense_get_interface_addresses function.
Adding from RELENG_1_2: safe_write_file() Writes a file out atomically by first writing to a temporary file of the same name but ending with the pid of the current process, them renaming the temporary file over the original.
Make sure the item passed is a string!
Fix output errors and collisions counters. The output of netstat added a column so they were using the wrong data.
Unbreak default sysctl handling
If config['system']['altpkgrepo']['username'] and config['system']['altpkgrepo']['password'] then pass along these values to the XMLRPC layer so we can use password protected pkg servers
These patches give you a display of the uptime of the active PPP linkon the "Status-> Interfaces" page, and also logging on /conf (tosurvive reboot) of uptimes of each session after it is closed. Inaddition, the status_interfaces.php page displays the cumulative...
Fix failure on opening gettytab fir writing.
Start using the new utility for monitoring dns hostnames used in aliases.
Latest PPP changes from 'BG'. Reformat this royal mess of formatting while I am here.
Set 2nd parameter for isAllowedPage. Will be required for #34, 33, 32
Process old entries, too
Update ttys serial lines. Resolves #165
To prevent collisions with the sio(4) driver, the uart(4) driver uses different names for its device nodes. This means the onboard serial port will now most likely be called "ttyu0" instead of "ttyd0". You may need to reconfigure applications to...
sysctl kern.polling.enable=0 has been phased out. Simply run ifconfig interface polling or ifconfig interface -polling. Ticket #124
Make sure to get the wireless status from the correct interface.Add support for the rssi, rate and base station mac.
Return up instead of running
Use get_real_interface() and does_interface_exist()
Unbreak status -> interfaces. TODO: Unbreak Disable Carp button
Handle PPP interfaces
Correctly handle PPP interfaces with get_interface_info()
Add a new (unlinked) page which allows entering a custom pkg repo URL
Reviewed-by: scott@ and billm@
If /etc/spwd.db.tmp exists remove it before running pwd_mkdb
Pass origname instead of relying on a global
Check for interfaces with same name as alias. Ticket #92
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additions
Add split() wrapper so that when split() is removed from php 6 we will not have any extra gotchas. Resolves #57
Move functions to pfsense-utils.inc since they can be called from either console or gui side
Move download_file_with_progress bar back to shared are where it belongs. These functions can be called from both console and the webConfigurator. Unbreaks pkg operations on bootup such as resinstall broken packages
Move growl related functions to notices.inc
Silence dnscache message into a debug check
Trim results
Return