Linux Netfilter discussions
 help / color / mirror / Atom feed
* string
@ 2008-10-17 14:30 chima s
  2008-10-17 15:08 ` string Eric Leblond
  0 siblings, 1 reply; 5+ messages in thread
From: chima s @ 2008-10-17 14:30 UTC (permalink / raw)
  To: netfilter

Hi,

I want to deny brwsing the yahoo and if somebody try to access the any
yahoo url, it will redirect to another page from my local web server.

I added the below rule

iptables -t nat -I PREROUTING -p tcp -m string --string "yahoo" --algo
bm -j DNAT --to-destination xxx.xxx.xxx.xxx

and tried www.yahoo.com, i am able to open the yahoo page instaed of
redirected page.

Is the rule is proper or am i missing any thing.


Thanks and Regards
Chima

^ permalink raw reply	[flat|nested] 5+ messages in thread
* String
@ 2004-06-30 19:45 David Cary Hart
  2004-06-30 21:57 ` String Antony Stone
  0 siblings, 1 reply; 5+ messages in thread
From: David Cary Hart @ 2004-06-30 19:45 UTC (permalink / raw)
  To: netfilter

The string module seems like a great idea to filter some of the httpd
attacks. Is there any way to make it work in kernel 2.6.7? In the
alternative is there something else that might do similar filtering?

Thanks.
-- 
                            David Cary Hart
Hart's PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x58A60BB1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-10-17 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-17 14:30 string chima s
2008-10-17 15:08 ` string Eric Leblond
2008-10-17 17:22   ` string Grant Taylor
  -- strict thread matches above, loose matches on Subject: below --
2004-06-30 19:45 String David Cary Hart
2004-06-30 21:57 ` String Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox