users@glassfish.java.net

Re: How to block a specific IP in glassfish

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 17 Jan 2008 13:52:37 -0500

Jan.Luehe_at_Sun.COM wrote:
> Jeanfrancois Arcand wrote:
>
>> Hi Cheng,
>>
>> Grrr it would have been a piece of cake if [1] allowed to pass
>> properties element, which aren't....the solution was to add the
>> org.apache.catalina.valves.RemoteAddrValve to the WebContainer, except
>> you have no way to configure the allow/denied list :-(
>
>
> Actually, we already support [allow|deny]Remote[Host|Address] as virtual
> server properties, see
>
>
> http://docs.sun.com/app/docs/doc/819-3674/6n5skvu7b?l=en&a=view&q=denyRemoteHost
>
>
> These properties are used to configure and install the valve
> Jeanfrancois has mentioned.
>

Oups :-) Great!

-- Jeanfrancois

>
> Jan
>
>
>>
>> One solution (for now) would consist of extending that class, and
>> configure the allow/denied list using System properties. I will make
>> sure we fix the issue for at least v3 as I suspect those Valves will
>> be more and more popular.
>>
>> A+
>>
>> -- Jeanfrancois
>>
>> [1]
>> http://weblogs.java.net/blog/jfarcand/archive/2006/09/extending_glass.html
>>
>>
>> glassfish_at_javadesktop.org wrote:
>>
>>> Hi,
>>>
>>> A user asked this question on Glassfish Chinese forum:
>>> http://gceclub.sun.com.cn/NASApp/sme/jive/thread.jsp?forum=22&thread=47494
>>>
>>>
>>> How to block a specific IP address, so that none of the hosted sites
>>> can be viewed from this IP? Appreciate your help.
>>>
>>> -cheng
>>> [Message sent by forum member 'cf126330' (cf126330)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=254467
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>