summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
Commit message (Collapse)AuthorAgeFilesLines
* Make more strict checks during is_ip* functions. Helps ↵Ermal2013-02-041-1/+1
| | | | http://forum.pfsense.org/index.php/topic,58399.0.html and http://forum.pfsense.org/index.php/topic,58273.0.html
* Update usr/local/www/system_gateways_edit.phpbcyrill2013-02-011-3/+3
| | | Correct IP family mix-up.
* Update PHP shorthand tagColin Fleming2013-01-141-2/+2
| | | | Standardise all PHP start tags from "<?" to "<?PHP"
* Encode parameters before showing them to users.jim-p2012-10-311-4/+4
|
* Activate new shortcuts/status in the rest of the areas that are currently setup.jim-p2012-08-101-1/+1
|
* Validate advanced gateway monitoring settingsPhil Davis2012-07-251-55/+146
| | | | | Use the default values from return_apinger_defaults. Validate values - low less than high, probe interval less than "down" time, values are positive numeric. Update descriptions on the UI to show the defaults used.
* Now that we actually have a IP protocol tag in the config.xml we can make ↵smos2012-06-181-5/+14
| | | | | | this check a lot simpler and do less guessing. Redmine ticket #2503
* Actually save the IPprotocol variable into the config, otherwise it stil ↵smos2012-06-011-0/+1
| | | | | | | | | | | won't work. People will likely need to edit and save their gateways now if they have double entries. e.g. both manual and automatically added entries, these will dissapear as soon as you save. If we know if the gateway or monitor is ipv4 or ipv6 we can autodetect which prevents this. Because we don't know what address family the gateway on a dual stack interface belongs to we better not guess, and let the user figure it out. Often, a edit and save is the fastest. For upgrading from 2.0 we could mark all gateways as being ipv4 which prevents half of the issues. Redmine ticket #2463
* Finally give in and sprout a Internet Protocol drop down on the gateways ↵smos2012-05-311-2/+22
| | | | | | | edit screen. With added validation and multiple detection parts to work when the value is not set yet. Redmine ticket #2463
* remove some log_error callsDarren Embry2012-05-171-7/+0
|
* bug fix for #2426Darren Embry2012-05-171-4/+11
| | | | Input validaton on interface gateway creation box needs to reject duplicate names
* report errors adding a gateway through ajax callsDarren Embry2012-05-171-1/+10
|
* Fix the link local check when trying to add a link local gatewaysmos2012-03-131-7/+7
| | | | Ticket #2071
* Fix for ticket 2071, this allows link local addresses for gateways.smos2012-01-151-3/+6
| | | | Backend already added the interface scope for link local addresses, hurrah.
* Clarify the potential pitfalls when setting the Frequency Probe and Down ↵jim-p2011-12-291-14/+28
| | | | parameters.
* Fix for redmine ticket #1993. Allow saving multiple dynamic entries.smos2011-11-271-12/+0
| | | | Make sure that return_gateways_status() also returns all gateways that have monitoring disabled as up.
* Add default values for latency, packet loss, down on GUINachtfalkeaw2011-08-281-4/+4
|
* Fix a typo in the subnet generation causing the code to failSeth Mos2011-08-241-1/+1
|
* Add address family input validation on the Gateways edit page, also prevent ↵Seth Mos2011-08-241-16/+29
| | | | | | adding gateways on interfaces that do not carry that address family. Fix Ticket #1633
* Simplify this code a bit, should be the same test in both locations since ↵jim-p2011-08-231-2/+3
| | | | this should be either/or, and with the other code it can apparently fall into a trap where it shows neither.
* Add an override for default interval to send icmpErmal2011-07-281-2/+12
|
* Add a new option to allow disabling of gateway monitoring. This gateways ↵Ermal2011-07-281-2/+16
| | | | will always be reported as up.
* makes correct use of printf and gettextVinicius Coque2011-07-181-2/+2
| | | | removes variables names and replace it with '%s'
* Fix field lengths for IPv6 addressesSeth Mos2011-03-171-2/+2
|
* Make it possible to set the default gateway bit for 1 ipv4 gateway and 1 ↵Seth Mos2011-02-071-3/+11
| | | | ipv6 gateway
* Make the subnet check failure better readableSeth Mos2011-02-031-4/+6
|
* Merge remote branch 'upstream/master'Seth Mos2011-01-181-1/+1
|\ | | | | | | | | | | Conflicts: etc/inc/interfaces.inc etc/inc/system.inc
| * fix textChris Buechler2010-12-251-1/+1
| |
* | Merge remote branch 'upstream/master'Seth Mos2010-12-201-1/+1
|\ \ | |/ | | | | | | | | | | Conflicts: etc/inc/interfaces.inc etc/inc/vslb.inc usr/local/www/interfaces.php
| * When adding/editing a gateway, check IP alias subnets, too. Fixes #1015Erik Fonnesbeck2010-11-221-1/+1
| |
* | Merge remote branch 'upstream/master'Seth Mos2010-11-151-1/+1
|\ \ | |/ | | | | | | | | | | | | Conflicts: etc/inc/filter.inc etc/inc/system.inc usr/local/www/interfaces.php usr/local/www/interfaces_gif_edit.php
| * Bring in XSS id fixes from m0n0wallScott Ullrich2010-11-121-1/+1
| |
* | Verify that we validate against a ipv6 subnet properly. This should help for ↵Seth Mos2010-11-021-1/+7
| | | | | | | | static route gateways
* | Allow for configuring a IPv6 address on the interfaces page.Seth Mos2010-10-221-1/+5
|/ | | | | | | | | Add code to verify a ipv6 address Let is_ipaddr() return true on a v4 and v6 address. Change system gateways edit to fetch the global ipv6 interface ipv6 addresses and subnets The current ipv6 function might need folding into filter_var() when that catches some documented corner cases. The ajax widget on interfaces.php does not currently work for saving a IPv6 gateway address. Gateways edit screen does not complain when using it's own IP address as the gateway. FIXME.
* Simplify this code so it's obvious what we're really testing for.gnhb2010-10-061-4/+3
| | | | Should be no functional change here.
* Fix intended behaviour when the default gateway changes interface.Ermal2010-10-021-5/+5
|
* This breaks the code because the ASSUMPTION is to reload the gateway ↵Ermal2010-10-021-7/+4
| | | | | | | | | | interface that was a defaultgw previously and not the interface that just became defaultgw. Mostly for dynamic connections like dhcp/ppp* Pointy-hat: gnhb Revert "Update code to actually accomplish the intended behavior of NOT reloading the interface" This reverts commit 318baca5f6658f52c0b895fdb8f42bc276e26a6d.
* Update code to actually accomplish the intended behavior of NOT reloading ↵gnhb2010-10-021-4/+7
| | | | | | the interface if not necessary when a GW record is saved.
* Do not allow a gateway to be renamed. Possibly a better solution is to ↵Ermal2010-10-011-0/+2
| | | | rename the gateway in all pointed places!
* Handle the cases to not save data on config better.Ermal2010-10-011-3/+7
|
* Make sure we do not overwrite the gateway stored in config with a dynamic ↵Ermal2010-10-011-4/+5
| | | | gateway info. Correct POST var name(Found by ghnb). Also correctly reload only the defaultgw interface changed only if it is different than the present one.
* Fix the problem of not saving data when most of the information is not being ↵Ermal2010-10-011-77/+66
| | | | posted. Also do not disable any field anymore to allow people to choose static gateways for dynamic interfaces. Also do not save any information when the user Clicks save but has not posted any information not known already. Do not prevent to post a dynamic value for gateway on an interface that is configured with static ip.
* We don't store monitor ip in the <interfaces> config any more.gnhb2010-10-011-8/+0
| | | | Requested by cbuechler in ticket #919.
* When a dynamic interface is up, we still need to report that it's "dynamic" ↵gnhb2010-10-011-1/+4
| | | | | | | | to this GUI in system_gateways_edit.php. If user edits a dynamic gateway that is up, the gateway IP address (reported by return_gateways_array) will end up in the "Gateway" field, and then the gateway will get saved as a static gateway unless user manually changes field to "dynamic" again.
* Revert previous change to enter a hidden value when interface is disabled. ↵Ermal2010-09-301-9/+6
| | | | GHNB broke this on revision 58611e3a1da07a33c6cf65401ad3edf278190e75 and it does not make sense.
* Remove forgotten code.Ermal2010-09-301-2/+0
|
* Initialize variable properly. Handle the case when the interfaces select box ↵Ermal2010-09-301-5/+10
| | | | is disabled and it will not be posted(Reported-by: ghnb
* Fixes #919 by properly saving <gateway> field as "dynamic"gnhb2010-09-231-2/+5
| | | | `
* Oops bring back this code too.Ermal2010-09-161-1/+4
|
* Actually this part should not have been committed at all.Ermal2010-09-161-3/+6
|
OpenPOWER on IntegriCloud