summaryrefslogtreecommitdiffstats
path: root/src/etc
Commit message (Collapse)AuthorAgeFilesLines
* Add a function to normalize CR and CRLF-style newlines to Unix LFdoktornotor2017-03-021-0/+6
| | | | | See Bug #5306. (cherry picked from commit 117776e0c01e68a8b65584d86d7b8b56fe75c9d0)
* Services - Status Icon - Sort OrderNOYB2017-03-021-5/+8
| | | | | | | | | Make status column sort order work correctly with the icons. Also refactor get_service_status_icon() output string construction to be cleaner and clearer. (2.4, 2.3) (cherry picked from commit 446505a9f9be7f43e4515658f1a5444bc3732a3f)
* certificatemanager, link certificate to the proper CA after completing the ↵PiBa-NL2017-03-021-4/+2
| | | | | | CSR request (cherry picked from commit 7fd7fbcff3304285f4407bec2ae62bab7195bcc4)
* Fix the pkg_call() and set the timeout to a sane value (Bug #6594)doktornotor2017-03-021-2/+2
| | | | (cherry picked from commit 9c91c7bd747074b8cdaa90e8810f0c2df081f72d)
* Use the same cache filename pattern for RFC2136 IPv6 items as used by dyndnsRenato Botelho2017-03-021-1/+1
|
* Use | to separate dyndns IPv4 fields on cache file as done by rfc2136 items ↵Renato Botelho2017-03-021-3/+3
| | | | and for all IPv6 items
* Fix #7299 and other stuffPhil Davis2017-02-261-1/+1
| | | | | | | | | As far as I can see, filter_generate_user_rule() is always supposed to be called with 'ipprotocol' set to 'inet' or 'inet6'. The cases of rules for both ('inet46') are handled by calling filter_generate_user_rule() twice, passing 'inet' then 'inet6'. So at this point, if 'ipprotocol' is blank, then it is from an old rule, and it [can|should|must] default to 'inet'. This would provide a generic fix for old rules that do not have 'ipprotocol' specified. The other thing that could be done is make some upgrade code that fills in 'ipprotocol' on old rules at upgrade.
* Only start dhcpleases if DHCP server is enabled (Bug #6750)doktornotor2017-02-221-3/+6
| | | | (cherry picked from commit 3d8b01e8c6392b4177572d540c8160c7e6e071ca)
* Captive portal: fix "Disconnect All" buttonplumbeo2017-02-211-0/+1
| | | | (cherry picked from commit 4fb2b17772928f39add5fc0529e94ed07a09de31)
* Fix #7257: Use pfSense-upgrade to look for new versionsRenato Botelho2017-02-141-7/+15
|
* Revert "Add privs to control display of notices"Renato Botelho2017-02-131-8/+0
| | | | | | Fix #7051 This reverts commit 04665e78537906f7375668ca665cba17f95a4864.
* Revert "Use cached groups in get_user_privileges"Renato Botelho2017-02-131-33/+10
| | | | This reverts commit 855826896509a1a0bec77a51535a8f004b4ca570.
* Use cached groups in get_user_privilegesPhil Davis2017-02-131-10/+33
| | | | (cherry picked from commit 7abc3f992e5dd5bff53495844ce944163d6d1d9b)
* Fix ldap_get_groups return value when downPhil Davis2017-02-131-2/+2
| | | | | | | | | | | In some places ldap_get_groups has: ``` return memberof; ``` It should have the "$" in front, so it will return the $memberof array (that is empty when this happens). This causes issues for callers that expect to have a return value that is either false, an empty array, or an array of the groups. (cherry picked from commit 0241b34f1a33c3ae83fdf817c8c374b10775335a)
* Update version string at end of boot RELENG_2_3Phil Davis2017-02-121-12/+18
| | | | | | | | | | | | When there is an upgrade, the echo here was outputting a stale value of the version. For example, on first upgrade from 2.3.3-DEVELOPMENT to 2.3.3-RC the console had: pfSense (pfSense) 2.3.3-DEVELOPMENT amd6 Sat Feb 11 14:24:27 CST 2017 Bootup complete FreeBSD/amd64 (myhost.localdomain) (ttyv0) *** Welcome to pfSense 2.3.3-RC (amd64 full-install) on myhost *** That is a bit confusing for users to be sure which version it is at this point.
* Bump version to 2.3.4-DEVELOPMENTRenato Botelho2017-02-101-1/+1
|
* 5th trylukehamburg2017-02-101-1/+1
| | | | | | - change $do_ping default value to 'true' (which emulates the previous default behavior) to avoid any unexpected results (cherry picked from commit 20cf8d8e20fa28c16e86ce0d91e57e4d78427d26)
* 4th attempt!lukehamburg2017-02-101-3/+7
| | | | | | - Reworked based on recent comments from @rbgarga (cherry picked from commit c516cb287a78f7b05459e7fcba410f443d8eb8af)
* 3rd try!lukehamburg2017-02-101-9/+8
| | | | | | - incorporate suggestions from @rbgarga with slight modification (cherry picked from commit 6c2f093000b05285546e81dd1a578fc9b573b72b)
* 2nd try. . .lukehamburg2017-02-101-11/+14
| | | | | | | | | | | /etc/inc/util.inc: - arp_get_mac_by_ip() updated to support IPv6 - attempt at code streamline /usr/local/www/services_dhcp_edit.php: - streamline code, now just a simple call to arp_get_mac_by_ip() (cherry picked from commit dd83f869b79a858bd74c7a8bb4adcd49217445b0)
* Add a pfSense php shell playback script to show the gateway status. Ticket #7046jim-p2017-02-101-0/+3
|
* Add a function to format and return plain text output showing the gateway ↵jim-p2017-02-101-0/+43
| | | | status, for use by a shell script and status.php. Ticket #7046
* Add playback scripts to drill into pf tables and anchors to list their contents.jim-p2017-02-102-0/+62
|
* Require Name field in ShaperPhil Davis2017-02-101-4/+4
| | | | (cherry picked from commit 40dcb4b61a2c1213a0b3e213c78fddac845a0117)
* fbegin.inc and fend.inc obsoletePhil Davis2017-02-071-0/+2
| | | | (cherry picked from commit 5af0922d75724e1eac89017173457f57842387f8)
* implement AWS API v4 signingJason D. McCormick2017-02-072-29/+17
| | | | (cherry picked from commit ac5ee07ee1daef2f43e728895290ca6d11efe0f3)
* commit initial fix; need to add hooks for region to zone idJason D. McCormick2017-02-072-14/+50
| | | | (cherry picked from commit cb5961d1fa64a45cbec5ef5d677b57f8d62f50b5)
* Simplify logicRenato Botelho2017-02-031-14/+11
|
* Set ntp gps mode for pgrmf even if no other modes are being set.jskyboo2017-02-031-1/+1
| | | | (cherry picked from commit 821110e8ff76564c23783c554fc89cd9458683ac)
* Add to NTP GPS processing of PGRMF sentencejskyboo2017-02-031-0/+3
| | | | (cherry picked from commit 6924a2bf34a70cd33284a28ca3575f33f9834375)
* get_service_status_icon fix description_state formatPhil Davis2017-02-011-59/+3
| | | | | | | | | If "description_state" is requested here, there are too many "%s" substitutions in the string for sprintf(). Also, to help translators, number all the "%s" substitutions. Then translators can rearrange the text and variable order if they need to. I removed the commented-out get_service_control_GET_links() while I am here, because it also contained sprintf() strings that had multiple "%s" substitutions. So I had found it when searching for lines containing multiple "%s". Might as well remove it "in the next version" as the comment says. (cherry picked from commit b3119a61c8f5841f92e2c1fe945f90d9e98a843c)
* Remove unused broken functionsdoktornotor2017-02-011-47/+0
| | | | | Not sure what was the idea here, but these are not used anywhere, do nothing as they immediately call ```return false;``` plus the second one is also misnamed. (cherry picked from commit edba33b5a567ab8c9d4827fa26a25bd9649e3fac)
* Misc cleanups at get_pkg_info()stilez2017-01-301-34/+34
| | | | | | | | * rename function args to be clearer what they do ($local_only was quite ambiguous, at first sight it could mean any of: "don't update local catalog copy", "only check local catalog copy", or "only report local installed pkgs") * merge nested if () conditions * refactor minor code stuff * rewrite explanatory comment (cherry picked from commit 04daf8b1f016e17bede4ad00db46f2855d3e7c1f)
* fix copy/paste - I think!stilez2017-01-301-32/+6
| | | | (cherry picked from commit 2f633b526075b2ed5e0e160ef6f0d025b509bd70)
* use wrapped version of pkg info -e insteadstilez2017-01-301-5/+31
| | | | (cherry picked from commit e5f96a2cb3c0cad0c828148bd7b8d45c130a9b17)
* get_pkg_info() fallback using pkg info if no local copy of repo catalog ↵stilez2017-01-301-6/+34
| | | | | | | | | | | | | | | (resubmit) Resubmit of PR #3157 with fix. The issue in #3157 was that `pkg info` and `pkg search`, undocumented in man pages, seem to handle things differently if no packages match the pattern string. `pkg search` gives an error "No packages match [$pkgs]", whereas `pkg search` doesn't give an error. I didn't come across this because it's not stated in the man pages for pkg info, and because I tested it with a bare install but at least one pkg, while @NYOB used it on a bare install. The fix which I've tested and seems to work nicely, is to test using `pkg info -e` whether the pkg info call will hit a "no packages exist" issue or not. If `pkg info -e` returns 0 then it's safe as there's at least one matching pkg (any other errors are allowed to occur and be detected as usual). If it returns anything else, then there's no matching pkgs, so the main `pkg info` is skipped leaving $out and other variables at the correct values they need anyway, showing a null match/none found. For details of the underlying issue being fixed, and the issue that this resubmit fixes, see the original PR. (cherry picked from commit 587988f6df7e1d3b1a369b93a5634620129e3d9d)
* Introduce is_intrange() to validate a range of integers delimited by ':' or '-'Renato Botelho2017-01-241-0/+29
|
* Force compress for where_is_ipaddr_configured check_localipPhil Davis2017-01-231-1/+1
| | | | (cherry picked from commit f0b1358dfe520ad3b771127127daed970ba2c0a0)
* Force compress for where_is_ipaddr_configuredPhil Davis2017-01-232-2/+6
| | | | (cherry picked from commit cde28bfa0e11f268485ec1f6ccb73a3a2f66448f)
* Always force compress when calling Net_IPv6Phil Davis2017-01-235-9/+24
| | | | (cherry picked from commit 587995fb57f91894d1f8eb6b296a9fe2fa111fac)
* Remove unused variable $cfglckkeyconsumersRenato Botelho2017-01-231-5/+3
|
* Fix #7141 Add a priv for UPNPPhil Davis2017-01-191-0/+6
| | | | | | so users can grant access to Services->UPNP Note: Status->UPNP already has a priv and it works. (cherry picked from commit a5a899e4388f2737a6d1cdc82c7325c20fb72ee4)
* Fix #7139 Accessing help about this pagePhil Davis2017-01-191-1/+1
| | | | | from a user that does not have admin or all page privilege. (cherry picked from commit 166540830275318c8dec9199d8a9ee0e605f606a)
* Fix #7136 Start OpenVPN on ordinary VIPPhil Davis2017-01-191-2/+2
| | | | (cherry picked from commit ddf99718d5f1f4545483c39d3759fdfbb788b0fb)
* Remove extra parenthesis and blank lineRenato Botelho2017-01-171-3/+2
|
* Simplify logicRenato Botelho2017-01-171-8/+4
|
* Fix #7118 icmp-type anyPhil Davis2017-01-161-1/+1
| | | When 'any' is selected as the ICMP type, do not write 'icmp-type any' in the rule, just leave it out.
* Fix #7105: Old rules may not have ipprotocol defined, consider it icmp6-type ↵Renato Botelho2017-01-161-1/+1
| | | | only when ipprotocol is inet6
* Make sure /var/tmp permissions are correct. Fixes #7120Renato Botelho2017-01-161-0/+1
|
* Redmine #5549 Allow variable number of DNS ServersPhil Davis2017-01-131-7/+7
| | | | (cherry picked from commit a2d23e88596deab6bbed2818385a0b72c913843a)
OpenPOWER on IntegriCloud