bbruns@gmail.com 2014-04-05 21:15:41 +00:00
parent e8fcd9e47f
commit c85cd73801
2 changed files with 21 additions and 3 deletions

View File

@ -12,7 +12,7 @@
# You can use '-' for optional fields # You can use '-' for optional fields
#============================================================ #============================================================
#<type> <src-interface> <src-address> <dst-interface> <dst-address> #<type> <src-interface> <src-address> <dst-interface> <dst-address>
SNAT eth1 10.0.0.0/24 eth0 172.16.1.1 #SNAT eth1 10.0.0.0/24 eth0 172.16.1.1
MASQ - - eth0 - #MASQ - - eth0 -
NETMAP eth1 192.168.0.0/24 vpn0 172.16.10.0/24 #NETMAP eth1 192.168.0.0/24 vpn0 172.16.10.0/24

18
etc/ipv6/nat.conf Normal file
View File

@ -0,0 +1,18 @@
# 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>
#
# Type: Required ( SNAT | MASQ | NETMAP )
# 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 )
# You can use '-' for optional fields
#============================================================
#<type> <src-interface> <src-address> <dst-interface> <dst-address>
#SNAT eth1 2002::/64 eth0 2001::1
#MASQ - - eth0 -
#NETMAP eth1 2002::/64 vpn0 fc00::/64