7541 Commits

Author SHA1 Message Date
Ad Schellevis
0f18d2e1f9 firewall/outbound nat, align "NAT Address" output to edit page 2018-01-30 18:02:05 +01:00
Ad Schellevis
ecd2aff386 firewall/outbound nat, fix typo 2018-01-30 18:01:01 +01:00
NOYB
a353b74b63 IPSEC Widget Tabs - Tweak
This is more appropriate, as the tabs are more akin to a label than an output.
Also better for touch screens because some browsers select the tab label text (highlight for copying) when output element tapped.  Not a functionality issue, but looks bad and initially confusing (why is that text selected?)

Using data attributes
https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes

HTML5 is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning. data-* attributes allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, extra properties on DOM, or Node.setUserData().
2018-01-30 08:27:27 +01:00
Franco Fichtner
a591cf1412 firewall: repair logic for ICMP fixup required by pfctl after refactor
PR: https://forum.opnsense.org/index.php?topic=7060.0
2018-01-29 23:05:52 +00:00
Franco Fichtner
4adf757079 boot: onwards 2018-01-29 18:01:15 +01:00
Franco Fichtner
d8f661f86a firmware: remove update glue, we're done 2018-01-29 17:59:57 +01:00
Franco Fichtner
1abdaef5c3 firmware: add upgrade message 2018-01-29 12:55:34 +01:00
Franco Fichtner
1bc978baeb system: strip colour comments for previous 2018-01-28 16:14:54 +00:00
Fabian Franz, BSc
4ebd1efae0 fix: themes in System: Gateways: Status page (#2140) 2018-01-28 17:13:38 +01:00
Ad Schellevis
15bb3ac591 theme styles, seemed to have missed some quotes here.. 2018-01-28 17:07:58 +01:00
Ad Schellevis
2461ca2a85 theme styles, use pluggable locations for component css files in both new and legacy code, for https://github.com/opnsense/core/pull/2124 2018-01-28 14:10:36 +01:00
NOYB
83993afaf6 Widget Sort Handle - Be consistent with class naming convention (s/_/-/). 2018-01-28 12:27:12 +01:00
NOYB
68499b04c1 Widget Sort Handle - Delay and distance not needed now that the sort handle does not overlap the controls (title link and buttons). 2018-01-28 12:27:12 +01:00
Ad Schellevis
d2d9a0dfbd dashboard/widgets, fix tab behaviour in ipsec widget, since d2a8576375 broke it. 2018-01-28 12:19:17 +01:00
Ad Schellevis
e8b7818df2 widgets/ntp, js error ntp_getstatus not found 2018-01-28 12:09:52 +01:00
Franco Fichtner
2fc86a72bf openssh: do not allow sftp login for non-admins
Also suggested by @fabianfrz.  Not perfect yet as we seem
to mix wheel with access and either need to lock down shell
access along with it or somehow tag along the shell privilege.

Small race in the group setting on the user page.

PR: https://forum.opnsense.org/index.php?topic=6994.0
2018-01-27 13:41:59 +00:00
Franco Fichtner
1fbbecec2e src: style for previous 2018-01-27 13:21:24 +00:00
Fabian Franz, BSc
9d8e53e3ea use label instead of font color (#2139) 2018-01-27 14:17:52 +01:00
Franco Fichtner
7ebd5fcd51 firewall: take first region for country, not last
PR: https://forum.opnsense.org/index.php?topic=7012.0
2018-01-27 12:57:26 +00:00
Ad Schellevis
cbcb9da2ee MVC/templates, replace javascript_include_when_exists() for more universal theme_file_or_default() template function.
The legacy code will still use a plain file_exists() for the optional theme.js, which keeps both in a working state after this commit.
To be able to move more files into the template directories for https://github.com/opnsense/core/pull/2124 we need to keep existing plugins functional, so we could integrate these changes into a minor release.
2018-01-27 12:23:43 +01:00
NOYB
201c62d60c Widgets Controls on Touch Screen - Update (Chrome)
This works with both Android and Desktop Chrome (v63) as well as IE 11.
exception: there is apparently an incompatibility between Chrome and JQuery sortable.  So drag/drop sort doesn't work in Chrome.

This is a modification of the previous:
3f7ee41b53

Touch events not working with the widget controls (link, buttons, drag/drop sort).
Add distance, delay and touch-action css for the widget controls to work with touch screen input.

Widget controls not working correctly with touch screen input
https://github.com/opnsense/core/issues/2092
2018-01-27 12:03:11 +01:00
NOYB
816ddcbb57 Fix a typo 2018-01-27 08:53:38 +01:00
Franco Fichtner
8c3f09a593 firmware: almost here 2018-01-26 21:44:03 +01:00
Franco Fichtner
b99968fb00 ntp: use all time servers, prefer the first 2018-01-26 11:18:12 +01:00
Alexander Shursha
8ad0a66869 Optimize exec('/usr/local/bin/openssl version') 2018-01-26 07:54:16 +01:00
Ad Schellevis
d2a8576375 Dashboard/widgets, ready() triggered twice, replace with $(window).load() to prevent duplicate requests. closes https://github.com/opnsense/core/issues/2104 2018-01-25 22:03:24 +01:00
Ad Schellevis
75365a0a45
Merge pull request #2099 from NOYB/Firewall_Logs_Widget_Tweaks
Firewall Logs Widget Tweaks
2018-01-24 19:01:52 +01:00
Franco Fichtner
69929ee38b firewall: fix port range forward expansion; closes #2126 2018-01-24 07:41:19 +00:00
NOYB
0c19c7b08a Viewport User Scalable 2018-01-24 08:19:01 +01:00
Fabian Franz, BSc
4dd4e05864 openvpn: open links in a new tab (#2116) 2018-01-23 22:29:55 +01:00
NOYB
ad6e76b989 HTML Compliance - "navigation" "role" on Element <nav>
Warning: The navigation role is unnecessary for element nav.

HTML 5.1 2nd Edition
W3C Recommendation 3 October 2017
4.3.4. The nav element
http://www.w3.org/TR/html51/sections.html#the-nav-element

Allowed ARIA role attribute values: ‘navigation’ role (default - do not set) or ‘presentation’.

http://www.w3.org/TR/html51/dom.html#do-not-set
Note: In the majority of cases setting an ARIA role and/or aria-* attribute that matches the default implicit ARIA semantics is unnecessary and not recommended as these properties are already set by the browser.

In the December 2017 document "is unnecessary and not recommended" is bold emphasized.
HTML 5.2
W3C Recommendation, 14 December 2017
http://www.w3.org/TR/html5/dom.html#aria-authoring-requirements

According to HTML5 Accessibility dot com, Chrome, Edge, and Safari have full support for the <nav> element.  Firefox lacks only "Name/Description".  Given the state of IE in this regard it is difficult to understand why anyone using it with assistive/accessibility technology at this point.
http://html5accessibility.com/

Markup like <nav role="navigation"> and <button role="button"> is superfluous since the HTML elements themselves already explain their role.
2018-01-23 07:43:18 +01:00
NOYB
c3b9707fc5 Firewall Logs Widget Tweaks
Widget purpose is to provide an overview, i.e. abbreviated information, of the firewall log.  Details are available in the firewall log view.
  Source port is not all that interesting.  Consumes considerable space for not much value in this view.
  Remove seconds from time field.  Verbosity is available in the firewall log view.

Apply "table-condensed" class for better space utilization.

Settings:
  Provide some separation between check boxes and make their labels active.  Better accessibility and touch screen friendliness.
2018-01-22 16:18:28 -08:00
NOYB
6ef9a127ff HTML Compliance - Attribute "type" on Element <script>
Warning: The type attribute is unnecessary for JavaScript resources.

HTML5: Edition for Web Authors
http://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html
The default, which is used if the attribute is absent, is "text/javascript".

The Script element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
2018-01-22 19:13:34 +01:00
NOYB
f509437f84 HTML Compliance - Attribute "content" value on Element <meta>
Error: A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value IE=edge.

The "Chrome=1" value was used to spawn Chrome Frame in IE 6,7,8,9.  However, "Google Chrome Frame was discontinued in January 2014", and think all IE<11 is beyond EOL.
So is this even needed/useful?

If needed/useful it would probably be better to support deployment by HTTP headers method instead.

Google Chrome Frame
https://en.wikipedia.org/wiki/Google_Chrome_Frame
2018-01-20 13:54:58 +01:00
Franco Fichtner
573612d48e intrusion detection: log drops and alerts causing them 2018-01-20 12:17:04 +01:00
Franco Fichtner
5e970ddf87 system: allow dots in certificate details 2018-01-19 16:18:56 +01:00
Franco Fichtner
73527b8844 web gui: label tweaking, do not mention recovery yet #1347 2018-01-19 08:38:02 +01:00
Franco Fichtner
795dd8bd72 web gui: add a warning dialog for #1347 2018-01-19 08:28:57 +01:00
Franco Fichtner
947718b44b firewall: fix booting alias resolve for #2102
While here, also honour ssl_no_verify and plug in force
usage in the right spot (currently unused but still).
2018-01-18 09:52:00 +01:00
Franco Fichtner
c371155455 rc: since configctl prints "OK" we need a sensible preamble 2018-01-17 11:24:10 +01:00
Franco Fichtner
3bf091ed51 dashboard: better fix for previous
Spotted by: @NOYB
2018-01-17 07:03:14 +00:00
Franco Fichtner
aad052a38c dashboard: revert previous, need to go the other way 2018-01-17 06:55:33 +00:00
NOYB
3f7ee41b53 Widgets Controls on Touch Screen
Touch events not working with the widget controls (link, buttons, drag/drop sort).
Add distance, delay and touch-action css for the widget controls to work with touch screen input.

Widget controls not working correctly with touch screen input
https://github.com/opnsense/core/issues/2092
2018-01-17 07:54:31 +01:00
NOYB
dbc244aa17 Interfaces Widget Name & Title Link
Widget names are derived from the widget file base name, which in turn is used to obtain the widget title link.
This restores the original interfaces widget file base name, which fixes the broken title link.
2018-01-17 07:47:32 +01:00
Franco Fichtner
bba40c9789 firewall: fix 'aliases' is undefined error 2018-01-16 20:12:34 +01:00
Franco Fichtner
3869385096 rc: defer newwanip not exectued during boot
PR: https://forum.opnsense.org/index.php?topic=6891.0
2018-01-16 20:10:01 +01:00
Franco Fichtner
cd5e23360f rc: show argument for defer, order was wrong
PR: https://forum.opnsense.org/index.php?topic=6891.0
2018-01-16 17:58:49 +01:00
Franco Fichtner
73ad71d0f6 interfaces: tweak working for vlan hw filter; closes #2094 2018-01-16 15:57:14 +01:00
Franco Fichtner
461e28dce8 system: fix brain typo in routes MVC
PR: https://forum.opnsense.org/index.php?topic=6881.0
2018-01-16 11:37:44 +01:00
Franco Fichtner
585d251ae7 rc: annotate reason in the code, too 2018-01-15 22:01:47 +01:00