ipt_string
Hi !
I am new to linux and networking. However I have set up a router on a redhat 9 machine and am using htb.init + squid delay pools for bandwidth limiting. But I would like to do away with squid since I am just using it for the delay pools feature in order to limit downloading based on kewords such as .exe .mp3 .mpeg ..etc. The other day I came to know about the ipt_string module through google search and am wondering if thats what I am looking for. I am looking for something with which i can mark packets based on keywords and then limit the bandwidth for such packets with htb. Is the ipt_string module suitable for this ? If not, then please suggest an alternative.
Regards,
Jim.
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
Quoted 14 lines · [email protected] wrote:
Hi !
I am new to linux and networking. However I have set up a router on a redhat 9 machine and am using htb.init + squid delay pools for bandwidth limiting. But I would like to do away with squid since I am just using it for the delay pools feature in order to limit downloading based on kewords such as .exe .mp3 .mpeg ..etc. The other day I came to know about the
ipt_stringmodule through google search and am wondering if thats what I am looking for. I am looking for something with which i can mark packets based on keywords and then limit the bandwidth for such packets with htb. Is theipt_stringmodule suitable for this ? If not, then please suggest an alternative.
In this case ipt_string is not what you want : you can only match a string within a packet. If a string exceeds the packetsize (which will likely be the case), it won't work.
The best thing I can think of is what you are already doing : use Squid, but someone else may have other options.
Gr,
Rob
Quoted 3 lines · Linux Query
Hi !
I am new to linux and networking. However I have set up a router on a redhat 9 machine and am using htb.init + squid delay pools for bandwidth limiting. But I would like to do away with squid since I am just using it for the delay pools feature in order to limit downloading based on kewords such as .exe .mp3 .mpeg ..etc. The other day I came to know about the
ipt_stringmodule through google search and am wondering if thats what I am looking for. I am looking for something with which i can mark packets based on keywords and then limit the bandwidth for such packets with htb. Is theipt_stringmodule suitable for this ? If not, then please suggest an alternative.
Netfilter isn't really the right tool to do application level filtering.
It is a great tool, but it is designed to work on lower level protocols.
You can try using ipt_string, but you will run into serious limitations.
ipt_string operates on single packet. If the string you are trying to
match is (for whatever reason) broken into multiple packet, ipt_string will not find it. Also, ipt_string does not know anything about application level protocols (such as HTTP). If it finds ".exe" anywhere in the packet's payload, it will match (whereas Squid will match only if it is part of URL, and you can specify that it must be at the end of the URL).
If I were you, I'd stick with Squid to do application level filtering.
Signature · 3 lines
Aleksandar Milivojevic <[email protected]> Pollard Banknote Limited Systems Administrator 1499 Buffalo Place Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
Thanks for the replies!
I already feel discouraged about ipt_string. But it would be so much the nicer to be able to mark packets based on KEYWORDS with IPTABLES not only to limit bandwidth but also to do other things such as redirecting traffic to different gateways depending on such keywords.
By the way, I just saw the l7-filter website ---> l7-filter.sourceforge.net. Can this be a better solution ...(?)
Regards,
Jim.
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!