Patchwork [1/2] libip6t_SNPT: add manpage

mail settings
Submitter Pablo Neira
Date March 21, 2013, 12:40 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/229655/
State Accepted
Headers show


Pablo Neira - March 21, 2013, 12:40 p.m.
From: Pablo Neira Ayuso <>

Signed-off-by: Pablo Neira Ayuso <>
 extensions/ |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 extensions/


diff --git a/extensions/ b/extensions/
new file mode 100644
index 0000000..78d644a
--- /dev/null
+++ b/extensions/
@@ -0,0 +1,30 @@ 
+Provides stateless source IPv6-to-IPv6 Network Prefix Translation (as described
+by RFC 6296).
+You have to use this target in the
+.B mangle
+table, not in the
+.B nat
+table. It takes the following options:
+\fB\-\-src\-pfx\fP [\fIprefix/\fP\fIlength]
+Set source prefix that you want to translate and length
+\fB\-\-dst\-pfx\fP [\fIprefix/\fP\fIlength]
+Set destination prefix that you want to use in the translation and length
+You have to use the DNPT target to undo the translation. Example:
+ip6tables \-t mangle \-I POSTROUTING \-s fd00::/64 \! \-o vboxnet0
+\-j SNPT \-\-src-pfx fd00::/64 \-\-dst-pfx 2001:e20:2000:40f::/64
+ip6tables \-t mangle \-I PREROUTING \-i wlan0 \-d 2001:e20:2000:40f::/64
+\-j DNPT \-\-src-pfx 2001:e20:2000:40f::/64 \-\-dst-pfx fd00::/64
+You may need to enable IPv6 neighbor proxy:
+sysctl -w net.ipv6.conf.all.proxy_ndp=1
+You also have to use the
+target to disable connection tracking for translated flows.