summaryrefslogtreecommitdiff
path: root/sbin/ipnat/ipnat.1
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ipnat/ipnat.1')
-rw-r--r--sbin/ipnat/ipnat.140
1 files changed, 28 insertions, 12 deletions
diff --git a/sbin/ipnat/ipnat.1 b/sbin/ipnat/ipnat.1
index 3721e658f8f..f3221a76b5a 100644
--- a/sbin/ipnat/ipnat.1
+++ b/sbin/ipnat/ipnat.1
@@ -1,11 +1,15 @@
-.TH IPFNAT 1
+.TH IPNAT 1
.SH NAME
-ipnat - user interface to the NAT
+ipnat \- user interface to the NAT
.SH SYNOPSIS
-ipnat [-lnrsv] -f <\fIfilename\fP>
+.B ipnat
+[
+.B \-lnrsvCF
+]
+.B \-f <\fIfilename\fP>
.SH DESCRIPTION
.PP
-\fBipnat\fP opens the filename given (treating "-" as stdin) and parses the
+\fBipnat\fP opens the filename given (treating "\-" as stdin) and parses the
file for a set of rules which are to be added or removed from the IP NAT.
.PP
Each rule processed by \fBipnat\fP
@@ -13,17 +17,29 @@ is added to the kernels internal lists if there are no parsing problems.
Rules are added to the end of the internal lists, matching the order in
which they appear when given to \fBipnat\fP.
.SH OPTIONS
-.IP -l
+.TP
+.B \-C
+delete all entries in the current NAT listing (NAT rules)
+.TP
+.B \-F
+delete all active entries in the current NAT table (currently active
+NAT mappings)
+.TP
+.B \-l
Show the list of current NAT table entry mappings.
-.IP -n
+.TP
+.B \-n
This flag (no-change) prevents \fBipf\fP from actually making any ioctl
calls or doing anything which would alter the currently running kernel.
-.IP -s
-retrieve and display NAT statistics
-.IP -r
-remove matching NAT rules rather than add them to the internal lists
-.IP -v
-turn verbose mode on. Displays information relating to rule processing.
+.TP
+.B \-s
+Retrieve and display NAT statistics
+.TP
+.B \-r
+Remove matching NAT rules rather than add them to the internal lists
+.TP
+.B \-v
+Turn verbose mode on. Displays information relating to rule processing.
.DT
.SH SEE ALSO
ipfstat(1), ipftest(1), ipf(1), ipnat(4), ipnat(5)