New site doesn't load

I'm new to linux and linode. I have followed their instructions to set up my linode server, including installing fail2ban and other security measures. Also lamp for ubuntu 16.04. Everything looks good - apache and mysql are running; the config files are in the right place; the virtual host looks like it's configured correctly - but the site will not load.

The domain is set up correctly, as I can ping it from my laptop.

The final troubleshooting advice is to check iptables to see if it is blocking ports 80 and 443. It shows that there should be ACCEPT entries for tcp for both these ports to allow them. When I run iptables -L I don't see these entries:

0 0 ACCEPT tcp – * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80

0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443

This may be the culprit but I don't know how to add these. I am surprised that fail2ban did not include them. Perhaps I missed that in the configuration.

I would appreciate any advice on how to fix this or a pointer to some documentation that would tell me how.

1 Reply

I found the solution for this problem. In case anyone else needs this here it is:

From the command line I entered:

sudo ufw allow 80/tcp

This added the line to iptables that allows http access.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct