[CentOS] Easy way to reject all incoming packets except from certain IPs?

Wed Feb 1 15:29:15 UTC 2006
Preston Crawford <preston.crawford at gmail.com>

On Tue, 2006-01-31 at 16:38 -0800, Troy Engel wrote:
> Preston Crawford wrote:
> > Is there an easy way to reject all incoming packets except those that
> > come from certain IPs? I can't find any way via iptables or via the GUI
> 
> See this great iptables example:
> 
> http://oceanpark.com/notes/firewall_example.html
> 
> In your case it'll be a whole lot simpler, all you'll need are the
> initial drop rules for all traffic, then a rule or two to allow XYZ ip in.

Thanks!! I'll try that tonight. Or a variation. I just wanted to make
sure it was possible and easy mostly, before I started down that path.
But you gave me a good start. I appreciate it.

Preston