Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: jawed on June 16, 2004, 07:12:00 AM
-
Hi,
i know that Msn & Yahoo as well particular application can be block in squid, but still i don't know what process to block these Msn/Yahoo application. plzz help
-
It is simple.. you have to block the ports which they use. .. like yahoo use port 5050 . See few earlier post and u will find detailed answer ;)
-
Hi Ricky,
yes it is possible but where i implement this Msn and yahoo blockage so plzz give me file name where it will implement and give me exact command to blokc msn and yahoo.
-
oh.. well i had told u that look the forum and few my previous posts. Actaully there is no command like "block yahoo and block msn" lol. Well you have to block the ports which they use. So what ports they use is to find by you. So you have to edit squid.conf and have to remove the ports from safe port lists which are used by these applications. see Squid Proxy tutorial (http://www.linuxsolved.com/forums/ftopic116.html) and you can also block them on the basis of word they use in their URL. see my post at Restricting application using squid (http://www.linuxsolved.com/forums/ftopic501.html)
And lastly you need little experimentations ;)
-
hi Ricky,
i have block the all ports like 80 1080 8080 5000 5001 5010 5050 5100 in my acl and deny this acl and don't replace http port to 8080 it is still 3128. both messenger msn and yahoo block by these ports but if any client use port 3128 as a proxy in yahoo messenger then yahoo messenger is activate. so how i can restrict this port, because port 3128 is also use in browser (Lan Proxy setting ) to web access.
-
can you show me that part of your squid.conf where u have made those acl ?
-
Hi Ricky,
Jawed here, actually this is my acl
http_port 3128
acl our_networks src 192.168.0.0/192.168.0.15
http_access allow our_networks
acl problem_port port 80 8080 1080 1863 5000 5001 5010 5050 5100
http_access dey problem_port
acl badURL url_regex -i
http_access deny badURL
acl badURL1 url_regex -i <urls insider.msg.yahoo.com>
http_access deny badURL1
acl badURL2 url_regex -i msn-messenger application/x-msn-messenger
http_access deny badURL2
acl site_block dstdomail insider.msg.yahoo.com
http_access deny site_block
And all URL write that is in this forum topic which is make sepetate
acl and deny them which is yahoo use
http://www.linuxsolved.com/forums/ftopic501.html
and bydefault all Safe Ports same there is no changes
http_access deny all
-
well.you have to edit safe ports section b'coz in there you are describing all these ports as safe ports and then later you are blocking those. edit those safe port, create more range and exclude the port you want from safe port.
Also if this is your copy and paste of your squid.conf then it has few errors which should also considered.
-
Hi Ricky,
This is Jawed Iqbal here and i have still not solve my problem b'cuz if i block the default Safe Ports like port 80 then client could not surfing the web so therefore i open this port in Safe port and block this type like
acl prob_port port 8080 80 ........ etc ports
http_access deny prob_port
and how i can exclue safe port can u give full syntax
and plzz can u give alternative option to block yahoo messenger like word/URL blocking that is exact yahoo messenger use with syntax.
Thanks