Skip to main content

Canot ping from WHM server

Comments

4 comments

  • User Avatar
    postcd
    [COLOR="#008000">SOLVED The google nameservers IPs (mentioned above) somehow went into iptables to be blocked, not sure how...... but after removed their IPs from iptables, ping worked and mails went out. so im curious how to add allow rule for my nameserver ips into iptables which will have priority over any block rules added in future.
    0
  • User Avatar
    iserversupport
    Do you have CSF installed ? With that you can allow IP in a single command csf -a 8.8.8.8
    0
  • User Avatar
    triantech
    Using iptables, # iptables -I INPUT -s 8.8.8.8 -j ACCEPT # iptables -I INPUT -s 4.4.4.4 -j ACCEPT # service iptables save # service iptables restart
    0
  • User Avatar
    cPanelMichael
    Hello :) Yes, I suggest using CSF to allow the IP address unless you want the responsibility of managing custom iptables firewall rules. Thank you.
    0

Please sign in to leave a comment.