Community discussions

MikroTik App
 
prosservices
just joined
Topic Author
Posts: 2
Joined: Fri May 05, 2006 5:22 pm
Location: Lebanon
Contact:

Block MSN Messenger

Tue May 09, 2006 1:25 pm

Please i need help

i need to block msn messenger in mikrotik
i tried to block port 1863 but still opening

if there is a way please advise

thanks in advance
 
User avatar
andrewluck
Forum Veteran
Forum Veteran
Posts: 700
Joined: Fri May 28, 2004 9:05 pm
Location: Norfolk, UK

Tue May 09, 2006 1:56 pm

There's some information available on the web on how to do this. Usually it involves blocking access to some MS sites so that the user can't login. Try a google search.

Regards

Andrew
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Tue May 09, 2006 2:34 pm

you should block port 1863 TCP and UDP, also you should block this URL gateway.messenger.hotmail.com with IP 65.54.239.21, there are also some other things that should be filtered, check on the web.

Regards.

Faton
 
galimuna
just joined
Posts: 11
Joined: Sat Mar 19, 2005 1:27 pm
Location: Kosova / Prishtina / FilmCity
Contact:

Thu May 25, 2006 11:49 am

I tried to block also all ports that I found on internet but it wont help you... because if port 1863 is blocked than MSN connects to port 80 and that you can't block...
I found another way to do it :) and here it is:

If you want to block messenger for a specific IP address than here is the command. For example 172.16.0.1 is the ip you want to disable MSN messenger...

/ip firewall rule forward add action=drop src-address=172.16.0.1/32 dst-address=207.46.0.0/16

the subnet 207.46.0.0/16 is used from MSN for messenger servers... I got that during the packet sniffing.
It connected to these IP-s and ports for only 2 mins.
207.46.114.22:1863
207.46.114.44:1863
207.46.1.2:80
207.46.0.74:1863

so the best way was to deny the whole subnet :)
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Thu May 25, 2006 3:05 pm

This you can use to block the MICROSOFT completely.

If this is what you want to do, than it is OK.

Regards.

Faton
 
maxfava
Member Candidate
Member Candidate
Posts: 225
Joined: Mon Oct 17, 2005 12:30 am

Thu May 25, 2006 4:15 pm

hi
here how I identified the msn protocol
chain=prerouting src-address=(internal ip)/24 protocol=tcp dst-port=1863 
     action=mark-routing new-routing-mark=CHAT passthrough=no 

chain=prerouting src-address=(internal ip)/24 protocol=tcp dst-port=5050 
     action=mark-routing new-routing-mark=CHAT passthrough=no 
 
ParisDragon
newbie
Posts: 32
Joined: Wed May 24, 2006 9:52 pm
Location: NorthEast Texas, USA
Contact:

Re: Block MSN Messenger

Thu May 25, 2006 9:44 pm

Please i need help

i need to block msn messenger in mikrotik
i tried to block port 1863 but still opening

if there is a way please advise

thanks in advance
To block MSN I made a mangle rule to identify the new connection to the MSN port, then blocking that connection mark in the firewall, worked perfectly.
Last edited by ParisDragon on Mon Jul 24, 2006 6:30 pm, edited 1 time in total.
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Sat Jun 03, 2006 11:56 pm

well guys i say to u dont use any of these suggestions.why?
coz msn messenger uses 1863 and 445 tcp ports.u can user netstat -n to see which msn messenger uses when it connects.
so i created a jump rule inside the forward chain like that:
0 ;;; Drop invalid connection packets
chain=forward connection-state=invalid action=drop

1 ;;; jump to chain ports
chain=forward action=jump jump-target=ports
....................................................................
.....................................................................

And then inside my ports chain i can block any port i want.
The following is inside my ports chain:
2 X ;;; drop msn connections for 172 range
chain=ports protocol=tcp dst-port=1863 src-address-list=20x100 accounts
action=drop

3 X ;;; drop msn connections for 172 range
chain=ports protocol=tcp dst-port=443 src-address-list=20x100 accounts
action=drop

I tested those rules and worked 100%.I blocked the range or cetain IPs i want.
Ofcourse i have a problem in blocking yahoo messenger,why?
coz yahoo works on 5050 and 5061 ports,but when i try to block them yahoo will then swicht to other ports to work like 119.So i need help here
I hope this will work for u
Nobody is perfect.
zaher hamiyah
 
boristurk
just joined
Posts: 5
Joined: Fri Feb 11, 2005 10:46 am
Location: Maribor, Slovenia
Contact:

Mon Jul 24, 2006 3:03 pm

Hi,

with port 443 blocked, the whole SSL range of pages are also blocked!!!

Regards,
BT
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Sat Jul 29, 2006 7:02 am

There's a much better and more effective way....

I just don't know if there is any way to duplicate it with MT...

http://www.isaserver.org/tutorials/ISA- ... Users.html outlines the concept (look about 1/3 of the way down the page, where there are screen shots of configureing the "Signature")

this works for yahoo as well (and nearly any http client if you know it's user agent string, provided that it's not cloneing something you can't block like IE or FireFox....)
 
savage
Forum Guru
Forum Guru
Posts: 1269
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Sun Jul 30, 2006 11:55 am

very easy to do this via proxy servers and denying access to certain MIME-Types. MT's proxy is to lacking though, so again get a box for a propper squid proxy server, and setup the appropriate http_allow rules.
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Mon Jul 31, 2006 10:06 am

"content" firewall matcher allows to inspect packets' source for a given string. A good way to block Messenger based on it's signature.