
Output of $ sudo iptables -t nat -nvL: Chain PREROUTING (policy ACCEPT 1 packets, 40 bytes) TX packets:276 errors:0 dropped:0 overruns:0 carrier:0 RX packets:276 errors:0 dropped:0 overruns:0 frame:0 TX packets:616 errors:0 dropped:0 overruns:0 carrier:0 RX packets:588 errors:0 dropped:0 overruns:0 frame:0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Loopback interface is up: $ ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:86:5f:e3 Nmap done: 1 IP address (1 host up) scanned in 1.12 seconds I tried $ sudo nmap -sS 127.0.0.1 -p 80 and got info - 80/tcp closed, but how it's possible if running nginx server on port 80? Nmap scan report for localhost (127.0.0.1) And also I can connect with my subnet ip-address 10.0.2.15.Īnd If I change port 80 to another in server config (e.g. It's interesting that I can connect to any address 127.* except 127.0.0.1 (localhost).

Iptables disabled $ sudo iptables -L: Chain INPUT (policy ACCEPT)


# The following lines are desirable for IPv6 capable hosts Telnet: Unable to connect to remote host: Connection refusedĪll right in /etc/hosts: 127.0.1.1 ubuntu-work * Failed to connect to 127.0.0.1 port 80: Connection refusedĬurl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused * connect to 127.0.0.1 port 80 failed: Connection refused I have running nginx server (doesn't matter which server):
