Re: iptables and ads

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

 



Thank you a lot for your help people, I think Amie gave me the best way to 
solve my problem ;-)
It was really fast, thanks ;-)


Le Lundi 11 Août 2003 17:51, Andre Lorenz a écrit :
 Am Montag, 11. August 2003 17:38 schrieb woksy@xxxxxxxxxxxxxxxxxxxx:
 > Hi people ! ;-)
 > I was just answering myself if i could stop ads loading from web pages
 > such as yahoo, lycos, & co ? (i don't mean blocking popup, just stopping
 > those boring ads from loading)
 > I tried to do this with something like that:
 > $IPTABLES -A INPUT -i $EXTIF -s 216.73.92.112/32 -j drop-and-log-it
 > but it seems that I mistaked.
 > Can anybody help me please ?
 > Thanks

 Hello,

 I would solve this like this way

 iptables  -N  drop-and-log-it
 iptables -A input -i $EXTIF -j drop-and-log-it
 iptables -A drop-and-log-it  -s 216.73.92.112/32 -j DROP
 iptables -A drop-and-log-it  -s 216.73.92.112/32 -j LOG --log-prefix
 "SOMETHING_TEXT: "

 It isn't elegant, but it might work

 mfg
 Andre




[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