Koozali.org: home of the SME Server

Blocking yahoo messenger

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« on: June 18, 2007, 07:01:28 AM »
Hi All

Does anyone here tried blocking yahoo messenger?

Thnx
rocel

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Blocking yahoo messenger
« Reply #1 on: June 18, 2007, 08:21:10 PM »
kryptos

Dansguardian will do it, and a lot of other things/sites too if required.
See my old howto or look at dungogs site for the free or paid for versions (ie without or with server manager panel). Note that dansguadian is quite easily configured from the command line and once initially setup requires very little (almost no) ongoing adjustment anyway.
...

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« Reply #2 on: June 19, 2007, 06:59:28 AM »
Hi Ray

Dansguardian is already installed on my server and it work great. But with yahoo messenger i think it will not pass through Dans. I think it uses another port to connect to the net. What i want is to block this using iptables the problem i don't know how. Im not very familiar with iptables. If there is someone out there that can provide with some example that i could use.

Thnx
Rocel

Offline raem

  • *
  • 3,972
  • +4/-0
Blocking yahoo messenger
« Reply #3 on: June 19, 2007, 07:18:51 AM »
kryptos

> But with yahoo messenger i think it will not pass through Dans.

Have you tried blocking it ?
...

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« Reply #4 on: June 19, 2007, 08:08:49 AM »
yup!  even banning the IP address of the PC has no effect.

Regards,
Kryptos

Offline raem

  • *
  • 3,972
  • +4/-0
Blocking yahoo messenger
« Reply #5 on: June 19, 2007, 08:53:10 AM »
kryptos

Did you try blocking the login site, if messenger cannot login, then it cannot be used.
...

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« Reply #6 on: June 19, 2007, 09:19:28 AM »
hi Ray!

yahoo messenger is not a site its a messaging program just like MSN messenger that connects to the net. That will enable user to chat with other user. We want to block it as this makes user unproductive.

Regards,
Rocel

Offline raem

  • *
  • 3,972
  • +4/-0
Blocking yahoo messenger
« Reply #7 on: June 19, 2007, 09:42:36 AM »
kryptos

> yahoo messenger is not a site its a messaging program
> just like MSN messenger that connects to the net.

I'm well aware of what it is, and as you say "it connects to the net".
Part of that "connecting to the net", is to automatically (in many cases)login with a username and password, in order to be able to use the account.
So if you block the site (in Dansguardian) that the Yahoo Messenger login function/script tries to connect to, then the user will not be able to use Yahoo Messenger as they cannot login.

Do you get it now !
...

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« Reply #8 on: June 19, 2007, 09:54:12 AM »
In dansguardian if you add an IP adddress in Bannediplist does it ban on all sites? Ive done already banning the PC's ip address but it still access yahoo messenger....

Offline raem

  • *
  • 3,972
  • +4/-0
Blocking yahoo messenger
« Reply #9 on: June 19, 2007, 10:27:33 AM »
kryptos

Access (login) with Yahoo Messenger.
Analyse your Dansguardian and/or squid log files to see what site is accessed.

Add that site URL to the bannedurllist config file in Dansguardian. See also bannedsitelist.

Yahoo Messenger login should then be blocked.

Read this old howto for details about the config files (towards the end).

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/dansguardian%20instal%20&%20configure%20HOWTO%20for%20sme%20server.htm
...

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Blocking yahoo messenger
« Reply #10 on: June 19, 2007, 05:31:40 PM »
Quote from: "kryptos"
Ive done already banning the PC's ip address
You're thinking backwards -- banning the PC's IP address will only prevent users from opening web pages hosted on that PC.  Ray is trying to get you to ban the IP address of the yahoo server that the PC must contact in order to 'login' to yahoo messenger.

In this (non-contribs) post on blocking chat programs http://nscsysop.hypermart.net/no_chat.html they say that you should block access to
Code: [Select]
# Yahoo! Messenger: msg.edit.yahoo.com/*
# (Yahoo! Messenger: Might also need to block messenger.yahoo.com /*and http.pager.yahoo.com /* Be sure to type in the http on that last URL).

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« Reply #11 on: June 20, 2007, 04:31:57 AM »
hi,

i tried using blanket block from bannedsitelist to make sure no sites(including that of what yahoo messenger uses) can get through. Still i can login to yahoo messenger.

regards,
Rocel

Offline raem

  • *
  • 3,972
  • +4/-0
Blocking yahoo messenger
« Reply #12 on: June 20, 2007, 06:02:33 AM »
kryptos

> i tried using blanket block from bannedsitelist to make sure
> no sites(including that of what yahoo messenger uses) can get through.

You need to tell us exactly what entry you are making and in exactly what file.

Is Dansguardian installed & running ?
To find out do
/etc/init.d/dansguardian status

Do other sites get blocked ?

Did you restart dansguardian after making the change ?
You must restart it or the config change won't take effect.
Do
/etc/init.d/dansguardian restart

Is your transproxy port correct
To find out do
db configuration show squid

What value is listed for TransparentPort ?
...

Offline kryptos

  • *****
  • 245
  • +0/-0
Blocking yahoo messenger
« Reply #13 on: June 21, 2007, 04:52:03 AM »
Hi Ray,

>Is Dansguardian installed & running ?
>To find out do
>/etc/init.d/dansguardian status

dansguardian (pid 4029 4028 4027 4026 4025 4024 4023 4022 4021 4020 4019) is running...

>>Do other sites get blocked ?
yes, all sites



config show squid
squid=service
    EnforceSafePorts=no
    SafePorts=21,70,80,81,119,210,443,563,980,1024-65535
    TCPPort=3128
    TCPProxyPort=80:3128
    TransparentPort=8080
    access=private
    status=enabled


Regards,
Rocel

Offline raem

  • *
  • 3,972
  • +4/-0
Blocking yahoo messenger
« Reply #14 on: June 21, 2007, 05:45:56 AM »
kryptos

>>Do other sites get blocked ?
> yes, all sites

That's a puzzling answer.
You are saying that all sites get blocked, so no-one on your network has any access to web sites ???
Yet you are saying people still have access to yahoo messenger.

What I meant was, do other sites (ie external web sites that contain inappropriate material or are listed in bannedsitelist etc) get blocked, to prove/know that dansguardian is actually working & running correctly.

You didn't answer the other questions.
You need to tell us exactly what entry you are making and in exactly what file and what commands you issue after making the changes.

Did you restart dansguardian after making the change ?

Also are you sure you have not put the IP of the workstation into an exception list, therefore allowing unimpeded access ?
Does the workstation that you are trying to block access to yahoo messenger get blocked by dansguardian if you surf to sites that contain bad content (again to prove Dansguardian is actually functioning and blocking that workstation when it should do so) ?
...