LAMP (software bundle): Difference between revisions

No edit summary
Line 65: Line 65:
==Firewall==
==Firewall==
If you're using a VPS or computer connected directly to the internet, you will want to install a firewall.   
If you're using a VPS or computer connected directly to the internet, you will want to install a firewall.   
See [[UbuntuWiki: UncomplicatedFirewall]]
See [[UbuntuWiki: UncomplicatedFirewall]]
See [https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands Digital ocean ufw essentials]
 
<syntaxhighlight lang="bash">
sudo ufw allow ssh/tcp
sudo ufw logging on
sudo ufw enable
sudo ufw status
</syntaxhighlight>
 
You should get an output like:
<pre>
Status: active
 
To                        Action      From
--                        ------      ----
22/tcp                    ALLOW      Anywhere
22/tcp (v6)                ALLOW      Anywhere (v6)
</pre>
 
To enable certain ports:
<pre>
</pre>