SHOREWALL6-NETMAP(5) | Configuration Files | SHOREWALL6-NETMAP(5) |
NAME¶
netmap - Shorewall6 NETMAP definition fileSYNOPSIS¶
/etc/shorewall/netmap
DESCRIPTION¶
This file is used to map addresses in one network to corresponding addresses in a second network. It was added in Shorewall6 4.4.23.3.Warning
To use this file, your kernel and ip6tables must have RAWPOST table support included.
The columns in the file are as follows (where the column name is followed by a different name in parentheses, the different name is used in the alternate specification syntax).
TYPE - {DNAT|SNAT}:{P|O|T}
If DNAT:P, traffic entering INTERFACE and addressed to NET1 has its destination address rewritten to the corresponding address in NET2.
If SNAT:T, traffic leaving INTERFACE with a source address in NET1 has it's source address rewritten to the corresponding address in NET2.
If DNAT:O, traffic originating on the firewall and leaving via INTERFACE and addressed to NET1 has its destination address rewritten to the corresponding address in NET2.
If DNAT:P, traffic entering via INTERFACE and addressed to NET1 has its destination address rewritten to the corresponding address in NET2.
If SNAT:P, traffic entering via INTERFACE with a destination address in NET1 has it's source address rewritten to the corresponding address in NET2.
If SNAT:O, traffic originating on the firewall and leaving via INTERFACE with a source address in NET1 has it's source address rewritten to the corresponding address in NET2.
NET1 - network-address
INTERFACE - interface
NET2 - network-address
NET3 - network-address
PROTO (Optional - protocol-number-or-name
DPORT - port-number-or-name-list
If the protocol is ipp2p, this column is interpreted as an ipp2p option without the leading "--" (example bit for bit-torrent). If no PORT is given, ipp2p is assumed.
An entry in this field requires that the PROTO column specify icmp (1), tcp (6), udp (17), sctp (132) or udplite (136). Use '-' if any of the following field is supplied.
This column was formerly labelled DEST PORT(S).
SPORT - port-number-or-name-list
An entry in this field requires that the PROTO column specify tcp (6), udp (17), sctp (132) or udplite (136). Use '-' if any of the following fields is supplied.
This column was formerly labelled SOURCE PORT(S).
FILES¶
/etc/shorewall/netmapSEE ALSO¶
http://www.shorewall.net/netmap.html[4]http://www.shorewall.net/configuration_file_basics.htm#Pairs[5]
NOTES¶
- 1.
- exclusion
- 2.
- shorewall6-interfaces
03/16/2017 | Configuration Files |