Jump to content
xisto Community
Sign in to follow this  
jedipi

Question About Blocking Msn In Linux

Recommended Posts

I am trying to block MSN. The following is my config:

CONSOLE
iptables -A FORWARD -d gateway.messenger.hotmail.com -j DROPiptables -A FORWARD --protocol tcp --dport 1863 -j REJECT --reject-with tcp-resetfor i in `cat /etc/msnserverlist`;do /sbin/iptables -A FORWARD -d $i -j DROP;donefor i in `cat /etc/msnserverlist`;do /sbin/iptables -A FORWARD -s $i -j DROP;donemsnserverlist:207.46.4.55207.46.4.161207.46.0.74207.46.4.40207.46.6.101207.46.4.93207.46.4.38207.46.0.48207.46.0.144207.46.4.59207.46.6.29207.46.6.176207.46.0.22207.46.0.5465.54.239.20207.46.0.92207.46.0.68207.46.0.46207.46.6.186207.46.2.161207.46.0.81207.46.6.20165.54.239.140207.46.0.9661.129.45.63207.46.0.57207.46.0.75207.46.0.83207.46.0.151207.46.0.147iptables -A FORWARD -d 64.4.12.200 -p udp --dport 7001 -j DROPiptables -A FORWARD -d 64.4.12.201 -p udp --dport 7001 -j DROPiptables -A FORWARD -d 65.54.226.247 -p udp --dport 443 -j DROPiptables -A FORWARD -d 207.46.104.20 -p udp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.106.99 -p udp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.110.254 -p udp --dport 80 -j DROPiptables -A FORWARD -s 64.4.12.200 -p udp --sport 7001 -j DROPiptables -A FORWARD -s 64.4.12.201 -p udp --sport 7001 -j DROPiptables -A FORWARD -s 65.54.226.247 -p udp --sport 443 -j DROPiptables -A FORWARD -s 207.46.104.20 -p udp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.106.99 -p udp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.110.254 -p udp --sport 80 -j DROPiptables -A FORWARD -d 64.4.12.200 -p tcp --dport 7001 -j DROPiptables -A FORWARD -d 64.4.12.201 -p tcp --dport 7001 -j DROPiptables -A FORWARD -d 65.54.226.247 -p tcp --dport 443 -j DROPiptables -A FORWARD -d 207.46.104.20 -p tcp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.106.99 -p tcp --dport 1863 -j DROPiptables -A FORWARD -d 207.46.110.254 -p tcp --dport 80 -j DROPiptables -A FORWARD -s 64.4.12.200 -p tcp --sport 7001 -j DROPiptables -A FORWARD -s 64.4.12.201 -p tcp --sport 7001 -j DROPiptables -A FORWARD -s 65.54.226.247 -p tcp --sport 443 -j DROPiptables -A FORWARD -s 207.46.104.20 -p tcp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.106.99 -p tcp --sport 1863 -j DROPiptables -A FORWARD -s 207.46.110.254 -p tcp --sport 80 -j DROP
But they do not work. MSN still can connect to the server.Does anyone know how to block it??
Notice from moonwitch:
put console tag in, adjusted credits

Share this post


Link to post
Share on other sites

First of all; USE THE QUOTES OR CONSOLE!Secondly istead of listing the long list of each server, use 207.46.*.*

Share this post


Link to post
Share on other sites

Im not 100%, but dont all the msn server use the same port (or same range of ports)
you may have more luck blocking tcp packets in state NEW to msn server ports.

iptables -A FORWARD -p tcp --dport <msn_server_port_range> -m state --state NEW -j DROP

Share this post


Link to post
Share on other sites

thanks moonwitch for adding the console tag.I did try to add it before I click post button.but it did look good in preveiw (even now). --- 1 line statement become 2 lines.thats why I did do that.and thanks for the suggestion...however, the problem still remain.MSN still can online.any other ideas???

Share this post


Link to post
Share on other sites

Why would you ever need to block MSN? Do you just not want Windows users to be able to connect to your server or something?

1. Did you ever think about that every single message goes through the m$ servers? And that privacy is a rare thing there?
2. Ever thought that if at work, everyone's nudging and msg'ing each other, would there be any work done?
3. You are confused, this has nothing to do with windows/linux, it's the PROTOCOL

[wha?]
4. MSN is the lamest protocol ever and GAIM ownzz it's sorry *bottom*?
[/wha?]

Share this post


Link to post
Share on other sites

I see. You're one of those evil bosses who wants to control everything your employees do and prevent them from using the internet for anything other than stock quotes and stuff.

Notice from qwijibow:
Your first post in this thread was tolerated, but this is just pointless spam/flaimbait.please keep your posts relevant to the topic.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.