string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux