You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/10/19 01:36:56 UTC
[Bug 54027] New: isapi send request to outside address instead of
internal address if server is in NAT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54027
Priority: P2
Bug ID: 54027
Assignee: dev@tomcat.apache.org
Summary: isapi send request to outside address instead of
internal address if server is in NAT
Severity: critical
Classification: Unclassified
Reporter: rlin@sun.superprism.net
Hardware: DEC
Status: NEW
Version: 1.2.37
Component: isapi
Product: Tomcat Connectors
1, win server 2008 R2 is placed within NAT. It's outside address is
xxx.xxx.xxx.xxx and inside address is 192.168.1.142
2, IIS virtual host binding -
192.168.1.142:80:VHnode.domain.com
3, tomcat and isapi and IIS are all on the same server
w3wp.exe - isapi_redirector (1.2.37)
sends request to outside ip address - xxx.xxx.xxx.xxx:8009
instead of 192.168.1.142:8009
Further investigation:
jk_connect.c
jk_resolve() /* your comment - If found host[] has also characters we
should make name to IP resolution */
However, the binding string is
192.168.1.142:80:VHnode.domain.com
if name is taken to resolve from DNS, it will get outside
address xxx.xxx.xxx.xxx not 192.168.1.142
It should get BINDING address instead of DNS address.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54027] isapi send request to outside address instead of
internal address if server is in NAT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54027
--- Comment #1 from rlin@sun.superprism.net ---
1, For locahost, or computername.domain.com, it is resolved to
computername:8009 and it is working fine.
2, For 2nd virtual host VHnode.domain.com, it is resolved to
xxx.xxx.xxx.xxx:8009 and it is not working right.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54027] isapi send request to outside address instead of
internal address if server is in NAT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54027
rlin@sun.superprism.net changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54027] isapi send request to outside address instead of
internal address if server is in NAT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54027
--- Comment #4 from rlin@sun.superprism.net ---
some other strange things:
On server, http://VHNode.domain.com:8081/ and http://192.168.1.x:8081/ work as
it is designed. the call went to tomcat directly.
On other machine, http://VHNode.domain.com:8081/ and http://192.168.1.x:8081/
do not work. the SYNC call does not get any responses from anywhere. it seems
tomcat ignores.
( I use ethereal on PC and netstat -b on server to trace the stat.)
This does not affact users visiting but just wonder if it is designed this way.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54027] isapi send request to outside address instead of
internal address if server is in NAT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54027
--- Comment #2 from Mladen Turk <mt...@apache.org> ---
Does it works if you put
xxx.xxx.xxx.xxx VHnode.domain.com
directly inside hosts file (hope you know where that file is)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54027] isapi send request to outside address instead of
internal address if server is in NAT
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54027
--- Comment #3 from rlin@sun.superprism.net ---
Thank you, that alternative solution is what we did to make it work right now.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org