ManXP

Well-Known Member
Feb 3, 2005
62
0
156
Hi,

I need some ideas how it's possible to stop, disable, reset or uninstall APF without accesing shell. The problem is, that I was configuring ssh on one of my servers and changed ssh port. Also I removed port 22 from APF, and restarted everything.

I don't know what the hell has happened (I was doing it for many times), but I just can't connect to SSH anymore. I changed SSH port to default 22 via my browser (found command to do it), but how can I do the same with APF?

There is no WHMXtra installed, so I have no idea how to edit config file. Any comments?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You can flush iptables from within WHM using the URL:

Code:
http://11.22.33.44:2086/scripts2/doautofixer?autofix=iptablesflush
Where 11.22.33.44 is your servers IP address.
 

Anishts

Active Member
Oct 6, 2005
37
0
156
Hi

How you reset sshd port using browser..? some command ? ;)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
There's a similar URL:

Code:
http://11.22.33.44:2086/scripts2/doautofixer?autofix=safesshrestart
This will temporarily run up SSH on port 22 (if it can) but you'll still need to correct /etc/ssh/sshd_config once you get in.
 

brendanrtg

Well-Known Member
Oct 4, 2006
311
0
166
This is indeed very useful but has anyone encountered a problem where cpanel died and you are no longer able to access 2086 and 2087 while httpd is still functioning?

To make matters worst, ssh is also refusing your connections due to high mem usage by the sites involved.

How can we then force a reboot without shell or manual hands?
 
Thread starter Similar threads Forum Replies Date
X Security 6
S Security 5
Tarak Nath Security 3
B Security 3
P Security 1