Koozali.org: home of the SME Server

5.6 iptables

Paul F

5.6 iptables
« on: April 30, 2003, 12:53:24 AM »
Any suggestions on how one would proceed to block MSN messenger/Yahoo messenger. I assume I cannot just create iptable rules and need to work with the template(s)?

Thanks!

Klaus Eckert

Re: 5.6 iptables
« Reply #1 on: April 30, 2003, 04:15:36 PM »
Hi Paul F

as the names tells you, iptables can only handel ip-traffic.
down in the ip-protocoll you don't know the content of the ip-packets.
further on, more than one ip-packet may belong to one message.

so, in my opinion, it's not possible to filter messenger-messages on the gateway (SME-server).

cheers
klaus

Paul F

Re: 5.6 iptables
« Reply #2 on: April 30, 2003, 08:17:13 PM »
No no my friend. I am simply asking if with e-smith I can simply create iptable rules or do I have to deal with templates.

It is simple to block the IP ranges and or ports on a standard linux distro by issuing iptables commands.

Thanks!

Klaus Eckert

Re: 5.6 iptables
« Reply #3 on: April 30, 2003, 08:39:33 PM »
OK, i see.

there is a contib that allows you to open or close ports.
search the forum for "port opening".
or create a custom template if vou know what to do.

it's not recommended to add iptables-rules manual (as every configuration in SME),  because they may be overwritten by the next expand of the templates.

cheers klaus

Paul F

Re: 5.6 iptables
« Reply #4 on: April 30, 2003, 10:07:07 PM »
Thanks again. Yes I did look at port blocking but I also interest in IP/IP range/pool blocking.

Michael Soulier

Re: 5.6 iptables
« Reply #5 on: May 03, 2003, 02:36:39 AM »
Paul F wrote:
>
> Any suggestions on how one would proceed to block MSN
> messenger/Yahoo messenger. I assume I cannot just create
> iptable rules and need to work with the template(s)?

You can block some operations of those IM clients, but I don't believe you'll be able to block basic messaging, since they both fall back to port 80 if they can't get out any other way. Well, correction, you can block them, but you'll have to cut off web access to the internet. Sneaky, aren't they?

Unless someone has written proxies for them that recognize those clients, but I have yet to hear of any.

Mike