functions.m4: Only call `allow-non-init-frag' on fragments.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 Mar 2015 21:57:00 +0000 (21:57 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 26 Mar 2015 22:15:06 +0000 (22:15 +0000)
Otherwise we let in all non-fragmented packets.  Oops.

functions.m4

index c0b90ed..c8a08c4 100644 (file)
@@ -239,7 +239,8 @@ m4_divert(38)m4_dnl
 run ip6tables -N accept-non-init-frag
 run ip6tables -A accept-non-init-frag -j RETURN \
        -m frag --fragfirst
-run ip6tables -A accept-non-init-frag -j ACCEPT
+run ip6tables -A accept-non-init-frag -j ACCEPT \
+       -m ipv6header --header frag
 
 m4_divert(20)m4_dnl
 ## allowservices CHAIN PROTO SERVICE ...