How do I block MSN Messenger (also MS Messenger) from going through my
home Linux gateway firewall iptables - so my kids concentrate on
homework?
The gateway is Linux RedHat 9, Linux 2.4.9. device eth0 is internal,
eth1 is Internet. Firewall is iptables, loaded at rc.local time.
I wish to block all Messenger packets, and if possible get a log as well.
example I found for ICQ blocking
iptables -A FORWARD -p tcp -s 10.10.0.0/16 -o $EXT --dport 4000 -j DROP
thank you very much |
Request for Question Clarification by
denco-ga
on
18 May 2005 20:00 PDT
Howdy zekise-ga,
Give the following a try. As ports, etc. seem to change on MSN Messenger,
I thought you should give these a try, and if they work I can post this as
an answer. Thanks!
iptables -A FORWARD -p tcp --dport 1863 -j DROP
iptables -A FORWARD -d 207.46.110.0/25 -j DROP
iptables -A FORWARD -d 207.46.104.20 -j DROP
Looking Forward, denco-ga - Google Answers Researcher
|
Clarification of Question by
zekise-ga
on
23 May 2005 21:50 PDT
Hi denco-ga - thanks for your reply.
I tried this, but I am not sure if it has blocked MSN Messenger or
not. I dont have MSN myself and dont know of one whom I can test with,
so I cannot really test it. Could you pls. tell me how to test this
by observing actual packets going through and/or getting dropped? I
have used netstat before - but I need to monitor/log each packet going
through the /dev/eth1 port. Is there any way to log all packet headers
going through this port, and also log dropped or blocked ones? Thanks
|
Request for Question Clarification by
denco-ga
on
25 May 2005 09:53 PDT
The suggestion provided by linuxgeeknerd-ga in the comments looks to be
a good one (thanks!) so you might want to try that.
Looking Forward, denco-ga - Google Answers Researcher
|
Clarification of Question by
zekise-ga
on
31 May 2005 02:41 PDT
I managed to test the iptables directive and it works.
It stops MSN from logging into the server and establishing a presence.
Thanks so much denco-ga.
Also I will try the logging by LinuxGeekNerd - thanks
zekise
|