Re: Define allow IP range for one port on Tomcat

2005-05-16 Thread Peter Rossbach
Hey,
I thing you must wrote a Engine or Host Valve.
Use request.getConnector() to get the current used connector object.
As base implementation you can easy subclass ValveBase or better 
RequestFilterValve ( see RequestAddrValve and RequestHostValve as example)

Peter
Rui Monteiro schrieb:
Is it possible (and if it's, how can one do it) to configure on Tomcat
an IP range allowed to access on one port?
I have two ports (one Connector SSL and another one plain) and I want to
limit the acces to one of the ports (the plain one) to the intranet, and
the other one free from all IP limitation. 
By what I saw it seems that the definition of allowed ports must be
common to all ports where a wep application is listening is it sadly
true?

Thank you,
RF

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RV: Define allow IP range for one port on Tomcat

2005-05-16 Thread Rui Monteiro


I guess I found the answer. You just have to define an address on your
plain connector which correponds to the intranet address so from outside
this port won't be reacahable for the web app, right?
If you have better solutions please say.
Thank you anyway,
RF


-Mensaje original-
De: Rui Monteiro [mailto:[EMAIL PROTECTED] 
Enviado el: lunes 16 de mayo de 2005 11:02
Para: tomcat-user@jakarta.apache.org
Asunto: Define allow IP range for one port on Tomcat


Is it possible (and if it's, how can one do it) to configure on Tomcat
an IP range allowed to access on one port?
I have two ports (one Connector SSL and another one plain) and I want to
limit the acces to one of the ports (the plain one) to the intranet, and
the other one free from all IP limitation. 
By what I saw it seems that the definition of allowed ports must be
common to all ports where a wep application is listening is it sadly
true?

Thank you,
RF



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Define allow IP range for one port on Tomcat

2005-05-16 Thread Rui Monteiro

Is it possible (and if it's, how can one do it) to configure on Tomcat
an IP range allowed to access on one port?
I have two ports (one Connector SSL and another one plain) and I want to
limit the acces to one of the ports (the plain one) to the intranet, and
the other one free from all IP limitation. 
By what I saw it seems that the definition of allowed ports must be
common to all ports where a wep application is listening is it sadly
true?

Thank you,
RF



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]