Commit Graph

12424 Commits

Author SHA1 Message Date
Renato Botelho
dd0cb9fcf4 Cleanup aliases when temporarily disable CARP, fixes #4116 2014-12-16 10:19:33 -02:00
jim-p
363a02310f Follow help page that moved. 2014-12-15 16:45:24 -05:00
jim-p
327bbab674 Follow help page that moved. 2014-12-15 16:30:53 -05:00
Renato Botelho
c25caf5b01 Add DNS Resolver to the list of services to be sync'd on HA, make sure it and DNS Forwarder are not enabled simultaneously. It fixes #4067 2014-12-15 17:16:48 -02:00
Renato Botelho
fa2122b02a Fix password field name 2014-12-15 16:43:27 -02:00
Renato Botelho
6bb9db05b8 Add a shortcut for unbound and enable it 2014-12-15 16:18:54 -02:00
Renato Botelho
99441482b9 Fix password field name to apply correct style 2014-12-15 14:47:51 -02:00
Renato Botelho
5cfd948144 Add missing BR tags and fix display with pfsense_ng_fs theme. It fixes #4115 2014-12-15 10:46:03 -02:00
Renato Botelho
38e1541b99 Update service providers xml to sync with upstream 2014-12-12 14:55:57 -02:00
Renato Botelho
c45c6ccd8b Regenerate Turkish mo 2014-12-12 12:29:58 -02:00
Renato Botelho
019645ffe7 Update po from last pot 2014-12-12 12:28:59 -02:00
Renato Botelho
66f8965d11 Update Turkish translation file from last version available on old translation server 2014-12-12 12:27:28 -02:00
Renato Botelho
fb0495f351 Regenerate pfSense.pot 2014-12-12 12:13:54 -02:00
Renato Botelho
2e65babb16 Fix password confirmation name to make style working as expected. Fixes #3992 2014-12-12 09:17:25 -02:00
Phil Davis
a93bc2994b Base URL must be specified when alturlenable on
I had a 2.1.5 system that I was wondering why the dashboard always said it could not check for updates. I discovered it had "Use an unofficial server for firmware upgrades" checked, but the "Base URL" field was empty.
That can easily be checked with input validation - might as well catch dumb things like that.
I thought about making it parse the string to see if it seemed like a "valid" URL. But so many strings seem like valid URLs:
var_dump(parse_url("abc"));
array(1) {
  ["path"]=>
  string(3) "abc"
}

It seemed a bit pointless to bother - if the user puts something in then hope that it might point to something some day.
2014-12-12 10:38:38 +05:45
Renato Botelho
fcc96054a0 Split ICMP and ICMPv6 types on Firewall Rules
- Remove redundant declaration of $icmptypes and move it to a common
place (filter.inc)
- Add missing ICMP types for v4
- Add ICMPv6 types
- Adjust javascripts to show correct options depending of IP Protocol
- Hide ICMP type selection when protocol is IPv4+v6

It fixes #3389
2014-12-11 19:50:00 -02:00
Renato Botelho
c03ed2fb58 Fix indent and spaces 2014-12-11 19:49:58 -02:00
Renato Botelho
986fd3d9a7 Fix #3790:
- Do not let 2 interfaces to setup the same track6 prefix id
- Show correct prefix id range for each interface
2014-12-11 15:03:50 -02:00
Phil Davis
2cc10e2cde Change text and color delimiter to carat sign
To match change made in functions.inc.php
2014-12-11 07:15:09 +05:45
Phil Davis
6385c33515 Gateway Status Widget keep IP address bold
Forum: https://forum.pfsense.org/index.php?topic=85187.msg467438#msg467438

The bold is specified literally in gateways.widget.php for the gateway IP box, so we need to send it bold from here also when providing an update.
Because this now uses a "/" in the string (to terminate the bold) have to choose another delimiter between the status text and status color - picked "^" because I can't think where it will appear elsewhere in the real data.
This whole string of stuff that is returned by getstats.php back to the browser is a long string with a bunch of delimiters inside delimiters already (vertical bar separated fields, inside that comma-separated fields...) and is already subject to stuff going wrong if any of the real text in the fields contains a vertical bar or comma or... Not about to try to re-engineer all that right now!
2014-12-11 07:13:01 +05:45
Phil Davis
f4d094b485 Fixup text rule should be route
This code was obviously taken from firewall rules and reused here without changing the word "rule" to "route".
2014-12-10 21:17:51 +05:45
Renato Botelho
d7563eebc7 Remove spurious '>', fixes #4091 2014-12-10 12:14:43 -02:00
Phil Davis
2ce15f633e Standardise css list padding
for the_wall theme
2014-12-07 22:13:13 +05:45
Phil Davis
fe9273cfdf Standardise css list padding
for pfsense_ng_fs theme
2014-12-07 22:11:34 +05:45
Phil Davis
4fb660ae16 Standardise css list padding
for pfsense theme
2014-12-07 22:09:45 +05:45
Phil Davis
6e74f280a6 Standardise css list padding
for pfsense-dropdown theme
2014-12-07 22:08:02 +05:45
Phil Davis
09b095b0a5 Standardise css list padding
for nervecenter theme
2014-12-07 22:06:09 +05:45
Phil Davis
af978cb9de Standardise css list padding
for metallic theme
2014-12-07 22:04:11 +05:45
Phil Davis
04d21981f8 Standardise css list padding
for code-red theme
2014-12-07 22:01:27 +05:45
Phil Davis
66591feb74 Standardise css list padding
for _corporate
2014-12-07 21:56:55 +05:45
Renato Botelho
f3dac61c02 Merge pull request #1368 from phil-davis/patch-3 2014-12-07 13:41:30 -02:00
Phil Davis
9241d942b9 Typo CIDR in UPnP GUI page
As reported by johnpoz https://forum.pfsense.org/index.php?topic=84964.0
2014-12-07 19:10:59 +05:45
Phil Davis
0f3d668ff0 Standardise css list padding
On Status->Services, the Services Status widget when a service status is down, the red "x" button does not line up with the green "running" button in the column.
This is because listbg has:
padding-right: 16px;
But the normal listr has:
padding-right: 6px;
It seems really odd that listbg as 16 pixels right padding. I expected it to have all the same padding as listr, just with a different color.
listn and listbggrey have the same "feature" of extra padding-right.
listn does not seem to be used anywhere anyway - might as well "fix" it in case something uses it some time.
listbggrey seems to only be used by pkg_mgr_installed.php in the case when an installed package version is in advance of the online version - quite an unusual thing! Changing padding-right from 16px back to 6px is fine for that.
Then the "feature" is lso in listhdr and listhdrr - lots of examples like firewall_aliases.php have the column headings as listhdr or listhdrr, so in theory if the column is not so wide already, it will put 16px on the right after the column heading text. But the actual rows of data underneath use listr and listbg, which only specify 6px right padding. In the end it usually does not make any difference - there is space already and the browser lines it all up anyway. But it seems to me an odd difference in the css.
listtopic also has this 16px right padding thing - but it seems to be used just for text display that is not in columns, so I did not mess with that.
Changing this css fixes the lineup of the red "x" in the services status column and does not seem to break anything else. In theory it could make other things better also.
Someone who knows how the css was intended to be used could comment on this! If I have got the right idea, and these "16px" things were just a mistake from the past, then it should be checked in the css for all themes and corrected appropriately... 
I am happy to do that, once someone confirms it is the thing to do.
2014-12-07 15:32:41 +05:45
Phil Davis
95d045fcd7 Set text and color of Gateways Widget Status
getstats.php calls functions.inc.php get_stats(), which calls get_gatewaystats().
get_gatewaystats() now returns the text for each field and an optional color separated by "/" - "text/color" e.g. "Online/#90EE90"
Parse the the new format, separating out text and color.
If color is specified, then also set it with jQuery to css.
2014-12-05 17:54:30 +05:45
Phil Davis
beb7d9e332 Explicitly pass gateway status and color
This code was passing a whole load of html to attempt to set various properties of the Gateways Widget Status column so that it would display the new status (Online, Offline...) and in the appropriate color.
Now that I am using class=listr, the css fro listr already specifies white. Setting bgcolor in HTML does not override that.
Pass both the status text and color as ordinary text, separated by "/". The consumer of this output can do their thing with jQuery to set the color as well as text of the element.
2014-12-05 17:43:48 +05:45
Phil Davis
6404148cf3 Use proper listr class for Gateways Widget Status
The Gateways Widget Status was not using the listr class, and so it was missing the borders for the right and bottom of its box.
Use the listr class.
Then use javascript to explicitly set the background-color to match the status, overriding the white that is specified in listr.
2014-12-05 17:36:49 +05:45
Phil Davis
5eeee40fb8 Fix gateway widget status update
Redmine #4077
2014-12-05 13:40:52 +05:45
Jean Cyr
ad62d077a3 Don't include link-locals as unbound interface candidates
Unbound does not presently support link-local interfaces.
2014-12-04 13:07:22 -05:00
Phil Davis
f0eef2ef62 Provide friendly descr in error message in Interfaces Assign
I was doing drastic things testing some stuff, swapping WAN and OPT1 interfaces in Interfaces->Assign. I accidentally pressed Save when I had the same real device selected for both. Thankfully there was input validation! But I noticed that the error message reported just the names WAN and OPT1, but actual I had them named as different things. So the names in the error message did not match the names (friendly descriptions) in the table of interfaces.
This change makes it display both like FRIENDLY_DESC (FRIENDLY_NAME) so there is less room for confusion.
2014-12-04 16:16:05 +05:45
Renato Botelho
99a8036453 Merge pull request #1363 from phil-davis/patch-3 2014-12-04 08:01:10 -02:00
Phil Davis
62a407dad5 Put -4 in the right place in ntpq clockver command #4074
I had pasted it in here between "-c" and "clockvar", that was not good.
That's all I have for #4074 (I hope)
2014-12-04 13:50:11 +05:45
Phil Davis
c2914fc984 Use IPv4 for ntpq if IPv6 not allowed in widget #4074
Similar code here. Shame it was not in a subroutine called from both places, but not about to re-engineer that now:)
2014-12-04 13:44:20 +05:45
Phil Davis
e4a496ae8f Use IPv4 for ntpq if IPv6 not allowed
Forum: https://forum.pfsense.org/index.php?topic=84890.0
2014-12-04 11:26:45 +05:45
Phil Davis
efa2869209 Display installed pkg version even if pkg server not available
Forum: https://forum.pfsense.org/index.php?topic=84820.0
It seems reasonable to me to display the currently installed package version numbers, along with text like "Latest: N/A". and the Version box being red-filled when someone goes to System->Packages and displays the installed packages but the package server is not reachable for some reason.
This code does it.
What do you think?
2014-12-03 17:27:58 +05:45
Chris Buechler
a94b1edc7f Merge pull request #1348 from phil-davis/patch-4 2014-12-02 21:35:54 -06:00
Ermal LUÇI
110967a4ba Try to not make useless entries in the config file for very rare used configuration values. Makes config file readble and with less size 2014-12-02 12:35:36 +01:00
Chris Buechler
c5cd9b7503 validate MTU and MSS as integers, and don't allow MSS larger than pf will accept to avoid broken rulesets. 2014-11-28 19:33:30 -06:00
Chris Buechler
a96dc32e35 Add input validation on vpn_ipsec_settings.php. Fixes #4052. 2014-11-28 19:17:18 -06:00
Chris Buechler
b7960673be Fix input validation for DNS resolver when localhost is enabled in resolv.conf and "all" chosen in Network Interfaces. While here, set something other than '' when all is chosen. 2014-11-28 15:54:58 -06:00
Ermal LUÇI
4854e3a22b Remove these booting settings since are useless 2014-11-28 13:04:28 +01:00