Portal Home > Knowledgebase > OpenVZ VPS > How do I clear my iptables rules?


How do I clear my iptables rules?




If you find yourself unable to reach your VPS, but able to reach other parts of our network, you can disable iptables by running the following commands over the Serial Console or VNC viewer:

iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

This is typically the solution if you receive the "Operation not permitted" error when you try to ping outbound from your VPS.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
VNC (GUI) for Ubuntu (Views: 17706)