From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Noman Liaquat <khankhn1@yahoo.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: string help
Date: Mon, 26 Dec 2005 14:03:18 +0100 [thread overview]
Message-ID: <43AFEA16.1070103@eurodev.net> (raw)
In-Reply-To: <20051224073209.54921.qmail@web35908.mail.mud.yahoo.com>
Noman Liaquat wrote:
> I want to replace string "hello" with "abcd" how i
> could do with iptables mangle, patch-o-matic is
> working fine
Firstly, since kernel >= 2.6.14 you don't need the string match in
pom-ng anymore.
About your question: such kind of replacement that you want to do is
evil. Think about a TCP connection, if you modify the size of the packet
the sequence number will be corrupted. So, adding support for replacing
a string with another string of the same size would be fine. Whatever
else would be broken.
--
Pablo
prev parent reply other threads:[~2005-12-26 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-24 7:32 string help Noman Liaquat
2005-12-24 13:51 ` Rob Sterenborg
2005-12-24 18:09 ` /dev/rob0
2005-12-26 13:03 ` Pablo Neira Ayuso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43AFEA16.1070103@eurodev.net \
--to=pablo@eurodev.net \
--cc=khankhn1@yahoo.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox