Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Bob on April 27, 2002, 02:01:29 AM

Title: How do you block certain Ports?
Post by: Bob on April 27, 2002, 02:01:29 AM
Does anyone know how to block the ports for a specific program, ie:

MSN Messenger
IRC
grokster, Morpheus, KaZaA
edonkey
SongSpy
etc.....

I have a list of the ports that are used by these programs but not sure how to close the ports.

What would be nice is a Server-Manager panel where you could select or enter in a port that you wanted to block.  Hint, Hint!

Thanks in advance for any replies.
Title: Re: How do you block certain Ports?
Post by: chris meredith on April 27, 2002, 10:34:24 PM
You could set ipchain rules for outgoing ports.

The rules are set in:
/etc/rc.d/init.d/masq

You would need to just add the lines you want to the templates for masq.   Do an expand template, and a remote access update call.

IPChains HOWTO:
http://www.tldp.org/HOWTO/IPCHAINS-HOWTO.html