[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Hardware Troubleshooting in Linux  |  Other Devices  |  Topic: blocking yahoo messenger on transparent proxy
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: blocking yahoo messenger on transparent proxy  (Read 11049 times)
0 Members and 1 Guest are viewing this topic.
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« on: July 04, 2005, 01:24:36 PM »

i am using transparent proxy with port 3128. I want to block yahoo messenger for the users. If it all i need to block port on messenger what is the port no.
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2377


View Profile
« Reply #1 on: July 05, 2005, 03:03:26 AM »

Well I doubt if you can block yahoo messenger in transparent mode !

That is because we only redirect clients request on port 80 to squid so request on other posts will not be blocked. We can instead use iptables to block yahoo messenger. Let see if I can find ports.

Ok I found that these stuff for you .. It took me time Smiley
Anyways..

Quote
Yahoo! Messenger services uses a variety of ports.
Service................................Ports
Chat & Messenger-----------> TCP Port 5050: Client Access only
Insider/Room Lists --------->TCP Port 80: Client Access only
File Transfer----------------->   TCP Port 80: Server Access.
Your ISP may block this port, as its used for web hosting.
You can change port in Messenger, Preferences, File Transfer.
Voice Chat ------------------->   UDP 5000-5010
TCP 5000-5001:--------------> Client Access
If UDP Fails, TCP will be used instead, see below.
WebCam    -------------------->TCP Port 5100: Client Access
Super Webcam--------------->TCP Port 5100: Server Access
P2P Instant Messages------->TCP Port 5101: Server Access
PMs between Buddys may not use the Yahoo! Server, but this is not a requirement.


So in this i suggest use iptables to block the ports..
simple rules to DROP are ::
Code:
# This line is to drop TCP port 5101
iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5101 -j DROP      

  # This line is to drop UDP port 5000
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5000 -j DROP


Hope this will help .
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #2 on: July 05, 2005, 05:03:33 AM »

Again tks a ton ricky, u r just great and tks for ur effort.
 If write the above command in rc.nat it vil block yahoo messenger for all of them. But my requirements is to block for certain users. Can u help me
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #3 on: July 05, 2005, 12:08:00 PM »

Ricky i have tried your solution, it snot working.
I have written iptables in rc.nat, still users are able to use yahoo messenger
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2377


View Profile
« Reply #4 on: July 06, 2005, 09:41:20 AM »

Yahoo messenger has also ability to use port 80 if no other port is working.

but here I think you have only used the rules I have given . :roll: . If that so then you have to make more rules because those are only example. Make such rules for every port I have given..

Ok let me give you ... you just write following in your rc.nat !
Code:

iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5101 -j DROP  
iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5050 -j DROP        
iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5000 -j DROP  
iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5001 -j DROP    
iptables -A INPUT -p tcp -s 0/0 -d 0/0 --dport 5100 -j DROP
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5002 -j DROP        
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5003 -j DROP    
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5004 -j DROP  
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5005 -j DROP  
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5006 -j DROP  
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5007 -j DROP  
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5008 -j DROP
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5009 -j DROP      
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5000 -j DROP
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 5010 -j DROP  


Use the above and tell us hw it is !
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #5 on: July 06, 2005, 12:36:35 PM »

Ricky tks for ur effort once again, but no luck. Still the users are able use yahoo messenger.

Instead of blocking through ports, it is possible to block on content, apllication etc., is there any way
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #6 on: July 07, 2005, 12:06:05 PM »

Ricky, I was successful in blocking yahoo messenger in squid.conf using

acl ysg dstdomain messenegr.yahoo.com  
acl ysg dstdomain shttp.msg.yahoo.com  
acl ysg dstdomain psq.yahoo.com  
acl ysg dstdomain us.il.yimg.com

but what is the way to block in transparent proxy that 2 for a particular IP
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2377


View Profile
« Reply #7 on: July 09, 2005, 12:34:11 PM »

you are asking single question at many places.. I am confused if I have answered it at some other place or not..
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #8 on: July 11, 2005, 06:35:39 AM »

sorry ricky even i am little bit confused for not able to solve this problem.

u did answer but nothing going my way, its not working.
Logged
Pages: [1]
  Print  
 
Jump to:  

Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 29, 2010, 10:28:14 AM

Login with username, password and session length
Navigation
Recent Discussions
[July 24, 2010, 11:46:22 PM]

[July 24, 2010, 04:10:46 PM]

[July 23, 2010, 07:22:27 AM]

[July 23, 2010, 07:20:53 AM]

[July 23, 2010, 07:19:15 AM]

[July 23, 2010, 07:15:30 AM]

[July 23, 2010, 07:08:21 AM]

[July 19, 2010, 11:01:10 PM]

[July 19, 2010, 10:01:58 AM]

[July 19, 2010, 01:21:00 AM]
Members
Total Members: 7690
Latest: BOZZYPRINCESS
Stats
Total Posts: 9524
Total Topics: 2729
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 12
Total: 12
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc