Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web server behind a NAT

Status
Not open for further replies.

bluedragon2

IS-IT--Management
Joined
Jan 24, 2003
Messages
2,642
Location
US
I am running standalone tomcat on a Solaris server that sits behind a NAT router. What do I need to add (to the server.xml file?) that will allow users on the other side of the NAT to be able to surf to it?

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
I don't think anything's required. I just checked ours (Tomcat on Linux) and it's just listening on 8080 and works fine.
 
When I try to access the page on the outside of the NAT using the NAT'ed address, the browser shows it is waiting for the unNATed address...

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
It sounds to me like there is something not quite right with your NAT configuration.

The device performing the NAT operation should edit the packets going through so that the destination is your private address.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
No, the NAT is just a pass through and works for older apache servers. This tomcat server is getting the request from the outside, but something just isn't right with the tomcat setup. I found this information at
but I do not think his solution is quite what I am looking for, if it is, I am not sure how to apply it. This is my first time working with tomcat so I am learning as I go.

Thanks

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
IP

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Then your browser will send HTTP headers that read, in part:

GET /some/uri HTTP/1.1
Host: your.external.ip.address
.
.
.

Apache will only care about the "Host:" header when there is more than one site on a single IP address. Tomcat, I believe, is a little more picky.




Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Here is what my server.xml connector looks like:

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="80" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="443"
acceptCount="100" debug="0" connectionTimeout="20000"
useURIValidationHack="false" disableUploadTimeout="true" />


<!-- Note : To disable connection timeouts, set connectionTimeout value to -1 -->


<!-- Define a SSL Coyote HTTP/1.1 Connector on the standard https
port. -->

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
keystoreFile=".keystore"
clientAuth="false" protocol="TLS" />
</Connector>


[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top