diff options
author | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-13 13:54:32 +0200 |
---|---|---|
committer | sven-ola <sven-ola@3484d885-4da6-438d-b19d-107d078dd756> | 2010-10-13 13:54:32 +0200 |
commit | 794f1c6aa886ecc8814765a2dda4a677b7f4376a (patch) | |
tree | bbed0fd84a0953ca9176ddd56c1d5d95d15afd29 /README.dbk | |
parent | d0b3e5ef319d68c5b574bcecffc611d254ddc3c8 (diff) | |
download | NPTv6-794f1c6aa886ecc8814765a2dda4a677b7f4376a.tar NPTv6-794f1c6aa886ecc8814765a2dda4a677b7f4376a.zip |
doc
git-svn-id: https://map66.svn.sourceforge.net/svnroot/map66@19 3484d885-4da6-438d-b19d-107d078dd756
Diffstat (limited to 'README.dbk')
-rw-r--r-- | README.dbk | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" -"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> +"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY OPTDSTTO "--dst-to"> +<!ENTITY OPTSRCTO "--src-to"> +<!ENTITY VERSION "0.5"> +]> <article> <articleinfo> <title>MAP66 (NAT from IPv6 to IPv6, NAT66) for Linux</title> @@ -15,7 +19,7 @@ </affiliation> </author> - <pubdate>07-OCT-2010</pubdate> + <pubdate>13-OCT-2010</pubdate> </articleinfo> <para>These files implement a Linux netfilter target that changes the IPv6 @@ -82,9 +86,9 @@ below <filename>/usr/src/</filename>. To register the MAP66 source to DKMS and compile/install, issue these commands:</para> - <programlisting>sudo dkms add -m ip6t_MAP66 -v 0.4 -sudo dkms build -m ip6t_MAP66 -v 0.4 -sudo dkms install -m ip6t_MAP66 -v 0.4</programlisting> + <programlisting>sudo dkms add -m ip6t_MAP66 -v &VERSION; +sudo dkms build -m ip6t_MAP66 -v &VERSION; +sudo dkms install -m ip6t_MAP66 -v &VERSION;</programlisting> <para>Read DKMS details here: <ulink url="Read DKMS details here: https://wiki.kubuntu.org/Kernel/Dev/DKMSPackaging">https://wiki.kubuntu.org/Kernel/Dev/DKMSPackaging</ulink></para> @@ -103,8 +107,8 @@ sudo dkms install -m ip6t_MAP66 -v 0.4</programlisting> commands correspond to the <quote>Address Mapping Example</quote> given in the IETF discussion paper:</para> - <programlisting>ip6tables -t mangle -I POSTROUTING -o eth0 -s FD01:0203:0405::/48 -j MAP66 --to 2001:0DB8:0001::/48 -ip6tables -t mangle -I PREROUTING -i eth0 -d 2001:0DB8:0001::/48 -j MAP66 --to FD01:0203:0405::/48</programlisting> + <programlisting>ip6tables -t mangle -I POSTROUTING -o eth0 -s FD01:0203:0405::/48 -j MAP66 &OPTSRCTO; 2001:0DB8:0001::/48 +ip6tables -t mangle -I PREROUTING -i eth0 -d 2001:0DB8:0001::/48 -j MAP66 &OPTDSTTO; FD01:0203:0405::/48</programlisting> <para>This example is also printed to the screen if you issue <userinput>ip6tables -j MAP66 --help</userinput>. By design, you cannot @@ -182,10 +186,10 @@ ip6tables -t mangle -F FORWARD grep -q ^ip6t_MAP66 /proc/modules && rmmod ip6t_MAP66 insmod /usr/src/map66/ip6t_MAP66.ko -ip6tables -t mangle -A POSTROUTING -o sixxs -s fdca:ffee:babe::/64 -j MAP66 --to 2001:4dd0:fe77:1::/64 --nocheck -ip6tables -t mangle -A PREROUTING -i sixxs -d 2001:4dd0:fe77:1::/64 -j MAP66 --to fdca:ffee:babe::/64 --nocheck -ip6tables -t mangle -A POSTROUTING -o tun6to4 -s fdca:ffee:babe::/64 -j MAP66 --to 2002:4d57:3007:1::/64 --nocheck -ip6tables -t mangle -A PREROUTING -i tun6to4 -d 2002:4d57:3007:1::/64 -j MAP66 --to fdca:ffee:babe::/64 --nocheck +ip6tables -t mangle -A POSTROUTING -o sixxs -s fdca:ffee:babe::/64 -j MAP66 &OPTSRCTO; 2001:4dd0:fe77:1::/64 --nocheck +ip6tables -t mangle -A PREROUTING -i sixxs -d 2001:4dd0:fe77:1::/64 -j MAP66 &OPTDSTTO; fdca:ffee:babe::/64 --nocheck +ip6tables -t mangle -A POSTROUTING -o tun6to4 -s fdca:ffee:babe::/64 -j MAP66 &OPTSRCTO; 2002:4d57:3007:1::/64 --nocheck +ip6tables -t mangle -A PREROUTING -i tun6to4 -d 2002:4d57:3007:1::/64 -j MAP66 &OPTDSTTO; fdca:ffee:babe::/64 --nocheck ip6tables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu</programlisting> <para>Because for both IPv6 networks the external prefix length is |