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
m (Docs admin moved page How to Fix an IPtables Lockout (VPS/Dedicated Server w/cPanel) to How to Fix an IPtables Lockout on a VPS or Dedicated Server w/cPanel: Text replacement - "How to Fix an IPtables Lockout (VPS/Dedicated Server w/cPanel)" to...)
m (Text replacement - "WHM - Web Host Manager" to "WHM")
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
<pre>https://192.168.1.100:2087/scripts2/doautofixer?autofix=iptablesflush</pre>
 
<pre>https://192.168.1.100:2087/scripts2/doautofixer?autofix=iptablesflush</pre>
  
[[Category:WHM (Web Host Manager)]]
+
[[Category:WHM]]

Latest revision as of 19:21, 22 July 2015

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://192.168.1.100:2087/scripts2/doautofixer?autofix=iptablesflush