Difference between revisions of "How to Fix an IPtables Lockout on a VPS or Dedicated Server w/cPanel"

From Acenet Knowledgebase
Jump to: navigation, search
(test)
 
Line 1: Line 1:
<html>If you're unable to access your server via SSH because of a rule added to IPtables in error, it is simple to flush IPtables so that you can regain access if cPanel is installed on your server.<br /><br />All you need to do is append the following to your WHM URL and then log in using your root login details when prompted:<br /><br />/scripts2/doautofixer?autofix=iptablesflush<br /><br />For example, if your server IP is 255.255.255.255, then you would use this URL:<br /><br />https://255.255.255.255:2087/scripts2/doautofixer?autofix=iptablesflush</html> [[Category:WHM (Web Host Manager)]]
+
If you're unable to access your server via SSH because of a rule added to iptables in error, it is simple to flush iptables so that you can regain access if cPanel is installed on your server.
 +
 
 +
All you need to do is append the following to your WHM URL and then log in using your root login details when prompted:
 +
 
 +
<pre>/scripts2/doautofixer?autofix=iptablesflush</pre>
 +
 
 +
For example, if your server IP is 192.168.1.100, then you would use this URL:
 +
 
 +
<pre>https://255.255.255.255:2087/scripts2/doautofixer?autofix=iptablesflush</pre>
 +
 
 +
[[Category:WHM (Web Host Manager)]]

Revision as of 21:52, 5 October 2012

If you're unable to access your server via SSH because of a rule added to iptables in error, it is simple to flush iptables so that you can regain access if cPanel is installed on your server.

All you need to do is append the following to your WHM URL and then log in using your root login details when prompted:

/scripts2/doautofixer?autofix=iptablesflush

For example, if your server IP is 192.168.1.100, then you would use this URL:

https://255.255.255.255:2087/scripts2/doautofixer?autofix=iptablesflush