mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DevNull43 (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FTPSERVER-349) WhiteList
Date Fri, 05 Mar 2010 00:55:27 GMT

    [ https://issues.apache.org/jira/browse/FTPSERVER-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841631#action_12841631
] 

DevNull43 commented on FTPSERVER-349:
-------------------------------------

I just found a problem with current implementation.

I made a copy from BlackListFilter to WhiteListFilter, however when NioListener starts the
filter even if not set:

            // add and update the whitelist filter
            acceptor.getFilterChain().addLast("allowIpFilter", new WhitelistFilter());
            updateWhitelistFilter();

It does the same for BlackListFilter, however for BlackList setting an empty array means allow
ALL.

However for WhiteList setting a empty array means BLOCK all.

I thought adding subnet 0.0.0.0/0 will allow all host, but is not working.

The only solution would be not to start WhiteListFilter based on some boolean. 

Any hints?



> 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
>             Fix For: 1.1.0
>
>         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.


Mime
View raw message