Skip to main content

Problem with iptables (sendmsg: Operation not permitted)

Comments

6 comments

  • cPanelMichael
    Hello :) You could try saving the flushed iptables rule set after disabling CSF with a command such as: /etc/init.d/iptables save
    However, I suggest consulting with CSF on their support forums for help troubleshooting this issue: ConfigServer - Forums Thank you.
    0
  • YasIT
    Thank you. i flush iptables and remove CSF but it problem not sloved!!!!! Please help. [url=http://forum.configserver.com/viewtopic.php?f=6&t=8036]ConfigServer Community Forum • View topic - Problem with iptables (sendmsg: Operation not permitted)
    0
  • quizknows
    The "ping: sendmsg: Operation not permitted" message occurs when you try to ping an IP that is currently blocked in iptables. You need to be sure CSF is entirely removed or at least disabled (csf -x) before flushing iptables. Otherwise you can leave your server in an entirely unreachable state.
    0
  • KurtN.
    The "ping: sendmsg: Operation not permitted" error, means that your system is unable to send ICMP packets outbound from your server. This means that you likely have a firewall rule that is blocking ICMP traffic to that IP, or perhaps ICMP entirely. To test if your firewall is indeed the problem, you can manually perform the following steps: iptables-save > /root/current.ipt iptables -P INPUT ACCEPT; iptables -P OUTPUT ACCEPT iptables -F INPUT; iptables -F OUTPUT ping -c 3 google.com iptables-restore < /root/current.ipt rm -f /root/current.ipt
    If you're able to successfully ping, then you have a firewall issue. If this does not solve the problem, I don't know what other suggestions to offer given the information at hand. Except maybe Selinux, because I always like to blame it for everything anyways. j/k j/k
    0
  • YasIT
    Hello cPanelKurtN thanks for your help, but when I run "csf -r" the hole thing comes again ?
    0
  • KurtN.
    Sorry, I'm not familiar with ConfigServer. The goal of my example was to give you a few commands that can help you temporary diagnose your issue.
    0

Please sign in to leave a comment.