summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
Commit message (Collapse)AuthorAgeFilesLines
* Revert "adding privileges and separating DNS Resolver overrides from general ↵Chris Buechler2016-06-231-8/+0
| | | | | | settings" This reverts commit fc76a1e390c8ce9579df31457c74d1d0e572b78d.
* Remove duplicate listtags() entry 'member'.NOYB2016-06-222-2/+2
| | | | (cherry picked from commit 40d7e4bee91246db09cc88141869abcd37390bc7)
* Remove subnet_expand()stilez2016-06-221-24/+0
| | | | | Function isn't used in main or packages repo, and in any case would need a complete rewrite to handle IPv6. (cherry picked from commit 6215902c4043726e633fcfac1c37c710ac398653)
* Fix bad escapeshellarg logic on mpd executionNewEraCracker2016-06-221-2/+3
| | | | | | With this change single-quotes are applied in correct places (cherry picked from commit 08cd022545be58a46b860500ff81bbe7438b6304)
* missing "("stilez2016-06-221-1/+1
| | | | (cherry picked from commit 70381d4803b9424c1a3f3ef518d8243062452d77)
* optional arg for old behaviourstilez2016-06-221-3/+4
| | | | (cherry picked from commit cf63f1638aab685cc956502f5ddd862a10bf3ff8)
* Simplify convert_seconds_to_hms() and show days for large numbers of hoursstilez2016-06-221-22/+12
| | | | | | | 1) Function can be simplified and all "if" statements removed, using intdiv (or casting result as int for PHP < 7) and % for calcs and sprintf for padding. 2) Input validity check before trying to convert format 3) If time represented is large (eg uptime might be several months) then hours becomes unhelpful, it's clearer to show "4921:02:06" as "205d 01:02:06". (Leading "days" value not shown unless >=1 for simplicity) (cherry picked from commit 0bde6d1057ed39c8ef650a5a505cf9ae5eb7199e)
* Use global backup count instead of hardcoded value and remove redundant functionstilez2016-06-221-12/+1
| | | | (cherry picked from commit 01b5410ae8391998ba560d40f447c7f556472c5b)
* set default_config_backup_count based on platformstilez2016-06-221-2/+8
| | | | | At the same time the platform is being detected for PHP/GUI purposes, set the default number of backups. Also handle the case where (for any reason) detection fails, which it shouldn't, so the variables are still created (cherry picked from commit 09a283948eada745bc10b852e63b7dec50fb69d4)
* Add missing recommended key lengths to OpenVPN optionsstilez2016-06-221-1/+2
| | | | | | | | | Add key lengths to the OpenVPN options, for asymmetric keys of size 3072 (for current use), 7680, 15360 (for long term resistance), 8192 and 16384 (common binary exponents). These are both supported by OpenVPN anyhow, and for certain uses are currently recommended (eg long term resistance to replay/decryption). See keylength.com for citations. This PR would only affect OpenVPN, and OpenVPN supports these key sizes, so should not cause any issue. (cherry picked from commit 0693c96797f7d5dfa097d24070e2bd4c9528d0e7)
* Make QinQ interfaces work againChris Rowe2016-06-221-8/+8
| | | | (cherry picked from commit 1322ee22354f1a6e184819fb7009a2996b63de97)
* Allow IGMP Proxy logging verbosity to be selected via system log settings ↵Stephen Beaver2016-06-221-1/+6
| | | | | | (PR 2901) (cherry picked from commit 2bd0585e30e5ec8fc3b79ca3f579bf9a7c1bcbc8)
* adding privileges and separating DNS Resolver overrides from general settingsJoe2016-06-221-0/+8
| | | | (cherry picked from commit fc76a1e390c8ce9579df31457c74d1d0e572b78d)
* Only call interfaces_vips_configure once if it's needed, rather than doing ↵Chris Buechler2016-06-211-1/+5
| | | | the same thing over and over for every VIP on an interface. Ticket #6515
* Fix styleChris Buechler2016-06-211-3/+5
|
* require_once auth.inc in vpn.inc since it uses functions from there, though ↵Chris Buechler2016-06-211-0/+1
| | | | normal use of the system won't require that, those who run certain things manually/custom may require it
* Only omit aggressive line from ipsec.conf where IKEv2. Ticket #6513Chris Buechler2016-06-211-1/+1
|
* Set kern.corefile, fixes #6510jim-p2016-06-211-1/+2
|
* Use escapeshellarg on shell calls in auth.inc. Ticket #6475jim-p2016-06-091-10/+18
|
* Implement pkg_valid_name()Renato Botelho2016-06-081-0/+8
|
* Set keepalive_timeout 0 where captive portal in use, and update otherwise to ↵Chris Buechler2016-06-031-1/+3
| | | | nginx's current default of 75. Ticket #6421
* Use 0 here if specified. Ticket #6413Chris Buechler2016-05-271-1/+1
|
* Fix this missed one.NOYB2016-05-251-1/+1
| | | | (cherry picked from commit f42ef69ab518237260a2e129cbdf391549c003ad)
* Firewall / Aliases / Edit - New URL Table Alias TypeNOYB2016-05-252-12/+13
| | | | | | Make the code cleaner and easier to follow by using the same alias type designations as config. (cherry picked from commit ebe833f6a9463b0e4add1d97c360af4a682d1add)
* Firewall / Aliases / Edit - New URL Table Alias TypeNOYB2016-05-251-2/+3
| | | | | | Need to pass alias type to process_alias_urltable() function when creating a new url table alias because it is not yet set/available from config. So the alias_get_type() function can't be successfully used yet. (cherry picked from commit 3b07f4feaf35e70700082240ef03966f74f5df97)
* Lower default LDAP timeout to 5 seconds. Idea from Sandeep1991 in PR 2971. ↵Chris Buechler2016-05-241-4/+4
| | | | Ticket #6367
* Set PHP's memory limit to 512M on 64 bit. Ticket #6364Chris Buechler2016-05-241-2/+2
|
* Customize limiter info messagePhil Davis2016-05-161-3/+8
| | | | | | The $dn_default_shaper_msg is what is displayed on the Limiters tab. It needs to talk about "limiter" rather than "queue". This code builds up each message using the same base template sentences, inserting "queue" or "limiter" in the appropriate place. (cherry picked from commit aadc135856a0dc2cb131aeda3fd7bc44c11ab123)
* Fix script name in error logChris Buechler2016-05-151-1/+1
|
* Fix misspellings.Chris Buechler2016-05-151-3/+3
|
* Disable ipcomp regardless of config setting to avoid problem. Ticket #6167Chris Buechler2016-05-131-1/+2
|
* Silence mwexec output. Now that the groupdel actually works, it spams the ↵Chris Buechler2016-05-131-1/+1
| | | | log when group isn't found. Ticket #6352
* Unbound and dnsmasq can both be enabled so restart both if need bek-paulius2016-05-131-4/+6
|
* Fix scope for IPv6 link local gateway IPs. Ticket #6353Chris Buechler2016-05-131-1/+1
|
* Handle link local IPv6 gateways and default gateway switching correctly. ↵Chris Buechler2016-05-131-0/+11
| | | | Ticket #6258
* Don't start unbound in track6 config if system is booting. Add dnsmasq here ↵Chris Buechler2016-05-121-1/+5
| | | | as well. Based on PR 2943. Ticket #6186
* Use -g with groupdel when passing a GID. Ticket #6352Chris Buechler2016-05-121-1/+1
|
* Fix #6278Renato Botelho2016-05-121-3/+3
| | | | | | | | | $cpzone is always in lowercase, it's used as the array key used in config.xml. Use it in two cases where the $cp['zone'] was being wrongly used: - To find out zoneid - To replace PORTAL_ACTION url
* Store notices safely to prevent potential XSS when notices are displayed ↵Chris Buechler2016-05-121-5/+5
| | | | locally or by remote systems where they're shipped. Ticket #6154
* Fix package_reinstall_all post-upgrade when packages have been removed in ↵Chris Buechler2016-05-121-5/+5
| | | | pre_upgrade. Ticket #6137
* Tweak upgrade - Remove unused code and document changes betterNewEraCracker2016-05-112-10/+8
| | | | This will ensure a smooth upgrade for those running config 15.4 to any next version.
* Prefer index.php over index.html where both exist.Chris Buechler2016-05-111-1/+1
|
* Only execute remote search operation on first call of get_pkg_info(), this ↵Renato Botelho2016-05-111-0/+18
| | | | should fix #6177
* Revert "Add config upgrade code to update package names. Ticket #6118"Chris Buechler2016-05-112-14/+1
| | | | This reverts commit 291fad43870bdb39ef0ab32125b022e268a29cf7.
* Check for is_array here to avoid possible issues if the config.cache is ↵Chris Buechler2016-05-101-1/+1
| | | | invalid. Adapted from PR 2925
* A simple fix for #6120Renato Botelho2016-05-091-14/+0
| | | | | - Retire system_console_configure() - Replace above call on rc.bootup by setup_serial_port()
* Update L7 config upgrade code removal. Only file notice if it was actually ↵Chris Buechler2016-05-081-1/+5
| | | | in use, otherwise it just confuses people.
* Add config upgrade code to update package names. Ticket #6118Chris Buechler2016-05-082-1/+14
|
* Miscellaneous Textual Correction - Firewall / ShaperNOYB2016-05-071-7/+7
| | | | (cherry picked from commit c3ebf3470402080bbddb709325611e7120eb3c0f)
* Workaound fixes #6320Stephen Beaver2016-05-071-3/+2
| | | | (cherry picked from commit d1c57eb8e1699f36a3ccda53cef2e28b10eeca92)
OpenPOWER on IntegriCloud