• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tunneling Glassfish traffic through single port

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic