46 Commits

Author SHA1 Message Date
Ad Schellevis
f2541f4e9f Firewall - groups : rename source/destination networks, closes https://github.com/opnsense/core/issues/5056 2021-06-18 20:35:27 +02:00
Ad Schellevis
e738e3ca05
ifgroups: simplify group maintenance for https://github.com/opnsense/core/issues/3780 (#3977)
It doesn't really seem to make sense to try to link groups on different places, if they're only usable for pf which is always reloaded when new interfaces are connected.
The new ifgroup_setup() synchonizes attached interfaces for all configured groups, only rename and delete are still being served from the management pages (to avoid dropping static groups like openvpn).
2020-03-13 08:24:37 +01:00
Robin Schneider
f2769fe099 Sort interface groups in GUI to match firewall rule order (#3537)
This now makes it easy and predictable to add interfaces to multiple
groups.

Before this change, the interfaces_groups GUI was sorted by the
order that interface groups were added. However, this was not the order
that the actual pf rules would then be generated making it unpredictable
when adding interfaces to multiple groups.

The filter_rules_sort function already took care of the actual pf rule
order.

I also took care of only marking the filter subsystem dirty when needed.
I tested this patch quite a bit on 19.1.8. When updating, users only
need to make one change to the interface groups to have them sorted in
the GUI.

I hope I did not miss anything because this patch is against master. In
it’s current state, the patch can be directly applied to 19.1.x or
master.
2019-06-18 16:46:04 +01:00
Franco Fichtner
055913845e interfaces: unicode whitespace of death 2019-04-29 08:53:06 +02:00
Franco Fichtner
c0d3142a5b interfaces: another rule for group name...
...as dictated by ifconfig.  Found out the hard way.  ;)
2019-04-29 08:51:54 +02:00
Franco Fichtner
8b8f02be16 interfaces: group add/delete mwexecf() conversion
Since get_real_interface() can be empty it should always be escaped.
2019-04-28 18:56:32 +02:00
Franco Fichtner
14b9f355f2 interfaces: adapt to the new reality of get_real_interface() 2019-04-28 18:32:24 +02:00
Franco Fichtner
d40c917fcb interfaces: long group names vs. pf(4)
PR: https://forum.opnsense.org/index.php?topic=12527.0
2019-04-26 05:42:22 +02:00
Franco Fichtner
3498416734 interfaces: in a perfect world these do not need services.inc
Let's make it so.  :)
2019-04-25 09:37:34 +02:00
Ad Schellevis
1b6d698429 Filter, groups. allow underscores in names and fix bug leaving groups assigned after rename. closes https://github.com/opnsense/core/issues/3439 2019-04-24 12:26:34 +02:00
Ad Schellevis
4a8e737ced fix some gettext() + html_safe, discussed c4c7f8d732 2019-02-03 20:04:08 +01:00
Ad Schellevis
d17209e9ab Interface groups, show disabled interfaces as well, closes https://github.com/opnsense/core/issues/3082 2018-12-31 08:51:41 +01:00
Franco Fichtner
a0e3630364 src: unify the label printing of interfaces
This annoyed me for a long time: always print the literal description
if found, only use uppercase on the interface key if no description
is available.
2018-05-04 08:15:52 +00:00
NOYB
9d96bdcbc7 Help For - Data For Attribute
Use original element (<div>/<small>) with "data-for" attribute.

The old jquery "for" attribute selectors can be removed once conversion to "data-for" attribute is complete (including plugins).

The old jquery selectors to remove once conversion is complete.
  opnsense_ui.js & head.inc
  $("*[for='" + $(this).attr('id') + "']")....
  $('[for*="help_for"]')....
2018-03-17 16:12:55 +01:00
NOYB
4a7bcae7af HTML Compliance - Attribute "for" on Element <div>
Error: Attribute "for" not allowed on element "div" at this point.
Attributes for element "div": http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-div-element

HTML attribute reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
The "Output" element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output

Attributes for element "output": http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-output-element
2018-01-06 10:52:17 +01:00
NOYB
b2f4cfa7c1 HTML Compliance - Attribute "type" on Element <i>
Error: Attribute "type" not allowed on element <i> at this point.
2018-01-05 08:36:26 +01:00
NOYB
76aab5cb52 HTML Compliance - Obsolete table attributes
width, align, valign, cellpadding, cellspacing, border, summary

Error: The width attribute on the table element is obsolete. Use CSS instead.
Error: The align attribute on the table element is obsolete. Use CSS instead.
Error: The valign attribute on the table element is obsolete. Use CSS instead.
Error: The cellpadding attribute on the table element is obsolete. Use CSS instead.
Error: The cellspacing attribute on the table element is obsolete. Use CSS instead.
Error: The border attribute on the table element is obsolete. Use CSS instead.
Error: The summary attribute on the table element is obsolete. Consider describing the structure of the table in a caption element or in a figure element containing the table; or, simplify the structure of the table so that no description is needed.
2018-01-04 18:26:02 +01:00
Franco Fichtner
c5d4002541 src: add Scott's e-mail everywhere 2017-08-05 20:57:29 +02:00
Ad Schellevis
69510a5fad legacy ui pages cleanup for https://github.com/opnsense/core/issues/1733 2017-07-22 15:01:26 +02:00
Franco Fichtner
73b1d444ee interfaces: small simplification for #1455 2017-03-10 09:19:53 +01:00
Ad Schellevis
1dabd53dce (plugins, interfaces) add ifgroup type, filter in interfaces_groups_edit.php. for https://github.com/opnsense/core/issues/1455 2017-03-10 09:06:37 +01:00
Ad Schellevis
f6d83a94e5 (interface groups) allow virtual interfaces, for https://github.com/opnsense/core/issues/1455 2017-03-09 21:48:26 +01:00
Ad Schellevis
52b95b80c0 (legacy) cancel button behaviour, closes https://github.com/opnsense/core/issues/1099 2016-12-12 21:34:03 +01:00
Franco Fichtner
152141866b interfaces: url_safe() redirects for #1168 2016-10-09 18:26:39 +02:00
Franco Fichtner
0e03967cf5 www: strip plugins.inc from frontend 2016-10-01 10:50:03 +02:00
Franco Fichtner
1d73b3b59d plugins: follow the footsteps of plugins_syslog() and plugins_services()
This looks simple enough now.  Discussed with @adschellevis.
2016-08-29 07:10:29 +02:00
Franco Fichtner
ecdcc4b736 plugins: tweak interface plugging
PPPoE wasn't removed, which led to some refactoring to find
out why.  The outcome is the same, but works a little bit
different now.  While there, make it possible to omit the
config write in case we are going to call write_config()
shortly after anyway.

This will also be necessary for the legacy VPN plugins.
2016-08-08 09:07:35 +02:00
Franco Fichtner
c00e8eb0af interfaces: fix a crash report 2016-08-05 07:46:18 +02:00
Ad Schellevis
446da190f0 (interface groups) trigger missing to notify changed interface administration, closes https://github.com/opnsense/core/issues/1064 2016-07-22 11:31:20 +02:00
Ad Schellevis
0b31dc522f add opnsense_standard_table_form class to forms 2016-05-20 17:09:58 +02:00
Ad Schellevis
67b827a84f html correction 2016-03-04 12:07:12 +01:00
Ad Schellevis
253e8a2f9e (legacy) refactor interfaces_groups_edit.php 2016-01-04 12:54:56 +01:00
Franco Fichtner
86d50f8793 www: remove the need for manual $pgtitle #461 2015-12-08 19:45:59 +01:00
Franco Fichtner
e369c686aa src: php opening tag cleanup, the return 2015-11-10 08:29:55 +01:00
Franco Fichtner
1b03f583a7 www: transform $input_error strings to gettext()
Spotted by: @fabianfrz
2015-11-07 21:52:56 +01:00
Franco Fichtner
98a0662d07 interfaces: zap legacy shortcuts 2015-10-15 00:04:12 +02:00
Franco Fichtner
184b842a2f interfaces: fix a crash report 2015-09-15 17:54:58 +02:00
Ad Schellevis
465e699e71 (legacy) dependency cleanups related to functions.inc / interfaces.inc 2015-07-22 16:56:38 +00:00
Ad Schellevis
7418af459b (legacy) add additional check on $input_errors as part of cleanup notices 2015-07-06 16:58:36 +00:00
Ad Schellevis
ba800ae6c8 (legacy) fix check on $savemsg and $input_errors 2015-07-06 14:43:02 +00:00
Ad Schellevis
c0449191f4 (legacy) $jsevents["body"]["onload"] is never set 2015-07-06 13:28:46 +00:00
Ad Schellevis
fe5ae1b7b2 cleanup requires + small typo's 2015-03-23 20:47:12 +00:00
Jos Schellevis
60a5170dc8 Several GUI fixes, including mobile presentation 2015-01-27 14:20:30 +00:00
Jos Schellevis
fb340fcd94 More cleanups, copyrights and links 2015-01-01 13:47:20 +00:00
Franco Fichtner
d389da3582 interfaces: apply whitespace cleanups 2014-12-28 09:36:37 +01:00
Franco Fichtner
727453c076 src: move all files (again)
Make "src" the implicit "/usr/local" so that nobody can
sneak in weird files in the base file system or potentially
overwrite them.

This is the last time, I swear...  :)
2014-12-10 16:42:39 +01:00