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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
This is a dumb issue with how snap works. The fix is running
snap connect nmap:network-control
after installing nmap.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.