summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2023-11-13 11:11:33 +0100
committerJan Engelhardt <jengelh@inai.de>2023-11-13 11:11:49 +0100
commitc38c36deab31b6d52d2657873c4f0aec9236220b (patch)
tree773a5f3743b4becde5e2ed62f2effd94f1bf90cf
parent0a2e01372dc854cba41b716d5cae252d13e20b0c (diff)
man: layout and colorize synopsis similar to iptables
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
-rw-r--r--ebtables-legacy.8.in57
1 files changed, 32 insertions, 25 deletions
diff --git a/ebtables-legacy.8.in b/ebtables-legacy.8.in
index c12f737..2a8e7ad 100644
--- a/ebtables-legacy.8.in
+++ b/ebtables-legacy.8.in
@@ -26,31 +26,38 @@
.SH NAME
ebtables-legacy \(em Ethernet bridge frame table administration (@PACKAGE_VERSION@)
.SH SYNOPSIS
-.BR "ebtables " [ -t " table ] " - [ ACDI "] chain rule specification [match extensions] [watcher extensions] target"
-.br
-.BR "ebtables " [ -t " table ] " -P " chain " ACCEPT " | " DROP " | " RETURN
-.br
-.BR "ebtables " [ -t " table ] " -F " [chain]"
-.br
-.BR "ebtables " [ -t " table ] " -Z " [chain]"
-.br
-.BR "ebtables " [ -t " table ] " -L " [" -Z "] [chain] [ [" --Ln "] | [" --Lx "] ] [" --Lc "] [" --Lmac2 ]
-.br
-.BR "ebtables " [ -t " table ] " -N " chain [" "-P ACCEPT " | " DROP " | " RETURN" ]
-.br
-.BR "ebtables " [ -t " table ] " -X " [chain]"
-.br
-.BR "ebtables " [ -t " table ] " -E " old-chain-name new-chain-name"
-.br
-.BR "ebtables " [ -t " table ] " --init-table
-.br
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-commit
-.br
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-init
-.br
-.BR "ebtables " [ -t " table ] [" --atomic-file " file] " --atomic-save
-.br
-
+\fBebtables\fP [\fB\-t\fP \fItable\fP] {\fB\-A\fP|\fB\-C\fP|\fB\-D\fP}
+\fIchain\fP \fIrule-specification\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-I\fP \fIchain\fP [\fIrulenum\fP]
+\fIrule-specification\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-D\fP \fIchain rulenum\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] {\fB\-F\fP|\fB\-Z\fP} [\fIchain\fP
+[\fIrulenum\fP]]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-L\fP [\fB\-\-Lc\fP]
+[\fB\-\-Lmac2\fP] [\fB\-\-Ln\fP] [\fB\-\-Lx\fP] [\fIchain\fP [\fIrulenum\fP]]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-N\fP \fIchain\fP [\fB\-P\fP
+\fIpolicy\fP]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-X\fP [\fIchain\fP]
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-P\fP \fIchain policy\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-E\fP \fIold-chain-name
+new-chain-name\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] \fB\-\-init-table\fP
+.PP
+\fBebtables\fP [\fB\-t\fP \fItable\fP] [\fB\-\-atomic\-file\fP \fIfile\fP]
+{\fB\-\-atomic\-commit\fP|\fB\-\-atomic\-init\fP|\fB\-\-atomic\-save\fP}
+.PP
+rule-specification := [match-options] [watcher-options] [target]
+.PP
+target := \fB\-j\fP \fItargetname\fP [target-options]
.SH LEGACY
This tool uses the old xtables/setsockopt framework, and is a legacy version
of ebtables. That means that a new, more modern tool exists with the same