I setup a simple nginx server and it works if I just type localhost into the browser. If I try to access it from my phone in the same network, by typing the IP address of my computer, I get a "webpage not available" message. This is my nginx.conf:
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.fedora.
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
server {
listen 80;
location / {
root /usr/share/nginx/html;
}
}
}
According to this post, I configured my firewall to allow http in the Home zone, and set the wireless network to be in that zone.
The first two entries in the INPUT chain of iptables are
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
so I don't think that's the problem.
And yet, looking at the tcpdump capture of the request from my phone I see a reply host unreachable - admin prohibited:
21:13:38.514782 IP 192.168.1.3.54982 > sidney.http: Flags [S], seq 2569820651, win 14600, options [mss 1460,sackOK,TS val 3018406 ecr 0,nop,wscale 6], length 0
21:13:38.514934 IP sidney > 192.168.1.3: ICMP host sidney unreachable - admin prohibited, length 68
Output of firewall-cmd --list-all --zone=home:
home (active)
target: default
icmp-block-inversion: no
interfaces: wlo1
sources:
services: dhcpv6-client http mdns samba-client ssh
ports: 80/tcp
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:
What could be the problem? I'm on Fedora 24.