summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateways_edit.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3700 from phil-davis/ifgwaddRenato Botelho2017-04-201-441/+4
|\
| * Remove obsolete isAjax array key handlingPhil Davis2017-04-181-15/+0
| |
| * Refactor gateway savePhil Davis2017-04-171-127/+1
| |
| * Refactor gateway parameter validationPhil Davis2017-04-171-299/+3
| |
* | Refactor get_configured_interface_with_descr remove unused parameterPhil Davis2017-04-161-1/+1
|/
* Revisions to GET/POST conversion limiting POSTs to save, apply, and delete ↵Steve Beaver2017-02-131-5/+5
| | | | functions
* GET/POST conversion system_gateways*Steve Beaver2017-02-101-8/+5
|
* Fix system_gateways_edit setHelp sprintf warningPhil Davis2017-02-091-5/+5
| | | | The code at line 759 emitted a warning because of the bare '%' in the string. Other changes are to clarify and tidy up some other sprintf strings.
* Rever changes escaping '%' chars in help text. No longer required.Steve Beaver2017-02-081-1/+1
|
* Several more fixes for setHelp to assist with translationSteve Beaver2017-02-031-4/+3
|
* Fix #7202Steve Beaver2017-02-031-4/+4
| | | | Fix several sprintf errors by escaping '%'s and removing '[ ]' which had been use to pass arguments to setHelp as an array.
* Remove \n from gettext stringsRenato Botelho2017-02-031-4/+4
|
* Required fields for System pagesPhil Davis2017-01-301-3/+3
|
* Breadcrumb linksPhil Davis2017-01-101-0/+1
|
* Added a function validateipaddr() use as:Steve Beaver2016-12-151-2/+2
| | | | | | | | | | | | // Validate a network address // $addr: the address to validate // $type: IPV4|IPV6|IPV4V6 // $label: the label used by the GUI to display this value. Required to compose an error message // $err_msg: pointer to the callers error message array so that error messages can be added to it here // $alias: are aliases permitted for this address? function validateipaddr(&$addr, $type, $label, &$err_msg, $alias=false) This is indented to provide a single method of validating IP addresses of all types and composing a suitable error message
* Feature #3151 Disable gateway monitoring actionsPhil Davis2016-12-071-0/+11
| | | | | | | | | | | | | | | | without disabling gateway monitoring. This allows the user to continue to monitor the gateway with dpinger, so they can see how it is performing, but for the system not to take any real action if the latency/loss exceeds the given limits. A typical use case for this would be on a single-WAN system. There is no failover option, so there is no point taking any real action when the latency/loss is high. Having stuff try to failover (and stop/start stuff...) is just disruptive. In ths case the use could have disabled monitoring completely, but then they get no feedback abut gateway performance.
* When deleting or disabling a non-dynamic gateway, if that gateway was set as ↵jim-p2016-11-041-0/+9
| | | | default then remove the corresponding default route to respect the user's decision. Fixes #6659
* Fix display advanced after input error for system_gateways_editPhil Davis2016-10-201-6/+6
| | | | | | | | | | | | Use case: 1) Edit a gateway that has no advanced settings (i.e. the Advanced section does not need to open on page load) - that works fine. 2) Modify the Gateway IP Address to something invalid like 1:2::z 3) Press Save The error is shown - "A valid gateway IP address must be specified" - good. The Advanced section is shown - not good. The problem is that after POSTing the page, and the resulting validation, finding an input error, and re-displaying the page, each of the $pconfig keys is set, even though set to the empty string "". So the isset() tests are true, and it gets the wrong idea. We only care about these parameters if they are not "". In this case !empty() gives the correct result, because although a value of 0 will be considered empty, 0 is not allowed by the front-end of the UI anyway (as it happens, these parameters are not allowed to be 0), so we never get that case. And by the way, I generally hate empty() because of having to think of all its quirks.
* Move copyright from ESF to NetgateRenato Botelho2016-09-061-1/+1
|
* Move to Apache License 2.0Renato Botelho2016-07-151-41/+9
|
* Review license / copyright on all files (final round)Renato Botelho2016-07-151-41/+39
|
* Always use require_oncePhil Davis2016-06-271-2/+2
| | | | | | | | | The usage of require() and require_once() throughout the system is inconsistent, and "bugs" come up now and then when the order of "requires" is a bit different and some require() happens after the include file is already included/required. It seems to me that there is no harm at all in always using require_once().
* System Menu - Textual and Punctuation CorrectionsNOYB2016-04-301-1/+1
|
* Provide better messages for invalid alias name errorsPhil Davis2016-04-281-1/+1
|
* System / Routing / Gateways - Remove PersonalizationsNOYB2016-03-291-4/+4
| | | | Remove "you" personalizations.
* Reengineer Form_Button setAttributePhil Davis2016-03-201-3/+1
| | | | | | As per what was done for https://github.com/pfsense/pfsense/pull/2765 - do it to the rest of them. Seems to work OK.
* Redmine #5994 Standardize gateways edit advanced buttonPhil Davis2016-03-151-32/+69
|
* Revert "Merge pull request #2728 from phil-davis/form_button"Renato Botelho2016-03-151-1/+1
| | | | | This reverts commit a32bed49516f3df3d104a5026a5b2c74451f348f, reversing changes made to 9ec9978267a5d1985d6da8ba35d52b7174239d2f.
* Merge pull request #2732 from ExolonDX/branch_02Stephen Beaver2016-03-141-1/+1
|\
| * Change to 4 spacesColin Fleming2016-03-141-1/+1
| |
| * Tidy up "system_gateways_edit"Colin Fleming2016-03-121-1/+1
| | | | | | | | Tidy up missing semi-colon in non-breaking space
* | Merge pull request #2728 from phil-davis/form_buttonStephen Beaver2016-03-141-1/+1
|\ \
| * | Internationalize Form_Button textPhil Davis2016-03-111-1/+1
| |/ | | | | | | | | | | The text of a Form_Button is not translated internally. Some Form_Button calls already had the button text enclosed in gettext(), this does it for the remaining ones.
* | System / Routing / Gateways / Edit - PunctuationNOYB2016-03-131-3/+3
|/
* Advanced button consistency. Ticket #5965jim-p2016-03-101-2/+4
|
* Revise explanation and validation of dpinger parameters.Denny Page2016-03-031-133/+80
|
* Convert section titles to title casek-paulius2016-02-101-1/+1
|
* Allow gateway weights up to 30, and add a check in filter.inc to prevent ↵Chris Buechler2016-02-041-1/+1
| | | | creating too long of a route-to line. Related to pull request 1614
* Fix #5830Renato Botelho2016-02-041-1/+16
| | | | | Add a new advanced option on gateways to allow user define data payload. Default is 0
* Internationalization of various system*.phpPhil Davis2016-02-031-25/+25
|
* Fixed #5694Stephen Beaver2015-12-291-2/+10
|
* Bug #5527heper2015-12-211-2/+1
|
* Code style system_*Phil Davis2015-12-171-7/+8
|
* Remove all pfSense_MODULE and pfSense_BUILDER_BINARIES definitions, whatever ↵Renato Botelho2015-12-151-3/+0
| | | | was the reason they were added, it was never finished and it's not being used
* Gateway advanced parameter validationPhil Davis2015-12-111-31/+89
| | | | | | | | | | | | | This does what I can think of so far: 1) Make sure low latency < high latency, low loss < high loss 2) Loss interval must be at least latencyhigh otherwise every packet that was high latency would be counted as lost before it came back. (see note below) 3) averaging time period must be at least 2 times probe interval - it is not much of an "average" if it averages less than 2 probes :) 4) alert interval must be at least probe interval - there is no point recalculating the average latency and loss more often than once every probe interval. 5) Criteria for showing or hiding the advanced options on page load fixed up to account for all the fields now in the advanced section. 6) Additional information - I have written some stuff that I think is now helpful. Note: Currently the default loss interval is 500 and latencyhigh is also 500. This makes no sense to me. If a probe comes back in > 500ms then the thread that is waiting for the reply will have given up (loss interval has expired). So any packets with an RTT > 500ms will be considered lost. Therefore there will be no packets recorded with an RTT > 500ms. Therefore the average latency can never exceed latencyhigh. It seems to me that "loss interval" needs to be reasonably higher than "latencyhigh" in any sensible configuration. Thoughts?
* Merge pull request #2201 from phil-davis/patch-10Renato Botelho2015-12-111-1/+1
|\
| * apinger loss_interval array key namePhil Davis2015-12-111-1/+1
| |
* | dpinger help textPhil Davis2015-12-111-4/+4
|/ | | | The packet loss thresholds must still be in % ? milliseconds does not look valid. Other things are minor formatting.
* Ticket #5624: Welcome dpinger!Renato Botelho2015-12-101-85/+60
|
* Fix indentRenato Botelho2015-12-101-3/+3
|
OpenPOWER on IntegriCloud