Commit Graph

24219 Commits

Author SHA1 Message Date
Phil Davis feb1953e84 Expand range or subnet for host alias
When entering a host alias, if the user put an IP range (like 192.168.0.10-192.168.0.20) or a subnet (like 192.168.1.200/29) then expand it into a list of individual IP addresses. Check that it will not make too many rows to exceed the existing 5000 row limit on the GUI.
Note: expanding ranges and subnets like this is only for IPv4 for now. Entering an IPv6 range or subnet in a hosts alias will display a message telling the user that is not supported - it could be done in future but currently the routines that convert this stuff are only for IPv4.
I have done as much validation as I can think of, and where there is a problem the original user-entered data is preserved for re-display, as well as the input errors being displayed. So IMO it should be self-documenting.
2014-10-24 20:10:50 +05:45
Renato Botelho 095707fe9e Merge pull request #1313 from phil-davis/patch-9 2014-10-23 12:24:58 -02:00
jim-p c25d1fd7e5 Encode values before displaying them back to the user in notification settings 2014-10-21 14:25:53 -04:00
Chris Buechler 687d0a6d05 remove the command number shown in the shell prompt, it's a pointless
waste of screen space
2014-10-21 12:46:38 -05:00
Phil Davis 99ba943ad4 Prevent Internal Server Error if range is backwards
Fixes redmine #3950 - ip_range_to_subnet_array can easily swap the input parameters if the caller has passed/entered them the wrong way around. That is both friendly to the caller and ensures that a hostile caller can't blow up the routine.
This patch is for master (2.2)
2014-10-21 15:17:17 +05:45
Chris Buechler 9b86d3fe6f + is a valid character in some dynamic DNS providers' usernames. Fixes #3912 2014-10-21 01:54:13 -05:00
Chris Buechler 2fb6694858 hostnames can end with a . (and actually always do, it's just usually implied), so allow that here. Fixes wrong input validation in parts of nsupdate GUI, among other things. 2014-10-21 00:40:22 -05:00
Renato Botelho a23adfbaa0 Merge pull request #1306 from phil-davis/patch-3 2014-10-20 12:00:54 -05:00
Renato Botelho 6d9514581a Let user decide if he wants to proceed to the upgrade when sha256 fails to download. Fixes #3576 2014-10-20 10:41:12 -05:00
Chris Buechler 13ec619c9c h-node should be 8 2014-10-19 19:30:43 -05:00
Chris Buechler bc12ae8a7b Underscores are valid characters in domains. Fixes #3219 2014-10-19 18:38:13 -05:00
Ermal 621fed0e0f Ticket #3932 For more than 100 entries create pipes in line with the rules file to speedup the process 2014-10-18 01:33:42 +02:00
Renato Botelho 2ac79aded6 Merge pull request #1310 from phil-davis/patch-6 2014-10-16 16:46:11 -05:00
Renato Botelho 308e304218 Merge pull request #1311 from phil-davis/patch-7 2014-10-16 16:44:06 -05:00
jim-p 497563bec4 Fix the log widget to lookup hosts by DNS using a link rather than AJAX. Quick fix for now. Ticket #3829 2014-10-16 15:21:38 -04:00
jim-p b6dbbebc0f Add command line script to generate and activate a new GUI certificate. 2014-10-15 14:01:55 -04:00
jim-p 2cf2c62b27 Fix descriptions and cn on generated GUI cert to be consistent. 2014-10-15 14:01:00 -04:00
Ermal 2f5488df44 Reintroduce the vfs.forcesync systl 2014-10-15 16:23:29 +02:00
Renato Botelho 29fb23d449 Merge pull request #1309 from phil-davis/patch-5 2014-10-15 08:49:48 -05:00
jim-p 5ff7f58e59 Tame the poodle. Disable SSLv3. 2014-10-15 08:40:36 -04:00
Phil Davis 466aae837b Manage dhcpleaseinlocaltime consistently
dhcpleaseinlocaltime is actually a global setting, but the setting is stored per-DHCP-enabled-interface.
The display code in status_dhcp_leases already sorts this out - if any interface has the setting enabled then the displayed lease times are adjusted to local time.
This fixes up the input of the setting. If dhcpleaseinlocaltime is checked on any interface, then it will now be shown checked whichever interface tab the user happens to have open.
Whatever the user does to the checkbox, the setting is saved to all interfaces in the config - this is particularly neccesary when unchecking the box. The setting must be cleared in the config for all interfaces.
The way this change works, there is no need to convert existing configs. The code correctly works with both old and new configs.
This came up again in forum: https://forum.pfsense.org/index.php?topic=82881.msg0
It is an annoying "feature" so I think it is worth clearing it up on the UI.
2014-10-15 14:26:30 +05:45
Phil Davis 73a9669840 Provide an edit button for static mapped entries
As suggested in forum https://forum.pfsense.org/index.php?topic=82883.msg0#new
Instead of a non-functioning red plus icon, show an edit icon for static mapped entries, and take the user to services_dhcp_edit page if it is clicked. IMHO this makes it much easier to correct things that are noticed when viewing the Status, DHCP Leases display.
2014-10-15 12:26:29 +05:45
Phil Davis fff9ee45c3 Whitespace in status_dhcp_leases.php 2014-10-15 11:32:23 +05:45
Phil Davis 5d49ceac8b Fix #3935 Properly allow WAN without LAN
Was broken by bd0b5d2dc7
2014-10-15 10:04:57 +05:45
Ermal 8ff85c397c rename interfaces_carp_setup to interfaces_sync_setup and call it during bootup since it does not only relate to carp interfaces. 2014-10-15 01:39:56 +02:00
Ermal 4703c007ef Fixes #3727 Do not unset ondemand for ppp type interfaces since it is controlled here only for pppoe/l2tp 2014-10-15 00:59:20 +02:00
Ermal 664adf3845 Ticket #3789. Put a start at using the proxyurl/proxyport from system configured settings for bogons. It still does not consider the user/pass configured 2014-10-15 00:55:00 +02:00
Ermal e02ea742a5 Fixes #3213. Allow up to 2900 limiters. This was set to 30 since limiters are to be controlled by mask and not created manually! 2014-10-15 00:36:27 +02:00
Ermal febe0112e1 Make proper check here 2014-10-14 23:21:50 +02:00
jim-p 7c4c77ee62 Teach the certificate generation code how to make a self-signed certificate, and change the GUI cert generation code to use it. Also, move the GUI cert generation code to its own function so we can add a GUI option to regenerate it later.
Also use some more sane defaults for the contents of the default self-signed certificate's fields so it will be more unique and less likely to trigger problems in browser certificate storage handling.
2014-10-14 15:30:33 -04:00
Chris Buechler 1f4ad8f4cf update comment to reflect breakage caused here and reference associated redmine ticket, not high priority, can be fixed later 2014-10-14 13:44:56 -05:00
Chris Buechler eb71461cc0 block IPv4 link-local. Per RFC 3927, hosts "MUST NOT send the packet to
any router for forwarding", and "any network device receiving such a
packet MUST NOT forward it". FreeBSD won't route it (route-to can override in
some circumstances), so it can't be in use as a real network anywhere with
the possible exception of local-only networks. Unlikely any such situation
exists anywhere.
Fixes ticket #2073
2014-10-14 13:21:45 -05:00
Renato Botelho 69b79ff061 Fix PSK for non-ascii also here, ticket #3917 2014-10-14 12:41:22 -05:00
Renato Botelho 5a42d9ef42 Fix initial console menu layout, it fixes #3884 2014-10-14 12:23:01 -05:00
Renato Botelho b907136c28 Improve IPsec status page for mobile. It fixes #3917 2014-10-14 11:50:36 -05:00
Renato Botelho ca1fdcce98 Add missing gettext call 2014-10-14 11:46:09 -05:00
Renato Botelho d6c9dcf926 Add missing gettext calls 2014-10-14 11:40:01 -05:00
Renato Botelho 6795e0da0b Fix indent and spaces 2014-10-14 11:23:31 -05:00
Renato Botelho 123d870060 Does not accept non-ascii characters on IPsec PSK. It fiixes #3931 2014-10-14 10:50:49 -05:00
Renato Botelho a4c1fff294 Close this form early since there is another form below 2014-10-14 10:48:16 -05:00
Chris Buechler dc4a8b9e54 update input_error description after changes for ticket #3491 2014-10-13 23:07:08 -05:00
Renato Botelho 71c26c2220 Properly set MTU for lagg interface, it fixes #3922 2014-10-13 12:36:55 -05:00
Renato Botelho 5c2e687379 Make sentence more accurate as pointed out by phil-davis 2014-10-13 11:09:15 -05:00
Renato Botelho 1c764a3a50 GIF interfaces MTU must be something between 1280 and 8192, make the correct check. It fixes #3927 2014-10-13 10:42:14 -05:00
Chris Buechler 3b5b437baa fix text 2014-10-10 22:17:16 -05:00
Chris Buechler 0c4cd13f37 fix up text on sys_adv_misc 2014-10-10 21:54:54 -05:00
Chris Buechler 5046435dd0 fix text and descriptions in GRE edit page 2014-10-10 21:10:53 -05:00
Chris Buechler b22f436afb s/removing/omitting/g for gateway monitor log entires. "Removing" is not necessarily correct, there are many circumstances where this runs where it wasn't there to begin with, and is potentially misleading. 2014-10-10 19:09:57 -05:00
Renato Botelho 1f237bb460 Fix pf syntax s/divert/divert-to/. It should fix #3921 2014-10-10 11:17:52 -03:00
Renato Botelho 9da083fc4d Fix an error introduced in bd0b5d2dc7 that makes system believe interfaces always mismatch 2014-10-08 08:54:38 -03:00