From c85cd7380170f0cc2688c736571b3f0a17bf1b68 Mon Sep 17 00:00:00 2001 From: "bbruns@gmail.com" Date: Sat, 5 Apr 2014 21:15:41 +0000 Subject: [PATCH] --- etc/ipv4/nat.conf | 6 +++--- etc/ipv6/nat.conf | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 etc/ipv6/nat.conf diff --git a/etc/ipv4/nat.conf b/etc/ipv4/nat.conf index c50aa3a..9549267 100644 --- a/etc/ipv4/nat.conf +++ b/etc/ipv4/nat.conf @@ -12,7 +12,7 @@ # You can use '-' for optional fields #============================================================ # -SNAT eth1 10.0.0.0/24 eth0 172.16.1.1 -MASQ - - eth0 - -NETMAP eth1 192.168.0.0/24 vpn0 172.16.10.0/24 +#SNAT eth1 10.0.0.0/24 eth0 172.16.1.1 +#MASQ - - eth0 - +#NETMAP eth1 192.168.0.0/24 vpn0 172.16.10.0/24 diff --git a/etc/ipv6/nat.conf b/etc/ipv6/nat.conf new file mode 100644 index 0000000..5b33ffb --- /dev/null +++ b/etc/ipv6/nat.conf @@ -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: 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 +#============================================================ +# +#SNAT eth1 2002::/64 eth0 2001::1 +#MASQ - - eth0 - +#NETMAP eth1 2002::/64 vpn0 fc00::/64 +