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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux