Question

I can't run Nmap from my droplet.

Posted December 8, 2019 2.1k views
Applications

I’m trying to test my home network by portscanning from my droplet but everytime I run Nmap I get this error:

Couldn't open a raw socket. Error: Permission denied (13)

I’m running it with sudo (as root…) but it always says permission denied. Thanks.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hi @puggolouie,

I’ve actually never experienced this on any linux machine so I had to do some research. This seems to be experienced when you are using nmap on Windows.

There are some bugs opened about it here - BUG

Anyway, can you confirm how exactly are you trying to scan your local environment from your droplet?

Regards,
KDSys

Hello, @puggolouie

Could you please let me know what OS you’re using? There was a bug in a specific version and I would like to check this. Also what happens when you run the scan locally on your droplet?

sudo netstat -plunt

Let me know how it goes.

Regards,
Alex

  • root@vps-195:~# sudo netstat -plunt
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      680/systemd-resolve
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      866/sshd
    tcp6       0      0 :::22                   :::*                    LISTEN      866/sshd
    udp        0      0 127.0.0.53:53           0.0.0.0:*                           680/systemd-resolve
    root@vps-195:~#
    

    Here, this is the output from that command. I’m unsure what you mean by “run the scan locally”?

    Disclaimer: I have full permission to scan the network that I am (trying to) with Nmap.

    Regards,
    Jack

Submit an Answer