Koozali.org: home of the SME Server

how lock some ports under SME v6.0.1-01 ?

gatox

how lock some ports under SME v6.0.1-01 ?
« on: September 25, 2005, 05:18:10 PM »
Good morning,

How can I block certain ports only on SME ?

Specially ports for MS-Messenger that bypasses squid and dansguardian.

Best regards,

Luis

Offline Curly

  • ****
  • 114
  • +0/-0
how lock some ports under SME v6.0.1-01 ?
« Reply #1 on: September 25, 2005, 09:18:03 PM »
Perhaps you could use portforwarding and forward the incoming ports to an non-existing ip-address ?
.......................................

Offline arne

  • *****
  • 1,116
  • +0/-4
how lock some ports under SME v6.0.1-01 ?
« Reply #2 on: September 26, 2005, 02:23:26 AM »
I think the ide of blocking ports using forwarding to non existing ip's is very good. I just tried it now and it worked quite well for the server ports. (Ports are stealthed and there is no answer back.)

On the other hand I believe this method will not work for blocking the MS-Messenger ports.

The reason for this is that this trafic is set up fro the inside, so the nat firewall (the sme server) will handle this traffic as return trafic to an internal client process (The MS Messenger program.)

The sme server does not have a mechanism for blocking outgoing trafic (even though the underlaying Linux kernel supply such a trafic controll without a problem.)

I believe that it will not be a practical solution to build in such a outbound trafic controll in the sme server either (Speaking just like a sme user.)

The reason is that this will not fit with the principle of easy administration of the sme server. Outbound trafic controll will normally require a lot of configuration and maintenace to specify leagal and unleagal trafic, unless using so strict rules so that allmost only web browsing is leagal.

It would be difficult to find that average ruleset that will fit for the average user when it comes to filtering of outgoing trafic, so most firewall has full open as default setting for outgoing trafic.

A personal firewall on the clients might be a solution. This can prevent certain processes like MS-Messenger to access internet. Some of these personal firewalls can be downloaded for free.

By the way it could actually be possible to apply some simple controll like a "safe mode" and "normal mode" choice at the sme gateway, and then for example let the only leagal outbound trafic be web browsing via web proxy and mail services running in "safe mode". This should not be to difficult to make.

Just an idea. I would not like to use the sme gateway or any other gateway in "safe mode". (But ther might be other users and needs.)

Arne.
......

Offline arne

  • *****
  • 1,116
  • +0/-4
how lock some ports under SME v6.0.1-01 ?
« Reply #3 on: September 26, 2005, 02:31:09 AM »
How to block MS-messenger and other unwanted trafic ..

It can be done by applying a firewall script that modifies or flushes out the existing sme firewall. This will work quite simular for the sme server as for any other Linux distro.

This can be done, but it can also be rather dangerous with the potencial of just destroying the existing firewall.

To just apply personal firewalls on the clients should be a solution without risks.
......

gatox

Port Blocking
« Reply #4 on: September 26, 2005, 08:44:26 PM »
Hi arne,

The point of using local firewall on the desktop is good but the goal of using SME isn't of having a centralized secure gateway ?

Don't get me wrong, SME is a very good firewall and port-forwarding but it needs more functionality on trafic management.  Some small and medium companies and even large corporations are not ready to start installing additional tools on their PCs = cost & time to manage and deploy them individually.  That is why SME needs a contrib like that.

Best regards from rainy Montreal.

Luis

Offline Marcoof

  • *
  • 18
  • +0/-0
how lock some ports under SME v6.0.1-01 ?
« Reply #5 on: September 26, 2005, 10:38:12 PM »
Hi !

I've bloked msn messenger with this following method :

block port TCP 1863 ( whith help of the contribs "port blocking" from dungog)

and disable acces to messenger.hotmail.com with
dansguardian.

Works fine for me !
Bye,
Marc