Explain the firewall rule columns in tooltips
The paragraph under the table gives way to a hint; each heading says what its column is. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,6 +60,20 @@ section { margin: 0 0 1.5rem; }
|
||||
section.busy, section.pending { padding: .75rem 1rem; border-radius: var(--radius); background: var(--warn); }
|
||||
.upload-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); padding: 1rem; }
|
||||
.upload-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0, 0, 0, .35); padding: 1.25rem 1.5rem; width: min(30rem, 100%); }
|
||||
/* A heading that explains itself when the mouse rests on it. */
|
||||
th[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: .25em; text-decoration-color: var(--tick); }
|
||||
/* A diff as GitLab shows it: line numbers of both sides, red and green rows. */
|
||||
.diff { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--surface); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; margin: 0 0 1rem; }
|
||||
.diff .drow { display: flex; min-width: max-content; }
|
||||
.diff .ln { flex: none; width: 3.2rem; padding: 0 .5rem; text-align: right; color: var(--muted); background: var(--zebra); user-select: none; border-right: 1px solid var(--line); }
|
||||
.diff .mk { flex: none; width: 1.4rem; text-align: center; user-select: none; }
|
||||
.diff code { flex: 1; white-space: pre; padding-right: 1rem; background: none; }
|
||||
.diff .add { background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
|
||||
.diff .add .ln { background: color-mix(in srgb, var(--good) 28%, var(--surface)); }
|
||||
.diff .del { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }
|
||||
.diff .del .ln { background: color-mix(in srgb, var(--bad) 28%, var(--surface)); }
|
||||
.diff .gap { background: var(--head); color: var(--muted); padding: .1rem 0; }
|
||||
.diff .gaptext { padding-left: 7.5rem; user-select: none; }
|
||||
.dialog-question { margin: 0; font-size: 1.05rem; }
|
||||
.dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.25rem; }
|
||||
.upload-card.wide { width: min(48rem, 100%); }
|
||||
|
||||
@@ -40,7 +40,19 @@
|
||||
<input type="hidden" name="rows" value="{{len .Rows}}">
|
||||
<div class="scroll">
|
||||
<table>
|
||||
<tr><th>From zone</th><th>From address</th><th>From port</th><th>To zone</th><th>To address</th><th>To port</th><th>Protocol</th><th title="only connections that a port forward translated">Forwarded only</th><th>Log</th><th>Rate limit</th><th>Remove</th></tr>
|
||||
<tr>
|
||||
<th title="The zone the traffic comes from. wan is the internet.">From zone</th>
|
||||
<th title="Only traffic from these addresses: IPv4 or IPv6, single or CIDR, several separated by commas. Empty: any address.">From address</th>
|
||||
<th title="Only traffic from these source ports (tcp and udp only), like 53 or 5000-5100. Empty: any port.">From port</th>
|
||||
<th title="The zone the traffic goes to. local is the router itself (SSH, the web UI).">To zone</th>
|
||||
<th title="One address or network inside the destination zone (IPv4 or IPv6). Empty: the whole zone. A rule from wan must name it; a rule to local needs none.">To address</th>
|
||||
<th title="Destination ports (tcp and udp only), like 22, 443 or 5000-5100. Empty: all ports. A rule from wan or to local must name them. A port forward on the same port wins.">To port</th>
|
||||
<th title="any, tcp, udp or icmp. Ports need tcp or udp. A rule from wan or to local must name the protocol.">Protocol</th>
|
||||
<th title="Limits the rule to connections that a port forward translated (the allow rule that goes with a forward), not traffic addressed directly to the destination.">Forwarded only</th>
|
||||
<th title="Log new connections this rule accepts, and those it drops because of the rate limit (kernel log).">Log</th>
|
||||
<th title="Caps new connections per sender, like 10/minute (or /second, /hour). The excess is dropped. Empty: no limit.">Rate limit</th>
|
||||
<th title="Tick and save to delete this rule.">Remove</th>
|
||||
</tr>
|
||||
{{range $i, $r := .Rows}}
|
||||
<tr>
|
||||
<td><select name="rule.{{$i}}.from"><option value=""></option>
|
||||
@@ -65,11 +77,8 @@
|
||||
{{end}}
|
||||
</table>
|
||||
</div>
|
||||
<p class="hint">Fill in the last row to add a rule. Addresses (several separated by commas) are IPv4 or IPv6, single or CIDR;
|
||||
to address is one address or network. Ports (tcp and udp only): <code>22, 443, 5000-5100</code>.
|
||||
From <code>wan</code> (the internet) a rule must name the address inside, the protocol and the ports, and only lets
|
||||
traffic through; a port forward is set up below. <strong>Forwarded only</strong> limits a rule to connections that a
|
||||
port forward translated. To zone <code>local</code> is the router itself (SSH, the web UI): no address needed, but protocol and ports are. A port forward on the same port wins. Rate limit caps new connections per sender, like <code>10/minute</code>.</p>
|
||||
<p class="hint">Fill in the last row to add a rule. Hover over a column heading to see what it means. A rule from
|
||||
<code>wan</code> only lets traffic through; a port forward is set up below.</p>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
|
||||
Reference in New Issue
Block a user