Package org.jboss.netty.handler.ipfilter

Implementation of a Ip based Filter handlers.

See: Description

Package org.jboss.netty.handler.ipfilter Description

Implementation of a Ip based Filter handlers.


The main goal of this package is to allow to filter connections based on IP rules. The main interface is IpFilteringHandler which all filters will extend.

Two IP filtering are proposed:

Standard use could be as follow: The accept method must be overridden (of course you can override others).



A typical setup for ip filter for TCP/IP socket would be:
 ChannelPipeline pipeline = ...;

 IpFilterRuleHandler firewall = new IpFilterRuleHandler();
 firewall.addAll(new IpFilterRuleList("+n:localhost, +c:192.168.0.0/27, -n:*"));
 pipeline.addFirst("firewall", firewall);
 

Copyright © 2008-2015 The Netty Project. All Rights Reserved.