Configure firewall (Shorewall/UFW) to allow traffic for services on an Ubuntu Server

Posted by Niklas on Ask Ubuntu See other posts from Ask Ubuntu or by Niklas
Published on 2011-11-02T09:45:08Z Indexed on 2012/03/24 17:37 UTC
Read the original article Hit count: 308

Filed under:
|
|
|

I have an Ubuntu Server 11.04 x64 which I want to secure.

The server will be open to Internet and I want to be able to SSH/SFTP into the machine and the SSH-server runs on a custom set port. I also want a web server accessible from the Internet. These tasks seems not to hard to perform but I also want SAMBA-shares to be accessible from within the local network and this seems to be a bit trickier.

If possible I also want to be able to "stealth" the ports necessary to protect the server further but also allow the SAMBA-shares to be automatically found within the local network.

I've never configured firewalls before except for a router and I always bump into a bunch of problem when doing it all by myself so I was hoping for some tips or preferably a guide on how to this.

Thank you!

Update:

On second thought I'd could just as likely go with UFW if the same settings are achievable ("stealth" ports).

© Ask Ubuntu or respective owner

Related posts about configuration

Related posts about ssh