Linode Forum Index Linode Forum
Linode Community Forums
 


Default Firewall settings

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
lighthammer



Joined: 23 Apr 2010
Posts: 16
Location: West Coast

Posted: Thu Jun 17, 2010 8:26 am    Post subject: Default Firewall settings  

I have a LAMP setup with Ubuntu 9.10 and want to know if there is one command or the easiest way to simply block all ports on a firewall and open up only the ports that are required for web server functionality. (email, http, etc)

What ports and configurations does everyone have and/or recommend? I'm wanting to limit as many open holes as possible. Thanks.
Back to top  
obs



Joined: 07 Mar 2010
Posts: 1400
Location: Earth

Posted: Thu Jun 17, 2010 8:35 am    Post subject:  

The ports you need open depends on what you're doing, a LAMP stack you need 80.

Here's a guide to configuring a firewall for debian, which is pretty much the same as ubuntu

http://library.linode.com/networking/security-guides/arno-iptables-firewall-debian-lenny
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Thu Jun 17, 2010 9:30 am    Post subject:  

Or, take a look at ufw, which is documented in the Ubuntu Server Guide:

https://help.ubuntu.com/9.10/serverguide/C/firewall.html
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1