2 .\" To view license terms, attribution, and copyright for IP Filter, the default path is /usr/lib/ipf/IPFILTER.LICENCE. If the Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
4 .\" Portions Copyright (c) 2008, Sun Microsystems Inc. All Rights Reserved.
5 .\" Portions Copyright (c) 2013, Joyent, Inc. All Rights Reserved.
6 .TH IPNAT 1M "Oct 30, 2013"
8 ipnat \- user interface to the NAT subsystem
12 \fBipnat\fR [\fB-CdFhlnRrsv\fR] [\fB-G\fR | \fB-z\fR \fIzonename\fR] \fB-f\fR \fIfilename\fR
17 The \fBipnat\fR utility opens a specified file (treating \fB-\fR as stdin) and
18 parses it for a set of rules that are to be added or removed from the IP NAT.
21 If there are no parsing problems, each rule processed by \fBipnat\fR is added
22 to the kernel's internal lists. Rules are appended to the internal lists,
23 matching the order in which they appear when given to \fBipnat\fR.
26 \fBipnat\fR's use is restricted through access to \fB/dev/ipauth\fR,
27 \fB/dev/ipl\fR, and \fB/dev/ipstate\fR. The default permissions of these files
28 require \fBipnat\fR to be run as root for all operations.
31 \fBipnat\fR's use is restricted through access to \fB/dev/ipnat\fR. The default
32 permissions of \fB/dev/ipnat\fR require \fBipnat\fR to be run as root for all
36 The following options are supported:
43 Delete all entries in the current NAT rule listing (NAT rules).
52 Turn debug mode on. Causes a hex dump of filter rules to be generated as it
62 Delete all active entries in the current NAT translation table (currently
69 \fB\fB-f\fR \fIfilename\fR\fR
72 Parse specified file for rules to be added or removed from the IP NAT.
73 \fIfilename\fR can be stdin.
82 Print number of hits for each MAP/Redirect filter.
91 Show the list of current NAT table entry mappings.
100 Prevents \fBipf\fR from doing anything, such as making ioctl calls, which might
101 alter the currently running kernel.
110 Disable both IP address-to-hostname resolution and port number-to-service name
120 Remove matching NAT rules rather than add them to the internal lists.
129 Retrieve and display NAT statistics.
138 Turn verbose mode on. Displays information relating to rule processing and
139 active rules/table entries.
145 \fB\fB-z\fR \fIzonename\fR\fR
148 Operate on the in-zone IP NAT for the specified zone. If neither this option
149 nor \fB-G\fR is specified, the current zone is used. This command is only
150 available in the Global Zone. See \fBZONES\fR in \fBipf\fR(1m) for more
157 \fB\fB-G\fR \fIzonename\fR\fR
160 Operate on the global zone controlled IP NAT for the specified zone. If
161 neither this option nor \fB-z\fR is specified, the current zone is used. This
162 command is only available in the Global Zone. See \fBZONES\fR in \fBipf\fR(1m)
163 for more information.
169 \fB\fB/dev/ipnat\fR\fR
173 Link to IP Filter pseudo device.
179 \fB\fB/dev/kmem\fR\fR
183 Special file that provides access to virtual address space.
189 \fB\fB/etc/ipf/ipnat.conf\fR\fR
193 Location of \fBipnat\fR startup configuration file.
199 \fB\fB/usr/share/ipfilter/examples/\fR\fR
203 Contains numerous IP Filter examples.
208 See \fBattributes\fR(5) for descriptions of the following attributes:
216 ATTRIBUTE TYPE ATTRIBUTE VALUE
218 Interface Stability Committed
223 \fBipf\fR(1M), \fBipfstat\fR(1M), \fBipnat\fR(4), \fBattributes\fR(5),