Nmap error: Operation not permitted

Created:

2016-11-16 13:23:14 UTC

Modified:

2017-04-24 11:03:48 UTC

3

Was this article helpful?


Have more questions?

Submit a request

Nmap error: Operation not permitted

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

The following error is shown while trying to check port using Nmap utility:

 Starting Nmap 6.40 ( http://nmap.org ) at 2016-02-04 21:25 GMT
sendto in send_ip_packet_sd: sendto(4, packet, 44, 0, 123.123.123.123, 16) => Operation not permitted
Offending packet: TCP 122.122.122.122:49291 > 123.123.123.123:5224 S ttl=37 id=29358 iplen=44 seq=453702184 win=1024
sendto in send_ip_packet_sd: sendto(4, packet, 44, 0, 123.123.123.123, 16) => Operation not permitted
Offending packet: TCP 122.122.122.122:49292 > 123.123.123.123:5224 S ttl=46 id=38931 iplen=44 seq=453767721 win=1024

Cause

iptables misconfguration.

Resolution

This issue usually occurs due to misconfigured iptables.

The following rules should be added to allow 'invalid' packages:

 iptables -A OUTPUT -m state --state NEW,ESTABLISHED,RELATED,INVALID -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Tommy Mairo

    While I have done these for iptables, but it not works. 

  • 0
    Avatar
    Vitaly Zhidkov

    @Tommy, check if nmap works locally on your server, check other chains in iptables and check if there is any external firewall

Please sign in to leave a comment.