Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: sathish on July 29, 2005, 08:37:45 PM

Title: how to block yahoo server
Post by: sathish on July 29, 2005, 08:37:45 PM
Hello Linux team!!!!

Having a REDHAT 9.0 with masquerading, now i wanted to block yahoo chat server nearly itz having 45 servers, all this i want to block for a single LAN ip ??

ex : cs46.msg.dcn.yahoo.com... cs47.msg.dcn.yahoo.com like this it goes on.. but i want this LAN ip to block 192.168.1.4 one of the client side at a time..


Thanks in advance
sathish.
Title: how to block yahoo server
Post by: Ricky on July 30, 2005, 05:16:03 PM
using iptables or u are using proxy ?
Title: how to block yahoo server
Post by: sathish on July 31, 2005, 08:19:05 AM
Hi,

Ricky i want know from both iptables as well as squid.


Sathish.
Title: how to block yahoo server
Post by: Ricky on August 01, 2005, 05:23:25 PM
Blocking with squid is easy, I think one member has done it , u can do same with iptables.
We have discussed about blocking yahoo messenger in thread --> blocking yahoo messenger (http://www.linuxsolved.com/forums/ftopic1363.html) .
There we have tried few things, and got success also.

using iptables u can do port block ..
Code: [Select]
iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5505 -j DROP  
u can also block domain using iptable similarly
Title: yahoo messenger - procedure to block
Post by: sathish on August 08, 2005, 10:36:35 AM
Hi Linux team,

I am successful in blocking yahoo messenger here it is

First DROP the yahoo ports as it is discussed in the thread by Mr.Ricky
http://www.linuxsolved.com/forums/ftopic1363.html

Secondly DROP all this below mentioned servers used by yahoo messenger

cs1.msg.dcn.yahoo.com
cs2.msg.dcn.yahoo.com
cs3.msg.dcn.yahoo.com
cs4.msg.dcn.yahoo.com
cs5.msg.dcn.yahoo.com
cs6.msg.dcn.yahoo.com
cs7.msg.dcn.yahoo.com
cs8.msg.dcn.yahoo.com
cs9.msg.dcn.yahoo.com
cs10.msg.dcn.yahoo.com  .............continues..............
upto
cs59.msg.dcn.yahoo.com
cs60.msg.dcn.yahoo.com

and this 3 servers
shttp.msg.yahoo.com
httpes1.msg.vip.dcn.yahoo.com
radio1.launch.vip.dal.yahoo.com

just dropp all the packets[yahoo servers] mentioned above, then you are sucessfull in blocking yahoo messenger.


Let me know any help needed by you guys in blocking yahoo messenger.

sathish.