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.
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/
Attribution
Source : Link , Question Author : Raja , Answer Author : jwbensley