summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
Commit message (Collapse)AuthorAgeFilesLines
* Simplify is_macaddr regex.Erik Fonnesbeck2011-03-021-1/+1
|
* Slight regex fix on is_macaddr - the previous regex was letting through a ↵jim-p2011-03-021-1/+1
| | | | mac without : separators, leading to improper validation and potentially invalid dhcp configs. Seen here http://forum.pfsense.org/index.php/topic,33830.0.html
* Pass the -a parameters to pgrep to be certain we search ancestors as well. ↵Ermal2011-03-011-1/+1
| | | | The side effects might be inoquos from the pfSense context.
* Ticket #802. During a config restore detect if the vlan interfaces need ↵Ermal2010-12-281-1/+14
| | | | reassignment too. This might be problematic for other type of interfaces on 2.0!
* Add log_auth() which with send items to syslogd using LOG_AUTH facilities. ↵Scott Ullrich2010-12-101-1/+18
| | | | Use this new log_authh() for login error and success entries
* Do not spam console with useless messages. Also remove killall not needed ↵Ermal2010-12-011-8/+7
| | | | anymore.
* Ensure returned item is an array.Scott Ullrich2010-11-231-6/+8
|
* Return CARP IP Addresses in get_configured_ip_addresses()Scott Ullrich2010-11-231-0/+4
|
* Fix filter_rules_sort's compare function to know about floating rules so it ↵Erik Fonnesbeck2010-11-101-0/+16
| | | | won't change their order.
* Remove trailing carriage returnScott Ullrich2010-11-101-1/+1
|
* * Adding function get_configured_ip_addresses() which returns all interfaces ↵Scott Ullrich2010-11-101-0/+15
| | | | | | | | | and their configured IP address * Add checkbox to System -> Advanced -> Admin for HTTP_REFERER checks * Add and enforce HTTP_REFERER check if checkbox is not checked. This will prevent HTML pages from crafting HTML GETs against the web interface and will prevent firewall admins from being "tricked" into clicking on links that may be harmful to their firewall.
* Protect from strange situations on bootup by testing for is_array(). Do not ↵Ermal2010-11-021-11/+17
| | | | add anymore the 127.0.0.2 route its not needed anymore. Also during bootup bring up all interfaces so the assignment process can deal with them(Possibly should be done in another code flow!).
* Make isvalidpid() know about pidfile the same as the other *pid functions ↵Ermal2010-10-291-5/+4
| | | | do.(consistency)
* Make safe_mkdir() create directories recursivelyRenato Botelho2010-09-221-1/+1
|
* If we fail to send an event to check_reload_status consider its not running ↵Ermal2010-09-221-7/+13
| | | | and try restarting it.
* Return list with WAN and LAN interfaces in the configured order rather than ↵Erik Fonnesbeck2010-09-151-47/+14
| | | | giving special treatment, as is already done with the OPTx interfaces.
* Revert "Reorder the way this list (get_configured_interface_list) is ↵Erik Fonnesbeck2010-09-151-7/+9
| | | | | | generated to make it more beautiful." This reverts commit 144d0e793de61366340758b28f169c3afeeba922.
* Reorder the way this list (get_configured_interface_list) is generated to ↵gnhb2010-09-161-9/+7
| | | | | | make it more beautiful. I know you guys said don't bother, but it's just cosmetic, and it took 10 seconds.
* Do stricter validation of host names and domain names.Erik Fonnesbeck2010-09-141-2/+2
|
* Use the new events mechanisms to dispatch events.Ermal2010-09-071-3/+31
|
* Use exec() for is_process_running since system() displays command output(not ↵Ermal2010-08-311-1/+2
| | | | sure why). Also handle captiveportal specially and use proper function to start/stop it.
* Ticket #485. Correct code and use pkill/pgrep to match or kill process. ↵Ermal2010-08-311-12/+6
| | | | Since these utilities know how to handle pidfiles and exact matches on process names.
* Add l2tp where missing. Also add l2tp and igb to altq capable interfaces.Ermal2010-08-161-2/+2
|
* Add sysctl functions that support getting/setting multiple values in a ↵Erik Fonnesbeck2010-08-041-0/+61
| | | | single call.
* use more efficient is_macaddr from bblacey on forumChris Buechler2010-07-271-16/+2
|
* This code returned the size in kilobytes, while the part usually used ↵Erik Fonnesbeck2010-07-011-1/+2
| | | | returns megabytes.
* Be more strict when doing checks for empty values.Ermal2010-06-221-2/+2
|
* Add array_merge_recursive_unique which was called in xmlrpc.php but did not ↵jim-p2010-06-111-0/+51
| | | | yet exist. Fixes #645
* Do not show ipfw0 for assignment.Ermal2010-05-251-1/+2
|
* Various fixes to usage of ip2long, long2ip, and negated subnet masks, mostly ↵Erik Fonnesbeck2010-05-201-8/+18
| | | | affecting 64-bit. Ticket #459
* Ticket #544. Restore locking, seems w+ migh already lock the file sometimes. ↵Ermal2010-05-131-5/+5
| | | | While there improve the locking to a read/write locking schema. Make the default locking a read only lock and if explicitly specified a write locking can be specified through LOCK_EX optional parameter to lock(). During config manipulation do the filesystem mounting in rw, if needed, before doing any locking to avoid possible problems and also to be consistent through out the code on the method used. Also update calls to config to lock exclusively where required.
* Ensure the URL table file is not empty at this step.jim-p2010-05-121-1/+1
|
* Add a new alias type, urltable, which downloads a file of IP/CIDR addresses ↵jim-p2010-04-211-0/+16
| | | | 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
* Remove bogus char. Spotted-by:gnoahb@Ermal2010-03-291-1/+1
|
* Restore tun interface because it is still used by openvpn.Ermal2010-03-291-1/+1
|
* Changes to make PPP work again. mpd5 fails to establish a ppp link withoutgnhb2010-03-291-1/+1
| | | | | | | | | | | | | | *some* username and password, so defaults are set if user enters nothing. Removed interface_ppp_configure call from interfaces_ppp_edit.php. It was useless there with the new structure, and it caused all PPP links to attempt to connect when user presses "Save" even before they are assigned to LAN/WAN, etc. Also, fix up pfsense-utils.inc and status_interfaces.php to display more info on status_interfaces.php. Changed util.inc to allow cua* interfaces to be recognized as real interfaces as pfSense got "interface mismatch" at boot and forced user to reassign. Maybe someone else has a better way to do this.
* Use alias style when creating aliases in wizards.Ermal2010-03-191-1/+0
|
* Ticket #417. Fix installation on embedded by using a refcount system for the ↵Ermal2010-03-171-1/+5
| | | | mount command.
* Generalize.Ermal2010-03-171-3/+3
|
* Use procatat instead of ps as the latter always prints a header, alsothompsa2010-03-121-1/+1
| | | | use full paths.
* '\b' is not the word boundary on BSD, its actually '[[:<:]]' and '[[:>:]]',thompsa2010-03-121-1/+1
| | | | change these functions to use better syntax and not grep at all.
* Return the data after unreference, it might be needed.Ermal Luçi2010-03-091-0/+2
|
* Use shmop module to implement reference count calls.Ermal Luçi2010-03-081-0/+29
|
* Adding support for using IP ranges aliases. If you input an IP Range such as ↵jim-p2010-03-071-0/+121
| | | | 192.168.0.1-192.168.0.254, it will instead turn that into a number of CIDR networks which will completely fill the range.
* Till the flock issue is fixed open the races doors, place your bets please!Ermal Luçi2010-03-051-3/+3
|
* Do not show pppoe/pptp/l2tp interfaces for assignment.Ermal Luçi2010-03-051-0/+3
|
* Change method of displaying wireless clone interfaces on the assignment page.Erik Fonnesbeck2010-02-231-3/+4
|
* Move most of the code for dealing with wireless clone interface names to ↵Erik Fonnesbeck2010-02-231-10/+4
| | | | separate functions.
* Missing a part of the last change. Also use bssid for the first wireless clone.Erik Fonnesbeck2010-02-131-1/+1
|
* For now, don't count any wireless clones as mismatches unless the base ↵Erik Fonnesbeck2010-02-121-4/+10
| | | | interface doesn't exist.
OpenPOWER on IntegriCloud