![]() From here:Ī closed port is accessible (it receives and responds to Nmap probe packets), but there is no application listening on it. So the question is: Is anything listening on port 8000? If nothing is listening on a port but the port is not blocked by a firewall nmap will report it as closed. ![]() Your iptables output shows that no port is blocked. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name # iptables -L -nĪCCEPT all - 0.0.0.0/0 sudo netstat -tulpnĪctive Internet connections (only servers) I want to open port 8000 and here is the output of iptables. Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds Nmap scan report for localhost (127.0.0.1) nmap on this machine from other machine says: $ nmap host_nameĪnd here is nmap from the same machine $ nmap localhost So I basically said I will allow everything but it's still not working. So now we can configure ufw appropriately.I have ubuntu 12.04 and I'm not able to allow certain port in my firewall. And I happen to know the public facing interface of this particular server has an inet address starting 162. This output shows us which adaptor is the external connection and which the internal: the inet address of eth1 starts with a 10 meaning it's internal. ![]() Inet6 xxxx::xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 Inet6 xxxx::xxxx:xxx:xxxx:xxxx prefixlen 64 scopeid 0x20Įther xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet) You should see something similar to: eth0: flags=41 Open a new terminal and type the following: $ ifconfig ![]() Step one is to check which Ethernet network adaptors you have installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |