Ever locked yourself out of your Server while making some iptables changes? What about when you change your SSH port and then forget what you set it to?
These are common support tickets we receive at RSHosting. In many cases this is something our customer’s can fix on their own if they are using cPanel on thier VPS/Server.
cPanel comes with a number of “hidden” autofix commands that allow for administrators to fix common problems simply be logging into WHM and going to a special URL. Two of the most useful ones I’ve seen are flushing iptables and restarting SSH in “safe mode” (basically the default settings and port).
Flushing iptables rules
https://yourdomain.com:2087/scripts2/doautofixer?autofix=iptablesflush
Restart SSH in safe mode
https://yourdomain.com:2087/scripts2/doautofixer?autofix=safesshrestart
Once you hit the URL you will be prompted to log in. Simply enter your root password and cPanel will do the rest. These have definitely saved me on more than one occasion when my attempt to ’secure’ my server worked a little too well. Remember that if you happen to also lock yourself out of WHM through iptables, you will not be able to hit the URL’s I mentioned. In that case, contact support.
Other useful commands as well:
Reset the Firewall Settings
https://yourdomain.com:2087/scripts2/doautofixer?autofix=iptablesflush
Reset the SSH Settings
https://yourdomain.com:2087/scripts2/doautofixer?autofix=safesshrestart
bsdbindfix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=bsdbindfix
Autorepair
https://yourdomain.com:2087/scripts2/doautofixer?autofix=autorepair
Compress Zlib
https://yourdomain.com:2087/scripts2/doautofixer?autofix=Compress-Zlib-1.42.tar.gz
Compresszlibfix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=compresszlibfix
dbdmysql
https://yourdomain.com:2087/scripts2/doautofixer?autofix=dbdmysql
Cooldiagnose_apache_conf
https://yourdomain.com:2087/scripts2/doautofixer?autofix=diagnose_apache_conf
fpindexfile
https://yourdomain.com:2087/scripts2/doautofixer?autofix=fpindexfile
libxml2-2.6.28.tar.gz
https://yourdomain.com:2087/scripts2/doautofixer?autofix=libxml2-2.6.28.tar.gz
libxml64fix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=libxml64fix
pro*
https://yourdomain.com:2087/scripts2/doautofixer?autofix=pro*
spamd_dbm_fix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=spamd_dbm_fix
test
https://yourdomain.com:2087/scripts2/doautofixer?autofix=test
vfilterfix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=vfilterfix
yumduprpmfix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=yumduprpmfix
resellerresourceacctounts
https://yourdomain.com:2087/scripts2/doautofixer?autofix=resellerresourceacctounts
horde_sqmail_current_fix
https://yourdomain.com:2087/scripts2/doautofixer?autofix=horde_sqmail_current_fix
No comments:
Post a Comment