144 Commits

Author SHA1 Message Date
Ad Schellevis
af7d7236df firewall, rules. use same message as other legacy pages, which also informs the user about HAsync when needed. The background note is not very relevant anyway. 2019-08-07 17:03:30 +02:00
Ad Schellevis
d2fc3c2567 firewall, rules. refactor message dialog to show after toggle. ref https://github.com/opnsense/core/pull/3605 2019-08-07 10:32:03 +02:00
Ad Schellevis
c8b57d0bfe firewall/rules, toggle enabled/disabled, log on/off via ajax call, as discussed https://github.com/opnsense/core/pull/3605 2019-08-06 13:09:11 +02:00
johnaheadley
acfc9f636f
Logging toggle v2 2019-08-04 11:03:55 -07:00
John Headley
50fbe6ca79 Merge remote-tracking branch 'opnsense/master' into logging_toggle
# Conflicts:
#	src/www/firewall_rules.php
2019-08-04 10:23:13 -07:00
Ad Schellevis
7edd851e20 Firewall overview, minor alignment fix. closes https://github.com/opnsense/core/issues/3619 2019-08-01 11:09:14 +02:00
Ad Schellevis
01c16b0a86
Firewall, allow quick and direction on interface rules, closes https://github.com/opnsense/core/issues/3594
Currently the direction of the traffic can only be chosen in floating rules, but in some scenario's it's much easier to create outbound rules (only inbound is supported now).

When using a lot of interfaces, which should all be allowed to access devices on one specific interface, this would save quite some rules and is easier to track for the administrator.

This feature adds direction as on option and while already changing these pages, also allow to create "non quick" rules on interfaces.
Functionally the "regular" rules would be more aligned with the "floating" rules as we have now, with the exception that you can't add multiple interfaces in a normal rule due to the inability to reorder a single rule in multiple rulesets (rules are positional).

Policy based routing on outbound rules is not supported on the interface rules for now, since it would probably lead to confusion.
The old configuration defaults still apply, when writing an entry, both quick and direction are saved as well (default quick + in).
2019-08-01 09:37:24 +02:00
Ad Schellevis
534f3c870e Filter, rule overview, show automatic rules targetting all interfaces in Floating section (slightly related to https://github.com/opnsense/core/issues/3594) 2019-07-30 14:04:19 +02:00
johnaheadley
6fec8fc6a5
Added logging toggle for firewall rules 2019-07-27 10:47:33 -07:00
Ad Schellevis
8aedc0f0d3 filter, rules page. html escape dynamic entries to display aliases. ref https://github.com/opnsense/core/issues/3581 2019-07-18 12:59:35 +02:00
Ad Schellevis
7665d2bc7f filter, rule overview. guess ipproto when not set, closes https://github.com/opnsense/core/issues/3581 2019-07-18 08:54:45 +02:00
Franco Fichtner
5184400115 firewall: change this back #3497 2019-05-23 08:30:32 +02:00
Franco Fichtner
135305347d firewall: use "*" in automatic rules for schedule as well
Although "N/A" is true, "*" is more consistent.
2019-05-11 13:03:46 +02:00
Franco Fichtner
abe6b092e0 firewall: kill hover, we have proper striping now 2019-05-09 11:28:22 +02:00
Ad Schellevis
b3550c97f3 filter/rules. fix striping in firewall_rules.php 2019-05-09 10:53:52 +02:00
Franco Fichtner
fed700680f firewall: restyle a little more
Ideally we want to follow NAT as well, at least for the condensed layout.
For now move the padding to a class, we can't have two ids with the same
value.  Initial striping seems broken.  Let the browser render initially
for now.
2019-05-08 23:43:37 +02:00
Franco Fichtner
b0b51baefc firewall: move no rules info to top into info box
Also experiment with "warning" and "success" coloring to further
leaverage bootstrap magic.  The colors need tweaking or reverting,
but let's just see how this looks and feels for the time being.
2019-05-08 20:16:19 +02:00
Franco Fichtner
6c6f652b39 firewall: fix table layout jumping for @adschellevis
Hide some features on smaller layout, add magic icons to automatic
rules and change the expand drop down to the right which seems a
little more natural to operate.
2019-05-08 19:40:37 +02:00
Ad Schellevis
687c587ae9 firewall_rules.php, fix left+right spacing as discussed earlier in https://github.com/opnsense/core/issues/3462 2019-05-08 18:42:52 +02:00
opnsenseuser
64602ca597 19.7 - Firewall rules - page margin - fix
#rules > thead > tr > th,
    #rules > tbody > tr > td,
    #rules > tfoot > tr > td {
        padding:10px 0px 10px 20px;
    }

i set the same values as in 19.1 (main.css)

see -> https://github.com/opnsense/core/issues/3462#issuecomment-489431982
2019-05-05 20:18:38 +02:00
Ad Schellevis
a6013d0545 filter, rules center select columns, closes https://github.com/opnsense/core/issues/3462 2019-05-05 14:11:29 +02:00
Franco Fichtner
b4e7611601 firewall: part of #3429 2019-05-02 10:11:08 +02:00
Ad Schellevis
1a55473032 Filter, add ipv6-icmp type selection, closes https://github.com/opnsense/core/issues/3412 2019-04-15 14:54:19 +02:00
Ad Schellevis
0edd562429 Fitler, firewall_rules.php, descr already escaped. closes https://github.com/opnsense/core/issues/3418 2019-04-15 09:17:38 +02:00
Ad Schellevis
c16129ad24 filter, rule grid use table-condensed to increase readability. 2019-03-24 19:48:14 +01:00
Ad Schellevis
114b904e1c filter, remove static blocks from overview grid, optionally expand to all auto-generated rules. closes https://github.com/opnsense/core/issues/3312
- remove "Block all IPv6 traffic" block
- remove "Anti-Lockout Rule" block
- remove "Block private networks" block
- remove "Block bogon networks" block
- add all plugged-in filter rules for the selected interface
2019-03-19 16:44:11 +01:00
Ad Schellevis
31b4479fdf Firrewall, rules. move some presentation logic into its own functions, to ease presentation of equal logic for https://github.com/opnsense/core/issues/3312 2019-03-19 13:02:54 +01:00
Franco Fichtner
807ff055cb firewall: tweak inspect button behaviour and table layout a bit 2019-03-18 07:46:05 +01:00
Ad Schellevis
2f6c3b79dd firewall, per rule statistics. add inspect button, for https://github.com/opnsense/core/issues/3312 2019-03-13 18:59:14 +01:00
Ad Schellevis
7ad7f55bca fix some escape issues in legacy code 2019-01-29 19:05:33 +01:00
Michael Steenbeek
97645093c3 Fix missing semicolons 2019-01-11 16:44:23 +01:00
Michael Steenbeek
98247373d0 Remove nonexistant CSS properties
The table attributes 'cellspacing' and 'cellpadding' were moved inside the style attribute via a script. However, they are not valid CSS properties, so browsers should (and do) ignore them.
This commit removes them. The 'table' class, set on most tables, should take care of proper formatting anyway.
2018-12-03 12:01:41 +01:00
Franco Fichtner
63e16c418b firewall: small adjustments to match previous 2018-11-25 23:29:59 +01:00
Franco Fichtner
b8858226ed firewall: take antilockout to the next level
One function to return interface and ports if that is allowed
and possible somehow.  Aligns logic across all components and
makes future tweaks super easy.
2018-11-08 23:31:36 +01:00
Franco Fichtner
c40b188e8a firewall: simplify this further 2018-11-08 23:11:03 +01:00
Franco Fichtner
10c9612817 firewall: consolidate anti-lockout interface test
Still strange that the firewall code does not care about
noantilockout setting?

PR: https://forum.opnsense.org/index.php?topic=10088.0
2018-11-08 22:54:49 +01:00
Thomas Bandixen
8c83f70f1f Correction for the "move to end" function 2018-10-23 13:36:38 +02:00
Thomas Bandixen
37ed64761a Upper and lower case corrections 2018-10-23 13:36:38 +02:00
Franco Fichtner
475e2e438f firewall: hover on new colours does no longer work
And this now underlines " / " in between both icons.
2018-09-30 13:30:38 +02:00
framer99
480fb97b8a Alter schedule legend in footer for active/inactive icon 2018-09-30 12:05:49 +02:00
framer99
c1c5ef115e make Schedule icon reflect current schedule state
On firewall_rules.php, there is no indication whether a schedule-based
rule is active. This change to the schedule icon applies the same styles
that are applied to a disabled/enabled Pass rule icon (text-muted and
text-success).

The break added to the foreach loop is needed to retain reference to the
attached schedule for the filter_get_time_based_rule_status() call
2018-09-30 12:03:59 +02:00
Ad Schellevis
f87ba3db64 Firewall/alias, change edit links in legacy pages for https://github.com/opnsense/core/issues/1858 2018-08-24 18:00:43 +02:00
framer99
1489973eac Fix disabled Reject action icon display code 2018-08-10 07:55:01 +02:00
Ad Schellevis
a0b88452a4 Firewall, disable/enable [nat]rules using check boxes, closes https://github.com/opnsense/core/issues/1587 2018-07-30 21:38:11 +02:00
Ad Schellevis
d811c64058 Firewall/alias, while working on https://github.com/opnsense/core/issues/1858 add first 10 alias items when no description is provided in get_alias_description(). closes https://github.com/opnsense/core/issues/2495 2018-07-24 13:22:25 +02:00
Franco Fichtner
e13de05e92 firewall: gyphicons gone; closes #2440 2018-06-25 06:24:10 +00:00
Ad Schellevis
c1ad86d8ae firewall, add text-muted to disabled rules, closes https://github.com/opnsense/core/issues/2409 2018-05-17 08:27:09 +02:00
Michael
aaf478aa03 updated link
Seems this option was in _admin and moved to _firewall. Now it links to the correct page for editing anti lockout rule
2018-03-26 12:10:15 +02:00
Franco Fichtner
e9c3be35d6 www: visual cleanups, unused class/style zapping #2290 2018-03-25 13:10:27 +00:00
Franco Fichtner
dfe4fe64c9 www: switch copy+paste files to current standards 2018-03-04 12:57:12 +01:00