modification of tcp flags using netfilter hooks??

Discussion in 'Linux Networking' started by Sunny, Feb 8, 2006.

  1. Sunny

    Sunny Guest

    I have wriiten a module using netfilter hooks for catching
    packets n then modifying it.. First using NF_IP_PRE_ROUTING hook i am
    trying to modify the incoming tcp packet.. I want to change the tcp
    flags for the incoming packet..I have handled the checksum issues for
    that.. What othere issues i need to handle???

    Sunny, Feb 8, 2006
    1. Advertisements

  2. Sunny

    Eric Lalitte Guest

    It depends on which flags you're working.
    If it's on URG, you've got to see the urgent pointer in the header.

    If you touch SYN, FIN, ACK or RST, you should'nt count on a normal
    Eric Lalitte, Feb 9, 2006
    1. Advertisements

  3. Sunny

    zanettea Guest

    Hi Sunny,
    I am trying to do the same thing. Did you eventually found a solution?

    zanettea, Oct 20, 2012
  4. Sunny

    Jorgen Grahn Guest

    You're replying to a posting which is almost seven years old. "Sunny"
    is probably no longer reading this group.

    What are you trying to accomplish? Modifying TCP flags (the
    SYN/ACK/RST/PSH/etc bits) before they reach ip_rcv() seems rather
    pointless, so I'm thinking the solution to your problem probably lies

    Jorgen Grahn, Oct 20, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.