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 need to disable all ip address including all ports except few ip address. I want to access the server only from few ip address, i do not want to access the server from other ip address.

share|improve this question

closed as not a real question by dunxd, Ward, Wesley, voretaq7 Apr 4 '13 at 18:22

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
What have you tried? Server Fault is a site for Professional System and Network Administrators -- We expect you to have done some research, and even attempted to find a solution on your own. "Please do this for me" / "Be my Google" questions are not really appropriate here. See this Meta topic for more information on how to improve your question into one that may attract some more helpful answers. –  voretaq7 Apr 4 '13 at 18:22
add comment

1 Answer

This is explained all over the Internet and doesn't really require a question here, as it really is very easy to find via a search engine;

http://www.thegeekstuff.com/2011/01/iptables-fundamentals/

http://www.cyberciti.biz/tips/linux-iptables-examples.html

http://null.53bits.co.uk/index.php?page=iptables-notes

share|improve this answer
add comment

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