summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
Commit message (Collapse)AuthorAgeFilesLines
...
* Review of CARP uniqid changes.Luiz Otavio O Souza2016-02-091-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that current CARP implementation is not much different from an IP alias. This commit converts the IP alias to also use the CARP uniqid scheme, this simplify the code in all other places because now we have only two different cases to deal with: - A friendly interface name (lan, wan, opt1, etc.); - A Virtual IP - VIP alias (_vip{$uniqid}) - CARP or IP Alias. The parent of a CARP is always a friendly interface. The parent of an IP alias can be a friendly interface or a CARP (this is the only case of recursion of a VIP). This commit removes a few cases where CARP were still considered a interface (the old CARP implementation), fixes all the wrong cases of strpos() being used to detect a VIP address (wont work as it returns '0' which fails when tested as 'TRUE'), review the usage of CARP and IP alias as services bind addresses, fixes general issues of adding and editing VIP addresses. The following subsystems were affected by this changes: - IPSEC; - OpenVPN; - dnsmasq; - NTP; - gateways and gateway groups; - IPv6 RA; - GRE interfaces; - CARP status; - Referrer authentication. Fixes (and/or revisit) the following tickets: - Ticket #3257 - Ticket #3716 - Ticket #4450 - Ticket #4858 - Ticket #5441 - Ticket #5442 - Ticket #5500 - Ticket #5783 - Ticket #5844
* Return false in download_file rather than the failed status code when a ↵Chris Buechler2016-02-091-1/+7
| | | | download fails. Return would always evaluate to true previously though other parts of the code expect a false value when a download fails. related to Ticket #5848
* Remove attributions of return code not being used at allRenato Botelho2016-01-221-4/+4
|
* Fix #5690:Renato Botelho2016-01-211-5/+15
| | | | | | - Remove parameters from set_language() - Add a global variable for default language - add env var for LANG, otherwise it won't work
* Update license on files from /etc/incRenato Botelho2016-01-151-22/+42
|
* HTML Compliance - System / Advanced / Firewall and NATNOYB2015-12-231-1/+1
| | | | | | | | | | | | | | Bad value 200000↩ for attribute placeholder on element input: Line feed not allowed. <input class="form-control" name="maximumtableentries" id="maximumtableentries" type="text" placeholder="200000↩"> Element ul not allowed as child of element span in this context. Contexts in which element ul may be used: Where flow content is expected. Content model for element span: Phrasing content. Close div tag Close php tag
* No need to set LANG env var hereRenato Botelho2015-12-161-1/+0
|
* Remove all pfSense_MODULE and pfSense_BUILDER_BINARIES definitions, whatever ↵Renato Botelho2015-12-151-7/+0
| | | | was the reason they were added, it was never finished and it's not being used
* Remove dead code, we only have UTF-8 todayRenato Botelho2015-12-141-60/+0
|
* Update pfsense-utils.incBBcan1772015-12-131-1/+1
| | | | | | | | | When installing packages, an extra line break is added by the "\r" ... echo "\r{$status}"; The $status string typically contain a trailing "\n" as required. This allows to print a message in two steps. Writing configuration... done. 1) print "Writing configuration..." 2) print "done" after the command completes.
* Code style and white space in etcPhil Davis2015-12-101-2/+4
|
* Fixed #5532Stephen Beaver2015-11-301-1/+1
|
* Mistake in "pfsense-utils.inc"Colin Fleming2015-11-291-1/+1
| | | Sorry, missed a semi-colon!
* Type up SCRIPT tagsColin Fleming2015-11-291-2/+8
|
* Fix get_carp_interface_status() to work with uniqid notation and also, ↵Luiz Otavio O Souza2015-11-271-12/+24
| | | | verify the CARP vhid and not only the interface (when you have more than one CARP IP on the same interface). Ticket #4858
* Make is_ipaddr_configured() work with CARP.Luiz Otavio O Souza2015-11-261-1/+1
| | | | Check against the correct variable. Ticket #4858
* netstat is not being used hereRenato Botelho2015-11-261-1/+1
|
* Use new host_uuid option name when changing User-AgentRenato Botelho2015-11-231-2/+2
|
* Remove unused function http_post()Renato Botelho2015-11-201-44/+0
|
* pfsense-utils.inc - use full paths to executablesdoktornotor2015-11-181-6/+6
|
* Change update_status to only print on consoleRenato Botelho2015-11-181-2/+1
|
* Cleanup unused code:Renato Botelho2015-10-201-108/+0
| | | | | | | | | | | | | | | | - Remove xmlrpcbaseurl from globals - Remove xmlrpcpath from globals - Remove embeddedbootupslice from globals - Remove call_pfsense_method() - Remove check_firmware_version() - Remove get_active_xml_rpc_base_url() - Remove zeromq.inc - Remove pkg_mgr_settings.php - Remove pkg_mgr_settings.php privilege definitions - Bump config version to 12.3 - Write upgrade code to cleanup $config['altpkgrepo'] - Remove check_firmware_version method from xmlrpc.php - Fix pfSense_firmware_version_doc text
* Use product_name global variable in more placesRenato Botelho2015-09-301-1/+1
|
* White space and minor bits in etcPhil Davis2015-09-161-1/+1
| | | | Cleaner version of https://github.com/pfsense/pfsense/pull/1846
* Retire PPTP server, fixes #4226:Renato Botelho2015-09-151-7/+0
| | | | | | | - Remove PPTP server and all related code - Bump config version 12.2 - Write upgrade config code to remove pptpd section and also cleanup firewall and NAT rules using PPTP interface or src/des
* Merge pull request #1848 from phil-davis/bootstrap-reviewjim-p2015-09-021-65/+65
|\
| * Integrate bootstrap etc/inc with masterPhil Davis2015-08-301-65/+65
| | | | | | | | | | | | This applies the little changes in etc/inc master to the bootstrap branch so that etc/inc in bootstrap will now just have the real differences that are due to real bootstrap changes.
* | Merge branch 'master' into bootstrapRenato Botelho2015-09-011-2/+2
|\ \ | |/ |/|
| * Merge pull request #1826 from phil-davis/v10-bigger-than-v9Renato Botelho2015-08-281-2/+2
| |\
| | * Redmine #4925 Fix version comparison to know 10 is bigger than 9Phil Davis2015-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rtrim of ".0" is stripping any "0" from the end of the passed-in version strings. That makes "2.3.10" become "2.3.1" which then removes any chance of the following nice comparison logic working. Just removing the "0" seems fine. It keeps the supplied version data untouched, just getting rid of any trailing dots. Apart from fixing the bug here, this change has the side-effect that a version change from "2.3" to "2.3.0" will now be seen as an upgrade. What is the requirement for that? Do you want to have extra logic that checks for "bare" zeroes on the end and make "2.3", "2.3.0", "2.3.0.0"... all be considered the same version? This is a resubmit of PR #1810 after integrating with the current master.
* | | Merge branch 'master' into bootstrapRenato Botelho2015-08-271-2/+2
|\ \ \ | |/ /
| * | Obsolete use of /etc/nano_use_vga.txt, Use enableserial_force flag insteadRenato Botelho2015-08-271-2/+2
| |/
* | Merge branch 'master' into bootstrapRenato Botelho2015-08-261-82/+75
|/
* Move main pfSense content to src/Renato Botelho2015-08-251-0/+3211
OpenPOWER on IntegriCloud