1. 09 Mar, 2015 4 commits
  2. 06 Mar, 2015 6 commits
  3. 03 Mar, 2015 2 commits
    • Florian Westphal's avatar
      netfilter: bridge: rework reject handling · 72500bc1
      Florian Westphal authored
      bridge reject handling is not straightforward, there are many subtle
      differences depending on configuration.
      
      skb->dev is either the bridge port (PRE_ROUTING) or the bridge
      itself (INPUT), so we need to use indev instead.
      
      Also, checksum validation will only work reliably if we trim skb
      according to the l3 header size.
      
      While at it, add csum validation for ipv6 and skip existing tests
      if skb was already checked e.g. by GRO.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      72500bc1
    • Florian Westphal's avatar
      netfilter: reject: don't send icmp error if csum is invalid · ee586bbc
      Florian Westphal authored
      tcp resets are never emitted if the packet that triggers the
      reject/reset has an invalid checksum.
      
      For icmp error responses there was no such check.
      It allows to distinguish icmp response generated via
      
      iptables -I INPUT -p udp --dport 42 -j REJECT
      
      and those emitted by network stack (won't respond if csum is invalid,
      REJECT does).
      
      Arguably its possible to avoid this by using conntrack and only
      using REJECT with -m conntrack NEW/RELATED.
      
      However, this doesn't work when connection tracking is not in use
      or when using nf_conntrack_checksum=0.
      
      Furthermore, sending errors in response to invalid csums doesn't make
      much sense so just add similar test as in nf_send_reset.
      
      Validate csum if needed and only send the response if it is ok.
      
      Reference: http://bugzilla.redhat.com/show_bug.cgi?id=1169829Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      ee586bbc
  4. 02 Mar, 2015 28 commits