[
https://issues.apache.org/jira/browse/FTPSERVER-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839300#action_12839300
]
DevNull43 commented on FTPSERVER-349:
-------------------------------------
Needs spring integration.
For using as embeded:
// Create listener
ListenerFactory factory = new ListenerFactory();
// set WhiteList subnets
factory.setAllowedSubnets(customWhiteList());
customWhiteList does:
private List<Subnet> customWhiteList(){
String[] blocks = {"127.0.0.0/16", "192.168.1.0/8"};
List<Subnet> subnets = new ArrayList<Subnet>();
for (String block : blocks) {
subnets.add(parseSubnet(block));
}
return subnets;
}
And of course parseSubnet is taken
from org/apache/ftpserver/config/spring/ListenerBeanDefinitionParser.java
> WhiteList
> ---------
>
> Key: FTPSERVER-349
> URL: https://issues.apache.org/jira/browse/FTPSERVER-349
> Project: FtpServer
> Issue Type: Improvement
> Components: Server
> Affects Versions: 1.0.3
> Reporter: DevNull43
> Priority: Trivial
> Attachments: WhiteList.txt
>
>
> WhiteList filer
> Restricting access to FTP based on a WhiteList
> BlackList -> Allow all, Deny some.
> WhiteList -> Deny all, Allow some.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.