Skip to contentSkip to conversation

filtering HTTP signatures/headers ?

DISCUSSION S t i n g r a y 4 participants 8 messages Mar 1, 2006 – Mar 2, 2006

lore
Share & tools
lore
#0 lore raw

Is it possible to filter HTTP signatures/headers with Iptables ? or is there addon for it ?

take care

*º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw
Quoted 2 lines · S t i n g r a y

Is it possible to filter HTTP signatures/headers with Iptables ? or is there addon for it ?

You may be able to use the String match but you can only filter the payload of 1 packet at a time : if a signature/header spans multiple packets then it won't work.

Netfilter is not meant to do content filtering. Perhaps you can use Squid.

Gr,
Rob

#2 lore raw

will it filter out HTTP tunneling also ?

Quoted 12 lines · --- Rob Sterenborg
Quoted 1 line · S t i n g r a y

Is it possible to filter HTTP signatures/headers

with

Quoted 1 line

Iptables ? or is there addon for it ?

You may be able to use the String match but you can only filter the payload of
1 packet at a time : if a signature/header spans multiple packets then it
won't work.

Quoted 10 lines

Netfilter is not meant to do content filtering. Perhaps you can use Squid.

Gr,
Rob

*º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#3 lore raw
Quoted 1 line · S t i n g r a y

will it filter out HTTP tunneling also ?

Do you mean you have a VPN tunnel which transfers http, or what ? If that is the case, I don't think so ; Squid can only inspect traffic that it can see of course. However, if the Squid-box is at the end of the tunnel you may be able to do it.
But maybe I don't understand correctly what problem you are trying to solve.

Gr,
Rob

Quoted 16 lines
Quoted 15 lines · --- Rob Sterenborg
Quoted 2 lines · S t i n g r a y

Is it possible to filter HTTP signatures/headers
with Iptables ? or is there addon for it ?

You may be able to use the String match but you can only filter the payload of 1 packet at a time : if a signature/header spans multiple packets then it won't work.

Netfilter is not meant to do content filtering. Perhaps you can use Squid.

Gr,
Rob

#4 lore raw

The problem is that , i have a proxy/firewall box that provides internet to my internal users, now i have only permitted the common ports like ftp,http,smtp,pop3 etc etc & blocked all other , now there are couple of p2p applications out there that tunnel through my port 80 as its open, this is taking up my internet bandwith, i want to stop that ...

regards

Quoted 20 lines · --- Rob Sterenborg
Quoted 1 line · S t i n g r a y

will it filter out HTTP tunneling also ?

Do you mean you have a VPN tunnel which transfers http, or what ? If that is
the case, I don't think so ; Squid can only inspect traffic that it can see of
course. However, if the Squid-box is at the end of the tunnel you may be able
to do it.
But maybe I don't understand correctly what problem you are trying to solve.

Gr,
Rob

Quoted 2 lines
Quoted 1 line · --- Rob Sterenborg

On Wed, March 1, 2006 12:45, S t i n g r a y

wrote:

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Is it possible to filter HTTP

signatures/headers

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

with Iptables ? or is there addon for it ?

You may be able to use the String match but you

can

Quoted 1 line
Quoted 1 line

only filter the payload of 1 packet at a time :

if a

Quoted 9 lines
Quoted 9 lines

signature/header spans multiple packets then it
won't work.

Netfilter is not meant to do content filtering.
Perhaps you can use Squid.

Gr,
Rob

*º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#5 lore raw

Re: filtering HTTP signatures/headers ? (nfcan: addressed to exclusive sender for this address)

Quoted 7 lines · On 2006.03.01 23:04, S t i n g r a y - [email protected] wrote:

The problem is that , i have a proxy/firewall box that provides internet to my internal users, now i have only permitted the common ports like ftp,http,smtp,pop3 etc etc & blocked all other , now there are couple of p2p applications out there that tunnel through my port 80 as its open, this is taking up my internet bandwith, i want to stop that ...

Well, then what Rob said before applies. Netfilter is not good for solving this problem. Squid is reputed to be very good for this problem.

Regards,

Jim

Quoted 61 lines

regards

Quoted 20 lines · --- Rob Sterenborg
Quoted 1 line · S t i n g r a y

will it filter out HTTP tunneling also ?

Do you mean you have a VPN tunnel which transfers http, or what ? If that is
the case, I don't think so ; Squid can only inspect traffic that it can see of
course. However, if the Squid-box is at the end of the tunnel you may be able
to do it.
But maybe I don't understand correctly what problem you are trying to solve.

Gr,
Rob

Quoted 2 lines
Quoted 1 line · --- Rob Sterenborg

On Wed, March 1, 2006 12:45, S t i n g r a y

wrote:

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Is it possible to filter HTTP

signatures/headers

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

with Iptables ? or is there addon for it ?

You may be able to use the String match but you

can

Quoted 1 line
Quoted 1 line

only filter the payload of 1 packet at a time :

if a

Quoted 9 lines
Quoted 9 lines

signature/header spans multiple packets then it
won't work.

Netfilter is not meant to do content filtering.
Perhaps you can use Squid.

Gr,
Rob

*º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Signature · 4 lines
Jim Laurino
[email protected]
Please reply to the list.
Only mail from the listserver reaches this address.
#6 lore raw

Re: filtering HTTP signatures/headers ? (nfcan: addressed to exclusive sender for this address)

Quoted 9 lines · Jim Laurino
Quoted 7 lines · On 2006.03.01 23:04, S t i n g r a y - [email protected] wrote:

The problem is that , i have a proxy/firewall box that provides internet to my internal users, now i have only permitted the common ports like ftp,http,smtp,pop3 etc etc & blocked all other , now there are couple of p2p applications out there that tunnel through my port 80 as its open, this is taking up my internet bandwith, i want to stop that ...

Quoted 3 lines

Well, then what Rob said before applies. Netfilter is not good for solving this problem. Squid is reputed to be very good for this problem.

AFAIK squid will not proxy P2P traffic, however, this could be of help :
http://www.netfilter.org/projects/patch-o-matic/pom-extra.html#pom-extra-ipp2p

The example says :
iptables -A FORWARD -m ipp2p --edk --kazaa --bit -j DROP

But maybe you can also use it as :
iptables -A FORWARD -m ipp2p -j DROP

Gr,
Rob

Quoted 68 lines
Quoted 53 lines

regards

Quoted 20 lines · --- Rob Sterenborg
Quoted 1 line · S t i n g r a y

will it filter out HTTP tunneling also ?

Do you mean you have a VPN tunnel which transfers http, or what ? If that is
the case, I don't think so ; Squid can only inspect traffic that it can see of
course. However, if the Squid-box is at the end of the tunnel you may be able
to do it.
But maybe I don't understand correctly what problem you are trying to solve.

Gr,
Rob

Quoted 2 lines
Quoted 1 line · --- Rob Sterenborg

On Wed, March 1, 2006 12:45, S t i n g r a y

wrote:

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Is it possible to filter HTTP

signatures/headers

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

with Iptables ? or is there addon for it ?

You may be able to use the String match but you

can

Quoted 1 line
Quoted 1 line

only filter the payload of 1 packet at a time :

if a

Quoted 9 lines
Quoted 9 lines

signature/header spans multiple packets then it
won't work.

Netfilter is not meant to do content filtering.
Perhaps you can use Squid.

Gr,
Rob

*º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤

Quoted 7 lines

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
Jim Laurino
[email protected]
Please reply to the list.
Only mail from the listserver reaches this address.

Signature · 1 line
"Inspraak zonder inzicht resulteert in uitspraak zonder uitzicht."
#7 lore raw
In reply to S t i n g r a y
Quoted 4 lines

now
there are couple of p2p applications out there that tunnel through my port 80 as its open, this is taking up my internet bandwith, i want to stop that ...

To detect p2p try:
- iptables-p2p (mega.ist.utl.pt/~filipe/iptables-p2p/)
- ipp2p (check latest patch-o-matic-ng)
- l7-filter (l7-filter.sf.net)

Signature · 1 line
Best regards, Oleg