Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old April 14th, 2007   #1
tictacman
A Carafe of Ubuntu
 
tictacman's Avatar
 
Join Date: Jan 2007
Beans: 119
Ubuntu 9.04 Jaunty Jackalope
Is it possible to block msn messenger from network?

After spending fruitless hours trying to block msn on a home router the little critter still fires up . Would be grateful if some one could tell me whether its even possible, or do I need to build some kind ubuntu powered gateway.
tictacman is offline   Reply With Quote
Old April 15th, 2007   #2
kidders
Skinny Extra Sweet Ubuntu
 
Join Date: Aug 2006
Location: Dublin IE
Beans: 3,161
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to kidders Send a message via AIM to kidders Send a message via MSN to kidders Send a message via Yahoo to kidders Send a message via Skype™ to kidders
Re: Is it possible to block msn messenger from network?

Hi there,

If a Linux box is routing your internet connection, blocking things is trivial, provided you can adequately describe the traffic you want to disallow. For instance, a quick web search suggests that the following would be a good description of MSN messenger data...
  • Outgoing on port 1863, or
  • Destined for 207.46.110.0/25, or
  • Destined for 207.46.104.20.
Ubuntu can handle these sorts of basic restrictions, more or less out of the box (ie an apt-get install might be required to get you started). If you're not using Linux to route data on your network, whether you can successfully block MSN messenger traffic depends on how smart whatever you are using is, I suppose.

MSN is a complicated enough example, since it's (a) designed to use UPnP to reconfigure networks to allow its traffic, (b) quite tolerant of port unavailability, and (c) happy to use proxies. On top of that, there are many web-based interfaces to the MSN messenger service. Being sure you have all the bases covered is not the easiest thing in the world, unless something reasonably smart (like a Linux box) is managing your network.

Last edited by kidders; April 15th, 2007 at 03:47 AM..
kidders is offline   Reply With Quote
Old April 15th, 2007   #3
tictacman
A Carafe of Ubuntu
 
tictacman's Avatar
 
Join Date: Jan 2007
Beans: 119
Ubuntu 9.04 Jaunty Jackalope
Re: Is it possible to block msn messenger from network?

thanks very much for the reply. Yes I have tried googling first, blocked port 1863 and just about every other port associated with messenger with the exception of 443 which would just be plain silly. Did me no good. Also banned gateway.messenger.hotmail.com, blocked access to address 64.4.13.170 through to 64.4.13.190. Didn't help one bit.

Quote:
# Destined for 207.46.110.0/25, or
# Destined for 207.46.104.20.
I didn't come across that bit of info before (so much for my searching skills) so I will give it a go. As for web messengers, I've done some research there and have built a big fat list. I never for one minute released just how pervasive messenger is, its like some pesticide defying weed has taken over my garden and the thing refuses to do die.

Like you said if I probably need some kind of proxy server to defeat this menace. Actually I wouldn't mind building something like this just for 'fun', and I've got a unused mobo+chip up in the attic. This is only a tiny network probably 6 or 7 connections at most, anyone know what kind of minimum spec I could run something like this without X? Trouble is I would have get rid of my existing router modem and buy modem, a hub and a wireless access point which works out kind of expensive.
tictacman is offline   Reply With Quote
Old April 15th, 2007   #4
kidders
Skinny Extra Sweet Ubuntu
 
Join Date: Aug 2006
Location: Dublin IE
Beans: 3,161
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to kidders Send a message via AIM to kidders Send a message via MSN to kidders Send a message via Yahoo to kidders Send a message via Skype™ to kidders
Re: Is it possible to block msn messenger from network?

Hey again,

You seem to have spent quite a bit of time on this issue! Your lack of success is not encouraging ... perhaps it's time to recruit a packet sniffer? You could, for instance, install Ethereal (also called Wireshark), start it listening, and log into MSN yourself. Ethereal is very nicely presented (comparatively speaking!), and displays a great deal of information about packet contents, some of which is bound to help you refine your firewall rules.

Quote:
Originally Posted by tictacman View Post
As for web messengers, I've done some research there and have built a big fat list. I never for one minute released just how pervasive messenger is, its like some pesticide defying weed has taken over my garden and the thing refuses to do die.
Lol that's possibly the best description of MSN I've seen!

Quote:
Originally Posted by tictacman View Post
I probably need some kind of proxy server to defeat this menace.
Yes... requiring the use of a proxy to gain internet access (or perhaps just proxying transparently) would certainly be a clean way of solving the issue of web-based interfaces to MSN in a single stroke.

Quote:
Originally Posted by tictacman View Post
anyone know what kind of minimum spec I could run something like this without X?
You might be surprised how low you can go ... although Ubuntu may not be the best choice of distro. Linux per se will run on extraordinarily low-spec devices (100s of MHz, with <100MB RAM, and very little storage space), which is one of the reasons 2.2 and 2.4 kernels are still maintained.

One option worth considering might be just to buy a cheap, dumb modem and a second network card (something for about €15, maybe). Depending on exactly what you've already got, and what your requirements are, you could maybe...
  • Pair up the cheap modem & NIC and plug them into a Linux box, which you would use as a router & proxy/DNS/DHCP server.
  • On the local side of the Linux box, you could use your current modem/router (which I'm assuming has a wireless interface too) as a hub/switch/AP for your network.
  • You could switch off the modem, DNS & DHCP servers, and other advanced features in the modem/router box, and give the Linux box full control of your network.
If you want to go the proxy route to curtail web-based access to certain things, you could then install some filtration software (DansGuardian, for instance) to start blocking content. There are plenty of smarter content filters available too, which would help reduce the need for you to go trawling the web for hosts you should blacklist.

Without wanting to pry, I'm curious about your reasons for wanting to block access to MSN. Essentially, I'm wondering if the protection of children is the issue, and if so, whether they are your own. It's possible, for instance, that a combination of basic preventive measures and network usage logging (ie big brother!) would be a good solution for you ... but then again, you could have legal reasons for needing to comprehensively defeat any attempt to get access to MSN chat services.

Last edited by kidders; April 15th, 2007 at 05:52 AM..
kidders is offline   Reply With Quote
Old April 15th, 2007   #5
tictacman
A Carafe of Ubuntu
 
tictacman's Avatar
 
Join Date: Jan 2007
Beans: 119
Ubuntu 9.04 Jaunty Jackalope
Re: Is it possible to block msn messenger from network?

Quote:
Pair up the cheap modem & NIC and plug them into a Linux box, which you would use as a router & proxy/DNS/DHCP server.
Yes that sounds like the most sensible thing to do. Not too many stand alone modems about but I found a few. I have a spare nik, spare hard drive, and the cpu is 1.8ghz, no memory but I would probably get 250mb or 500 depends on difference in price.

Quote:
Without wanting to pry, I'm curious about your reasons for wanting to block access to MSN
Let just say that we've had a guest to stay who hooked up to the network, and I was looking for a way to curtail the usage a bit (this is not really an issue any more since they are leaving). Since then its become a bit of an obsession. I think this could turn out to be a nice little project for me though, and might gain a little extra protection for the network.
tictacman is offline   Reply With Quote
Old April 16th, 2007   #6
kidders
Skinny Extra Sweet Ubuntu
 
Join Date: Aug 2006
Location: Dublin IE
Beans: 3,161
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to kidders Send a message via AIM to kidders Send a message via MSN to kidders Send a message via Yahoo to kidders Send a message via Skype™ to kidders
Re: Is it possible to block msn messenger from network?

Ahhh... I see. Well, blocking MSN won't really protect your network from anything in particular, but that doesn't mean you shouldn't be able to, if you want to.

The best way to exercise full, flexible control over what your internet connection gets used for is with a Linux box, imo. A 1.8GHz machine would be more than capable of handling that without breaking a sweat ... so would one half that speed though.
kidders is offline   Reply With Quote
Old April 17th, 2007   #7
tictacman
A Carafe of Ubuntu
 
tictacman's Avatar
 
Join Date: Jan 2007
Beans: 119
Ubuntu 9.04 Jaunty Jackalope
Re: Is it possible to block msn messenger from network?

Actually the 'protection' I was referring to was the 'added bonus' that would come with a linux server and firewall. I'm hoping to pick some knowledge up on iptables and security in general along the way.
tictacman is offline   Reply With Quote
Old April 17th, 2007   #8
kidders
Skinny Extra Sweet Ubuntu
 
Join Date: Aug 2006
Location: Dublin IE
Beans: 3,161
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to kidders Send a message via AIM to kidders Send a message via MSN to kidders Send a message via Yahoo to kidders Send a message via Skype™ to kidders
Re: Is it possible to block msn messenger from network?

Whoops! Do post back if you run into any trouble ... security is certainly something people will always be happy to help with.
kidders is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:28 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry