1. 14 10月, 2013 1 次提交
  2. 30 9月, 2013 1 次提交
  3. 04 9月, 2013 2 次提交
    • J
      netfilter: SYNPROXY: let unrelated packets continue · 7cc9eb6e
      Jesper Dangaard Brouer 提交于
      Packets reaching SYNPROXY were default dropped, as they were most
      likely invalid (given the recommended state matching).  This
      patch, changes SYNPROXY target to let packets, not consumed,
      continue being processed by the stack.
      
      This will be more in line other target modules. As it will allow
      more flexible configurations of handling, logging or matching on
      packets in INVALID states.
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Acked-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      7cc9eb6e
    • J
      netfilter: more strict TCP flag matching in SYNPROXY · 775ada6d
      Jesper Dangaard Brouer 提交于
      Its seems Patrick missed to incoorporate some of my requested changes
      during review v2 of SYNPROXY netfilter module.
      
      Which were, to avoid SYN+ACK packets to enter the path, meant for the
      ACK packet from the client (from the 3WHS).
      
      Further there were a bug in ip6t_SYNPROXY.c, for matching SYN packets
      that didn't exclude the ACK flag.
      
      Go a step further with SYN packet/flag matching by excluding flags
      ACK+FIN+RST, in both IPv4 and IPv6 modules.
      
      The intented usage of SYNPROXY is as follows:
      (gracefully describing usage in commit)
      
       iptables -t raw -A PREROUTING -i eth0 -p tcp --dport 80 --syn -j NOTRACK
       iptables -A INPUT -i eth0 -p tcp --dport 80 -m state UNTRACKED,INVALID \
               -j SYNPROXY --sack-perm --timestamp --mss 1480 --wscale 7 --ecn
      
       echo 0 > /proc/sys/net/netfilter/nf_conntrack_tcp_loose
      
      This does filter SYN flags early, for packets in the UNTRACKED state,
      but packets in the INVALID state with other TCP flags could still
      reach the module, thus this stricter flag matching is still needed.
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Acked-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      775ada6d
  4. 28 8月, 2013 2 次提交