summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Allow secondary wireless clones in interface list.Erik Fonnesbeck2010-02-121-1/+1
|
* Ticket #309. Correctly fix the problems of intermediate config lost because ↵Ermal Luçi2010-02-011-0/+8
| | | | of inclusion of config.inc. This might have speed impacts to be measured.
* Ticket #315. Do not show the cloned wireless devices for assignment.Ermal Luçi2010-01-291-1/+1
|
* if gzsig is missing, return error verifying signature rather than invalid ↵Chris Buechler2010-01-131-1/+1
| | | | signature.
* Resolves #279. Do not show vlans as parent interfaces for other vlans.Ermal Luçi2010-01-121-2/+3
|
* fix typoChris Buechler2010-01-031-2/+2
|
* Restore interface list for vlan interfaces.Seth Mos2010-01-021-3/+2
|
* Fix var names/Ermal Luçi2009-12-301-1/+1
|
* Ticket #261 Do not consider ports as hostnames. This changes the is_port ↵Ermal Luçi2009-12-301-8/+10
| | | | function to consider ':'(ranges) as ports. This seems a previous feature i do not agree with much, but users decide right?!
* Replace some occurrence of /tmp with the propper global variable in attempt ↵Ermal Luçi2009-12-281-2/+4
| | | | to minimize the search for what changes /tmp permissions.
* remove notice that unnecessarily appears on every clean installChris Buechler2009-12-261-1/+0
|
* If the port passed as argument is a range(having - in it) this function ↵Ermal Luçi2009-12-231-0/+2
| | | | would still return true as a bad habit of intval. Fix this so it behaves correctly.
* * Fix alias handling around the repo.Ermal Luçi2009-12-221-1/+1
| | | | | | * Add new function filter_expand_alias to allow expanding single alias. * Fix reflection rules generation(missing the target variable) * Propperly identify duplicate lines in inetd.conf generated.
* Add IP alias and 'any' support to OpenVPN. Feedback #69pierrepomes2009-12-101-0/+19
|
* Allow specifying services/ports in firewall rules or nat rules by their ↵Ermal Luçi2009-12-081-0/+2
| | | | /etc/services name.
* Revert "Correctly unset rules when switching disabling AON."Ermal Luçi2009-12-081-2/+0
| | | | This reverts commit 989e5d62da2f7f6dad2bb55d20d2558cfb3fa34a.
* Correctly unset rules when switching disabling AON.Ermal Luçi2009-12-081-0/+2
|
* Try to prevent empty interfaces.Ermal Luçi2009-12-071-1/+1
|
* Ticket #146 Fix typos ansd copy/pasto errors.Ermal Luçi2009-12-041-6/+2
|
* Do not output plugin name during boot:sullrich2009-12-031-5/+2
|
* Resolves #146 Add propper validation on alias usage. Allow port type aliases ↵Ermal Luçi2009-12-031-24/+28
| | | | only on port side and other aliases in ip specifications and similar. Introduce a new function is_portoralias to ressemble the is_ipaddroralias to check for the cases.
* Fix get_configured_carp_interface_list: use the right interface name using vhidpierrepomes2009-11-301-1/+2
|
* Add is_URL()sullrich2009-11-271-0/+15
|
* Nuke alert. Resolves #125sullrich2009-11-271-1/+0
|
* Cons25 supports color as wellScott Ullrich2009-11-241-0/+2
|
* Update doc headerScott Ullrich2009-11-221-20/+20
|
* Allow specifying colors by their nameScott Ullrich2009-11-221-2/+23
|
* Return color code, not echoScott Ullrich2009-11-221-1/+1
|
* Add function header markup for doc generation. Add color() function that ↵Scott Ullrich2009-11-221-1/+58
| | | | will output a color ansi sequence if the terminal supports it. No arguments to color will reset the terminal
OpenPOWER on IntegriCloud