• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tunneling Glassfish traffic through single port  RSS feed

 
Dominic Plangger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Community

I am looking for a way to tunnel all Glassfish traffic through a single port. This is needed as the glassfish client is usually behind a firewall that allows outgoing traffic only to one port (e.g. port 80).
In particular, that would be the JMS and IIOP traffic, that has to be routed through the same port. Does anybody have an idea how to solve this? Preferably while keeping the Glassfish authentication intact.

PS: I posted this question on SO a few weeks ago, but have not received any solutions since then. Therefore I was hoping to find the solution here.
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just an idea you can explore - configure iptables on the server to examine all TCP packets coming in on port 80 and route them to appropriate HTTP / JMS / IIOP ports.
You'll probably have to first capture and analyze some network traffic to find out how to detect if a packet is HTTP, IIOP or JMS.


 
Dominic Plangger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is an interesting idea. I will dig deeper into that but I have the suspicion that it is not easy to have the client and the glassfish server use different ports for the same protocol. I think that Glassfish informs the client about which port to use, at least for JMS.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!