You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1.1 KiB

# Network Address Translation Rules
# Use this file to set up network address translation rules
# Use tabs or single space to separate
# <type> <src-interface> <src-address> <dst-interface> <dst-address> <custom>
# Type: Required ( SNAT | MASQ | NETMAP | ACCEPT)
# Source Interface: Optional, ignored by NETMAP ( 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 and NETMAP ( IP address with optional netmask )
# Custom: Optional for all except NETMAP, set custom section after the source/dest and before ACCEPT/DROP
# Custom: Required for NETMAP, address to map TO, then all other custom options (see example)
# You can use '-' for optional fields
#<type> <src-interface> <src-address> <dst-interface> <dst-address> <custom>
#SNAT eth1 eth0
#MASQ - - eth0 -
#NETMAP - vpn0 -
#^ ex: map src of to when it leaves via vpn0