1 .\" $NetBSD: ipnat.8,v 1.9 2006/04/04 16:17:18 martti Exp $
5 ipnat \- user interface to the NAT subsystem
17 .B \-f <\fIfilename\fP>
20 \fBipnat\fP opens the filename given (treating "\-" as stdin) and parses the
21 file for a set of rules which are to be added or removed from the IP NAT.
23 Each rule processed by \fBipnat\fP
24 is added to the kernels internal lists if there are no parsing problems.
25 Rules are added to the end of the internal lists, matching the order in
26 which they appear when given to \fBipnat\fP.
30 must be enabled (with \fBipf -E\fP) before NAT is configured,
31 as the same kernel facilities are used for
32 NAT functionality. In addition, packet forwarding must be
34 These details may be handled automatically when \fBipnat\fP is
35 run by \fBrc\fP at normal system startup.
45 delete all entries in the current NAT rule listing (NAT rules)
48 Enable printing of some extra debugging information.
51 delete all active entries in the current NAT translation table (currently
55 Print number of hits for each MAP/Redirect filter.
58 Show the list of current NAT table entry mappings.
61 This flag (no-change) prevents \fBipf\fP from actually making any ioctl
62 calls or doing anything which would alter the currently running kernel.
65 Remove matching NAT rules rather than add them to the internal lists.
68 Retrieve and display NAT statistics.
71 Turn verbose mode on. Displays information relating to rule processing
72 and active rules/table entries.
77 /usr/share/examples/ipf Directory with examples.
79 \fBioctl(SIOCGNATS): Input/output error\fP Ensure that the necessary kernel
80 functionality is present and \fBipf\fP enabled with \fBipf -E\fP.
82 ipnat(5), rc.conf(5), ipf(8), ipfstat(8)