Skip to content
  1. Aug 02, 2010
  2. Jul 23, 2010
  3. Jul 16, 2010
  4. Jul 15, 2010
    • Michael S. Tsirkin's avatar
      netfilter: add CHECKSUM target · edf0e1fb
      Michael S. Tsirkin authored
      
      
      This adds a `CHECKSUM' target, which can be used in the iptables mangle
      table.
      
      You can use this target to compute and fill in the checksum in
      a packet that lacks a checksum.  This is particularly useful,
      if you need to work around old applications such as dhcp clients,
      that do not work well with checksum offloads, but don't want to
      disable checksum offload in your device.
      
      The problem happens in the field with virtualized applications.
      For reference, see Red Hat bz 605555, as well as
      http://www.spinics.net/lists/kvm/msg37660.html
      
      Typical expected use (helps old dhclient binary running in a VM):
      iptables -A POSTROUTING -t mangle -p udp --dport bootpc \
      	-j CHECKSUM --checksum-fill
      
      Includes fixes by Jan Engelhardt <jengelh@medozas.de>
      
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      edf0e1fb
    • Pablo Neira Ayuso's avatar
      netfilter: nf_ct_tcp: fix flow recovery with TCP window tracking enabled · fac42a9a
      Pablo Neira Ayuso authored
      
      
      This patch adds the missing bits to support the recovery of TCP flows
      without disabling window tracking (aka be_liberal). To ensure a
      successful recovery, we have to inject the window scale factor via
      ctnetlink.
      
      This patch has been tested with a development snapshot of conntrackd
      and the new clause `TCPWindowTracking' that allows to perform strict
      TCP window tracking recovery across fail-overs.
      
      With this patch, we don't update the receiver's window until it's not
      initiated. We require this to perform a successful recovery. Jozsef
      confirmed in a private email that this spotted a real issue since that
      should not happen.
      
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Acked-by: default avatarJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      fac42a9a
    • Pablo Neira Ayuso's avatar
      nfnetlink_log: do not expose NFULNL_COPY_DISABLED to user-space · cca5cf91
      Pablo Neira Ayuso authored
      
      
      This patch moves NFULNL_COPY_PACKET definition from
      linux/netfilter/nfnetlink_log.h to net/netfilter/nfnetlink_log.h
      since this copy mode is only for internal use.
      
      I have also changed the value from 0x03 to 0xff. Thus, we avoid
      a gap from user-space that may confuse users if we add new
      copy modes in the future.
      
      This change was introduced in:
      http://www.spinics.net/lists/netfilter-devel/msg13535.html
      
      Since this change is not included in any stable Linux kernel,
      I think it's safe to make this change now. Anyway, this copy
      mode does not make any sense from user-space, so this patch
      should not break any existing setup.
      
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
      cca5cf91
  5. Jul 09, 2010
  6. Jul 05, 2010
  7. Jul 03, 2010
  8. Jul 02, 2010