You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jochen Schwoerer <j....@web.de> on 2001/09/08 20:27:30 UTC

Re[2]: IP binding for server shutdown (tomcat 4)

Hello Pier,

Saturday, September 08, 2001, 8:20:30 PM, you wrote:

PF> "Jochen Schwoerer" <j....@web.de> wrote:

>> hello all,
>> 
>> does somebody know if it is possible to bind the shutdown listener of
>> tomcat 4 on a specific ip address like it is possible for connectors?

PF> I believe that for security reasons, in the upcoming version, the binding
PF> will be allowed and done only to localhost (127.0.0.1)

in our case we have a machine with multiple ip addresses and want to
run several instances on different ips but with the same control
ports.
it would be good to have the possibilty to configure the binding ip
like in the connector directive.

PF>     Pier

jochen schwoerer
j.schwoerer@web.de



Re[4]: IP binding for server shutdown (tomcat 4)

Posted by Jochen Schwoerer <j....@web.de>.
Hello Jonathan,

Sunday, September 09, 2001, 12:06:33 AM, you wrote:

JEM> Although, you can't control what IP address it binds to, you can control
JEM> what port it listens on. I'm guessing the easiest solution to your problem
JEM> would be to just set each of the different Tomcat installations up to use a
JEM> different port? I think you basically, just need to change the following
JEM> line in server.xml.

JEM> <Server port="8005" shutdown="SHUTDOWN" debug="0">

i know this solution but i think this one is not clean. we want to
keep the different instances completely independant from each other.

i have looked around a bit in the source code:
i think there must be changes in Server.java and StandardServer.java.
maybe this can be done until the final version will be released.

jochen schwoerer
j.schwoerer@web.de

JEM> Jon

JEM> ----- Original Message -----
JEM> From: "Jochen Schwoerer" <j....@web.de>
JEM> To: "Pier Fumagalli" <pi...@betaversion.org>
JEM> Cc: <to...@jakarta.apache.org>
JEM> Sent: Saturday, September 08, 2001 1:27 PM
JEM> Subject: Re[2]: IP binding for server shutdown (tomcat 4)


>> Hello Pier,
>>
>> Saturday, September 08, 2001, 8:20:30 PM, you wrote:
>>
>> PF> "Jochen Schwoerer" <j....@web.de> wrote:
>>
>> >> hello all,
>> >>
>> >> does somebody know if it is possible to bind the shutdown listener of
>> >> tomcat 4 on a specific ip address like it is possible for connectors?
>>
>> PF> I believe that for security reasons, in the upcoming version, the
JEM> binding
>> PF> will be allowed and done only to localhost (127.0.0.1)
>>
>> in our case we have a machine with multiple ip addresses and want to
>> run several instances on different ips but with the same control
>> ports.
>> it would be good to have the possibilty to configure the binding ip
>> like in the connector directive.
>>
>> PF>     Pier
>>
>> jochen schwoerer
>> j.schwoerer@web.de
>>
>>



Re: Re[2]: IP binding for server shutdown (tomcat 4)

Posted by Jonathan Eric Miller <je...@uchicago.edu>.
Although, you can't control what IP address it binds to, you can control
what port it listens on. I'm guessing the easiest solution to your problem
would be to just set each of the different Tomcat installations up to use a
different port? I think you basically, just need to change the following
line in server.xml.

<Server port="8005" shutdown="SHUTDOWN" debug="0">

Jon

----- Original Message -----
From: "Jochen Schwoerer" <j....@web.de>
To: "Pier Fumagalli" <pi...@betaversion.org>
Cc: <to...@jakarta.apache.org>
Sent: Saturday, September 08, 2001 1:27 PM
Subject: Re[2]: IP binding for server shutdown (tomcat 4)


> Hello Pier,
>
> Saturday, September 08, 2001, 8:20:30 PM, you wrote:
>
> PF> "Jochen Schwoerer" <j....@web.de> wrote:
>
> >> hello all,
> >>
> >> does somebody know if it is possible to bind the shutdown listener of
> >> tomcat 4 on a specific ip address like it is possible for connectors?
>
> PF> I believe that for security reasons, in the upcoming version, the
binding
> PF> will be allowed and done only to localhost (127.0.0.1)
>
> in our case we have a machine with multiple ip addresses and want to
> run several instances on different ips but with the same control
> ports.
> it would be good to have the possibilty to configure the binding ip
> like in the connector directive.
>
> PF>     Pier
>
> jochen schwoerer
> j.schwoerer@web.de
>
>


Re: Re[2]: IP binding for server shutdown (tomcat 4)

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Jochen Schwoerer" <j....@web.de> wrote:

> Hello Pier,
> 
> Saturday, September 08, 2001, 8:20:30 PM, you wrote:
> 
> PF> "Jochen Schwoerer" <j....@web.de> wrote:
> 
>>> hello all,
>>> 
>>> does somebody know if it is possible to bind the shutdown listener of
>>> tomcat 4 on a specific ip address like it is possible for connectors?
> 
> PF> I believe that for security reasons, in the upcoming version, the binding
> PF> will be allowed and done only to localhost (127.0.0.1)
> 
> in our case we have a machine with multiple ip addresses and want to
> run several instances on different ips but with the same control
> ports.

I don't see a valid reason on why this should be done, while I see a
potential security hazard in binding on IPs != localhost.

> it would be good to have the possibilty to configure the binding ip
> like in the connector directive.

Nope, it would not be... Because then people would play around with it, and
security is compromised... One day we'll remove that shutdown mechanism all
together....

    Pier

BTW, If you respond to one of my mailing list emails NOT to the mailing
list, but CCing me, that message will not reach the right place, meaning
that it will considered as SPAM, and go down the drain... Don't send me mail
as CC or TO if on the CC or TO there's also a mailing list.