2014-04-05 15:15:41 -06:00
|
|
|
# Network Address Translation Rules
|
|
|
|
# Use this file to set up network address translation rules
|
|
|
|
# Use tabs or single space to separate
|
|
|
|
#
|
2014-11-29 11:50:34 -07:00
|
|
|
# <type> <src-interface> <src-address> <dst-interface> <dst-address> <custom>
|
2014-04-05 15:15:41 -06:00
|
|
|
#
|
2014-11-29 11:50:34 -07:00
|
|
|
# Type: Required ( SNAT | MASQ | NETMAP | ACCEPT)
|
2014-04-05 15:15:41 -06:00
|
|
|
# Source Interface: Optional ( interface name, aka eth0 )
|
|
|
|
# Source Address: Optional ( IP address with optional netmask )
|
|
|
|
# Destination Interface: Optional for all but MASQ ( interface name, aka eth0 )
|
|
|
|
# Destination Address: Required for all but MASQ ( IP address with optional netmask )
|
2014-11-29 11:50:34 -07:00
|
|
|
# Custom: Optional, set custom section after the source/dest and before ACCEPT/DROP
|
2014-11-29 12:40:12 -07:00
|
|
|
#
|
2014-04-05 15:15:41 -06:00
|
|
|
# You can use '-' for optional fields
|
|
|
|
#============================================================
|
2014-11-29 11:50:34 -07:00
|
|
|
#<type> <src-interface> <src-address> <dst-interface> <dst-address> <custom>
|
2014-04-05 15:15:41 -06:00
|
|
|
#SNAT eth1 2002::/64 eth0 2001::1
|
|
|
|
#MASQ - - eth0 -
|
|
|
|
#NETMAP eth1 2002::/64 vpn0 fc00::/64
|
|
|
|
|