1 Provides stateless source IPv6-to-IPv6 Network Prefix Translation (as described
4 You have to use this target in the
8 table. It takes the following options:
10 \fB\-\-src\-pfx\fP [\fIprefix/\fP\fIlength]
11 Set source prefix that you want to translate and length
13 \fB\-\-dst\-pfx\fP [\fIprefix/\fP\fIlength]
14 Set destination prefix that you want to use in the translation and length
16 You have to use the DNPT target to undo the translation. Example:
18 ip6tables \-t mangle \-I POSTROUTING \-s fd00::/64 \! \-o vboxnet0
19 \-j SNPT \-\-src-pfx fd00::/64 \-\-dst-pfx 2001:e20:2000:40f::/64
21 ip6tables \-t mangle \-I PREROUTING \-i wlan0 \-d 2001:e20:2000:40f::/64
22 \-j DNPT \-\-src-pfx 2001:e20:2000:40f::/64 \-\-dst-pfx fd00::/64
24 You may need to enable IPv6 neighbor proxy:
26 sysctl -w net.ipv6.conf.all.proxy_ndp=1
28 You also have to use the
30 target to disable connection tracking for translated flows.