Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: srushik on August 04, 2010, 04:55:11 PM

Title: Close outboud port
Post by: srushik on August 04, 2010, 04:55:11 PM
I am using SME as a server/gateway.
I need to close an outbound port (TCP Port 20) for all users in the LAN
How do I close an outbound port?

Thanks,
Shane
Title: Re: Close outboud port
Post by: johnp on August 04, 2010, 05:53:13 PM
Reading this may help http://wiki.contribs.org/Firewall#Block_outgoing_ports (http://wiki.contribs.org/Firewall#Block_outgoing_ports)
Title: Re: Close outboud port
Post by: srushik on August 04, 2010, 06:28:48 PM
Thank you.  I followed that document.
Very helpful.
Title: Re: Close outboud port
Post by: CharlieBrady on August 04, 2010, 08:25:35 PM
I need to close an outbound port (TCP Port 20) for all users in the LAN

If you do that, you will interfere with some ftp transfers. Is that what you are trying to do? If so, you would be better to block port 21 outbound.
Title: Re: Close outboud port
Post by: srushik on August 05, 2010, 12:40:58 AM
I don't want to block any FTP transfers.  I believe all my ftp software is connecting on port 21, not port 20.

I have no idea what's running on port 20, but I have something sending from port 20, and hitting one of my web hosts.  The web host doesn't like that activity on hitting them on Port 20.  So I wanted to shut it down till I could identify what is running on that port.

It's interesting to hear you say that port 20 is used for some FTP transfers.  Something for me to look into for sure.

Thanks
Title: Re: Close outboud port
Post by: Stefano on August 05, 2010, 12:53:08 AM
well.. in this case, as your SME is your gw, use tcpdump to discover who's making outbound traffic on remote 20 TCP

just closing the door will not solve the problem
Title: Re: Close outboud port
Post by: byte on August 05, 2010, 01:21:04 PM
Normally port 20 is created for "data transfers", so FTP uses port 21 for creating the connection between two computers and port 20 is used for data transfer.
Title: Re: Close outboud port
Post by: srushik on August 05, 2010, 03:38:45 PM
You are super helpful.  I'll use tcpdump and do some discover to find where this is coming from.  Thanks for the caution on FTP connections over PORT 20.

Title: Re: Close outboud port
Post by: CharlieBrady on August 05, 2010, 04:48:47 PM
I have no idea what's running on port 20, but I have something sending from port 20, and hitting one of my web hosts.  The web host doesn't like that activity on hitting them on Port 20.

Then you should fix the web host (probably by just ignoring port 20 traffic).