Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a VPS with Centos and with firewall that I used to configure by Lxadmin. Now I don't have Lxadmin control panel and can't go to change it by web interface. How to discover what firewall I have on my machine and where is the config with blocked IP so I can remove mine?

share|improve this question
    
Your own IP is blocked on the server? –  GruffTech May 18 '10 at 16:25

2 Answers 2

up vote 1 down vote accepted

On CentOS, the default location for iptables rules are /etc/syconfig/iptables. If you want to whitelist your work IP, add this right after the -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT line:

-A INPUT -i eth0 -p tcp -s <YOUR_WORK_IP> -j ACCEPT
share|improve this answer

You can check for iptables by just typing the command

iptables

EDIT: ... can you get to a shell?

share|improve this answer
    
I'm currently trying to whitelist my work IP so I can get to my server at home. Going thru the /etc/hosts.allow, and my moblock whitelist. Just some other things that could block you. –  Joe A Aug 20 '10 at 19:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.