I am not able to get my ufw
rules working. As far as I understand, the default behavior is to deny
all incoming connections thus the command
ufw allow from 192.168.4.3 to any port http
should enable incoming http connections for the specific ip. However, the requests are blocked by the firewall. I've also tried to explicitly deny
and then allow
but it isn't working either.
The output of ufw status verbose
is
To Action From
-- ------ ----
631/tcp ALLOW IN Anywhere
22 ALLOW IN Anywhere
80 ALLOW IN 192.168.4.3
631/tcp (v6) ALLOW IN Anywhere (v6)
22 (v6) ALLOW IN Anywhere (v6)
The output of netstat -tulnp | grep :80
is
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 336/nginx: master p
Which part of the config / concept am I missing?
Check the log /var/log/ufw.log
. The default logging level (low) should record any blocked requests. Make sure the source IP (SRC
field) matches the IP address you are expecting.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments