Koozali.org: home of the SME Server

How to block internet access for messenger too?

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
How to block internet access for messenger too?
« on: January 28, 2005, 03:32:32 AM »
I need to block internet access in some machines of my client shop.
First I installed IP Block by AbeLoveLess and not work for me because block the LAN too.
Then I install squidProperties-0.3.tar by Abe too. This work great, this block internet access but not MSN messenger. Any way to do this?
Thanks for the help.
Sorry my language
PicsOne

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
How to block internet access for messenger too?
« Reply #1 on: January 30, 2005, 04:52:41 PM »
Any one?

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
How to block internet access for messenger too?
« Reply #2 on: January 30, 2005, 11:51:51 PM »
you can use squid acl's to stop ip's I think. You can also use iptables.

don't know the best way to do this using the manager.

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline nigeltodd

  • ****
  • 82
  • +0/-0
    • http://nigelt.dyndns.org
How to block internet access for messenger too?
« Reply #3 on: February 03, 2005, 03:25:53 AM »
I would suspect that closing the appropriate port(s) would achieve this. Alas I do not know whaich port(s) off the top of my head, althoug a quick google threw up these ones:

1863: Server connection/conversation connections
3389: Remote Assistance (XP only)
1503: Whiteboard/Application Sharing (XP only -- connected to Netmeeting)
6891-6900: 10 File transfer ports for file simultaneous transfers
5004-65535: Audio (and video in XP) dynamic ports

Good luck
smoke-free since June 24th, 2004............

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
How to block internet access for messenger too?
« Reply #4 on: February 03, 2005, 04:21:49 AM »
Thanks all for reply
I found an interesting document about block MSN. This say:
---------------------------------------------
The secret for block sucessfully MSN is not block directly the port 1863, because messenger pop up to port 80!!!!!
The formule is: Redirect port 1863 to an nonexistent IP
With iptables:
iptables -t nat -A PREROUTING -p tcp -s 192.168.0.53 --dport 1863 -j DNAT --to-destination 192.168.0.5:1863
 where 192.168.0.53 is the IP of PC have messenger
192.168.0.5 is the IP of nonexistent PC.
Redirect to a computer that doesn't exist, messenger believes that this dead the service and cannot make a session :D
----------------------------------------------
Well, i will try this, but i don't know how to implement this with iptables. Maybe with Muso contrib?

Offline raem

  • *
  • 3,972
  • +4/-0
How to block internet access for messenger too?
« Reply #5 on: February 03, 2005, 08:03:50 AM »
If you install Dansguardian you can block URL's and that will effectively stop MSN Messenger from logging in. No login, no use !! I have used it this way and it does work.

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

Server manager version see dungog.net
...

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
How to block internet access for messenger too?
« Reply #6 on: February 03, 2005, 07:43:52 PM »
if you have blocked http access to the internet already, you only have to block port 1863.

hc
nl.linkedin.com/in/hanscees/

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
How to block internet access for messenger too?
« Reply #7 on: February 03, 2005, 11:14:05 PM »
This is the result:
Not work. I use iptables and not work
I refresh the concept:
I need to block some computers in the LAN.
For example 192.168.0.65
With Abbe contrib I can block internet access for this PC, but not MSN messenger for this PC
I need in the LAN some PCs access to internet, including msn messenger, and others PCs not access to ENTIRE internet, including msn messenger. Understand? Sorry for my bad english.

Dansguardian can make this control for local IP?

Offline raem

  • *
  • 3,972
  • +4/-0
How to block internet access for messenger too?
« Reply #8 on: February 06, 2005, 02:59:36 PM »
You can block Internet access completely to all PCs(using *.* in one of the config files) and then put the IPs of the PCs allowed to access Internet in the exclusion config files.
...

Offline sebahot

  • *
  • 19
  • +0/-0
    • Drake Systems
How to block internet access for messenger too?
« Reply #9 on: April 10, 2005, 11:53:56 PM »
Quote
You can block Internet access completely to all PCs(using *.* in one of the config files) and then put the IPs of the PCs allowed to access Internet in the exclusion config files.


Where are those config files?

Sebastian
...

Offline raem

  • *
  • 3,972
  • +4/-0
How to block internet access for messenger too?
« Reply #10 on: April 11, 2005, 12:03:46 AM »
Sebastian

> Where are those config files?

They are the dansguardian config files in
/etc/dansguardian/.....
eg
/etc/dansguardian/bannedextensionlist
/etc/dansguardian/bannediplist

Open each file and read the tips about configuration & configure as required. Also read my HOWTO

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

Offline funkusmunkus

  • *
  • 220
  • +0/-0
How to block internet access for messenger too?
« Reply #11 on: April 11, 2005, 05:25:31 AM »
here's what microsoft say about blocking messenger, the port and the websites to block as well.
http://support.microsoft.com/kb/889829

hope that helps
cheers
.........

Offline lu2fgn

  • ***
  • 55
  • +0/-0
    • http://www.sateliteros.com.ar
How to block internet access for messenger too?
« Reply #12 on: April 12, 2005, 12:53:24 PM »
Hola ??

Hi this is what I found, it mit work:

# MSN Messenger
/sbin/iptables -A FORWARD -p TCP --dport 1863 -j DROP
/sbin/iptables -A FORWARD -d 64.4.13.0/24 -j DROP

I did use something like this for Kazaa and apears to work.

If you whant contact direct.

Alberto
lu2fgn at yahoo.com.ar
 :hammer:
......

Offline sebahot

  • *
  • 19
  • +0/-0
    • Drake Systems
How to block internet access for messenger too?
« Reply #13 on: April 12, 2005, 10:24:34 PM »
Ray

Thank you!
The ip's will be blocked from accesing squid, but if they use some P2P programs (that do not use squid) they will be able to access internet.
Is that correct?

Sebastian
...

Offline lu2fgn

  • ***
  • 55
  • +0/-0
    • http://www.sateliteros.com.ar
How to block internet access for messenger too?
« Reply #14 on: April 13, 2005, 04:48:58 AM »
Hi Sebastian

http://redes-linux.all-inone.net/manuales/ancho_banda/qos_p2p.pdf

The first is a kernel 2.6.8.1 and will control several thing also the amount off conections allow, some part of this pdf is spanish, when Icanresove the 2.6.8.1 will put my nose into this and make some kind off howto in english.
Here is a list that I found, I did change from REJECT to DROP and this works on my BOX 6.5 (Kazaa)

# Red de Audio Galaxy
/sbin/iptables -A FORWARD -d 64.245.58.0/23 -j DROP
# GNUtella, Bearshare y ToadNode
/sbin/iptables -A FORWARD -p TCP --dport 6346 -j DROP
# eDonkey
/sbin/iptables -A FORWARD -p tcp --dport 4661:4662 -j DROP
/sbin/iptables -A FORWARD -p udp --dport 4665 -j DROP
# Puertos y redes de Kazaa y Morpheus
/sbin/iptables -A FORWARD –p tcp --dport 1214 -j DROP
/sbin/iptables -A FORWARD –d udp --dport 1214 -j DROP
/sbin/iptables -A FORWARD -d 213.248.112.0/24 -j DROP
/sbin/iptables -A FORWARD -d 206.142.53.0/24 -j DROP
# Red de Napigator
/sbin/iptables -A FORWARD -d 209.25.178.0/24 -j DROP
# Red de Napster
/sbin/iptables -A FORWARD -d 64.124.41.0/24 -j DROP
# Redes de WinMX
/sbin/iptables -A FORWARD -d 209.61.186.0/24 -j DROP
/sbin/iptables -A FORWARD -d 64.49.201.0/24 -j DROP
# Red de IMesh
/sbin/iptables -A FORWARD -d 216.35.208.0/24 -j DROP
Mensajería instantánea.
# AIM e ICQ
/sbin/iptables -A FORWARD --dport 9898 -j DROP
/sbin/iptables -A FORWARD --dport 5190:5193 -j DROP
/sbin/iptables -A FORWARD -d login.oscar.aol.com -j DROP
/sbin/iptables -A FORWARD -d login.icq.com -j DROP
# Jabber
/sbin/iptables -A FORWARD --dport 5222:5223 -j DROP
# MSN Messenger
/sbin/iptables -A FORWARD -p TCP --dport 1863 -j DROP
/sbin/iptables -A FORWARD -d 64.4.13.0/24 -j DROP
# Yahoo! Messenger
/sbin/iptables -A FORWARD -p TCP --dport 5000:5010 -j DROP
/sbin/iptables -A FORWARD -d cs.yahoo.com -j DROP
/sbin/iptables -A FORWARD -b scsa.yahoo.com -j DROP

Bet regards
Alberto
:hammer:
P2P
......