Unable to connect to server after FirewallD setup

Hello,

I have been following the instructions for setting up FirewallD on my server. I have reached this step FirewallD setup and have completed 1, 2, and 3. Now my preview URL is unreachable. The following is outputted after using the firewall-cmd --zone=dmz --list-all command.

dmz (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: http https ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

I am new to server setup and Linode, so I am learning as I go. Any suggestions or tips are greatly appreciated.

1 Reply

This should work, as I have the same settings on my personal server.

# firewall-cmd --zone=dmz --list-all
dmz (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services: http https ssh
  ports:
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:

Have you verified that the web service is running on your server? The following command will show if your web service is indeed running on your server.

netstat -plantu

Also, have you tried restarting the web service for your server? Depending on which web service you are using for your server, you can restart the service using one of the following commands.

sudo systemctl restart apache2
sudo systemctl restart nginx
sudo systemctl restart httpd

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