I am locked out from my own server

uberguru

Verified User
Joined
Apr 30, 2011
Messages
97
I was transfering files over FTP on 2 user accounts
and all of a sudden lost connection that never came back
at first i thought the host locked me out

Now i see it is the firewall on my server
Now this never happened to me before so not sure how this happened
I have csf firewall and not sure if it is directadmin firewall bruteforce or csf that blocked my home ip address

I was able to SSH in from another location and checked my ip address in iptables and there you go it is there

Now i tried to delete my IP from iptables but it doesnt get deleted

What do i do from here?

Thanks
 
It may be a temporany ban, you can check /etc/csf/csf.deny for permanent block or disable the firewall using csf -x

Regards
 
It may be a temporany ban, you can check /etc/csf/csf.deny for permanent block or disable the firewall using csf -x

Regards
I did check and my ip is in the file /etc/csf/csf.deny and it is not temporary because its over 24 hours..am not sure how long is temporary and like i said this never happened to me before

So how do i remove my IP?
I commented it out but still cant get in? Do i need to restart something?

Thanks
 
Yes, you need to restart csf running csf -r

And you can remove that line, have no sense just comment it, also if you have a static IP you can just add it to /etc/csf/csf.allow and restart csf

Regards
 
Back
Top