Sign up ×
Server Fault is a question and answer site for 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?


locked by HopelessN00b Apr 9 at 19:49

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Apr 9 at 19:49

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Your own IP is blocked on the server? – GruffTech May 18 '10 at 16:25

2 Answers 2

up vote 2 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

You can check for iptables by just typing the command


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

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

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