1SHOREWALL-NAT(5) [FIXME: manual] SHOREWALL-NAT(5)
2
3
4
6 nat - Shorewall one-to-one NAT file
7
9 /etc/shorewall/nat
10
12 This file is used to define one-to-one Network Address Translation
13 (NAT).
14
15 Warning
16 If all you want to do is simple port forwarding, do NOT use this
17 file. See http://www.shorewall.net/FAQ.htm#faq1[1]. Also, in many
18 cases, Proxy ARP (shorewall-proxyarp[2](5)) is a better solution
19 that one-to-one NAT.
20
21 The columns in the file are as follows.
22
23 EXTERNAL - {address|COMMENT}
24 External IP Address - this should NOT be the primary IP address of
25 the interface named in the next column and must not be a DNS Name.
26
27 If you put COMMENT in this column, the rest of the line will be
28 attached as a comment to the Netfilter rule(s) generated by the
29 following entries in the file. The comment will appear delimited by
30 "/* ... */" in the output of "shorewall show nat"
31
32 To stop the comment from being attached to further rules, simply
33 include COMMENT on a line by itself.
34
35 INTERFACE - interfacelist[:[digit]]
36 Interfaces that have the EXTERNAL address. If ADD_IP_ALIASES=Yes in
37 shorewall.conf[3](5), Shorewall will automatically add the EXTERNAL
38 address to this interface. Also if ADD_IP_ALIASES=Yes, you may
39 follow the interface name with ":" and a digit to indicate that you
40 want Shorewall to add the alias with this name (e.g., "eth0:0").
41 That allows you to see the alias with ifconfig. That is the only
42 thing that this name is good for -- you cannot use it anwhere else
43 in your Shorewall configuration.
44
45 Each interface must match an entry in shorewall-interfaces[4](5).
46 Shorewall allows loose matches to wildcard entries in
47 shorewall-interfaces[4](5). For example, ppp0 in this file will
48 match a shorewall-interfaces[4](5) entry that defines ppp+.
49
50 If you want to override ADD_IP_ALIASES=Yes for a particular entry,
51 follow the interface name with ":" and no digit (e.g., "eth0:").
52
53 INTERNAL - address
54 Internal Address (must not be a DNS Name).
55
56 ALL INTERFACES - [Yes|No]
57 If Yes or yes, NAT will be effective from all hosts. If No or no
58 (or left empty) then NAT will be effective only through the
59 interface named in the INTERFACE column.
60
61 LOCAL - [Yes|No]
62 If Yes or yes, NAT will be effective from the firewall system
63
65 /etc/shorewall/nat
66
68 http://shorewall.net/NAT.htm
69
70 shorewall(8), shorewall-accounting(5), shorewall-actions(5),
71 shorewall-blacklist(5), shorewall-hosts(5), shorewall_interfaces(5),
72 shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5),
73 shorewall-netmap(5), shorewall-params(5), shorewall-policy(5),
74 shorewall-providers(5), shorewall-proxyarp(5),
75 shorewall-route_rules(5), shorewall-routestopped(5),
76 shorewall-rules(5), shorewall.conf(5), shorewall-secmarks(5),
77 shorewall-tcclasses(5), shorewall-tcdevices(5), shorewall-tcrules(5),
78 shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5)
79
81 1. http://www.shorewall.net/FAQ.htm#faq1
82 http://www.shorewall.net/manpages/../FAQ.htm#faq1
83
84 2. shorewall-proxyarp
85 http://www.shorewall.net/manpages/shorewall-proxyarp.html
86
87 3. shorewall.conf
88 http://www.shorewall.net/manpages/shorewall.conf.html
89
90 4. shorewall-interfaces
91 http://www.shorewall.net/manpages/shorewall-interfaces.html
92
93
94
95[FIXME: source] 09/16/2011 SHOREWALL-NAT(5)