Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

VPN and session listeners

Hi,

We have a server on a machine I can access directly (without VPN) from my localmachine. We also often use a VPN on our localmachines. I start a client on my localmachine and it's using session listeners. When I have the vpn client started and connected the session listener silently (no log on server or client) fail to receive notifications.
My local ip is 10.4.0.182, my ip assigned by the VPN is 10.10.122.32 and the server is on 10.4.0.184. We got this on the server and you can see the VPN assigned ip that shouldn't be used there:

root@server# tcpdump -i eth0 host 10.10.122.32
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
17:15:33.640606 IP 10.4.0.184.49189 > 10.10.122.32.cichlid: S 2140274607:2140274607(0) win 5840 <mss 1460,sackOK,timestamp 1066773607 0,nop,wscale 7>
17:15:36.640860 IP 10.4.0.184.49189 > 10.10.122.32.cichlid: S 2140274607:2140274607(0) win 5840 <mss 1460,sackOK,timestamp 1066776607 0,nop,wscale 7>

I use GS 7.1 premium on those machines but I started this research based on some failure reports on some machines where we still use 7.0.

Please any sugestions/solutions?

Thanks,
Lucian

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2010-06-01 09:39:17 -0600

lukeh gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

Make sure your client will have its java.rmi.server.hostname property set to have the proper machine IP the space machine can access.

Shay

answered 2010-06-01 10:05:47 -0600

shay hassidim gravatar image
edit flag offensive delete link more
0

Thanks Shay,
I realized that after posting.

answered 2010-06-02 09:27:31 -0600

lukeh gravatar image
edit flag offensive delete link more

Comments

Hi,
Another question on the topic:
We chose to add a combo box where the user chooses the IP to use, cause he can use the client to connect to a machine in the VPN or in his home network. When a selection is made there we set the rmi property so GS will use it.
The problem is that that it seems GS caches the value on the first connect. After that choosing another ip and setting the rmi property seems to have no effect on the next connect.
We have to restart the client if we need the other IP address and we don't want that. Is there a solution for this? Something like using the API to set the IP instead using the property maybe?
Thanks,
Lucian

lukeh gravatar image lukeh  ( 2010-06-23 03:07:48 -0600 )edit

Once a property is read (when the JVM started) we don't read it again. You will have to restart the client to apply new property value.

Have you tried setting the property progrematicaly and getting a new space proxy?

Shay

shay hassidim gravatar image shay hassidim  ( 2010-06-23 03:12:22 -0600 )edit

This is the question, how to set it programaticaly?

All we did was:
System.setProperty("java.rmi.server.hostname", address.getSelectedItem().toString());

lukeh gravatar image lukeh  ( 2010-06-23 03:27:50 -0600 )edit

I'm not sure Java support this. This is a JVM level setting. http://java.sun.com/j2se/1.4.2/docs/g...

You can submit an enhancement request to allow you to change this while the application is running. Not sure it will have plenty of votes. This is needed very rarely.

Shay

shay hassidim gravatar image shay hassidim  ( 2010-06-23 13:58:22 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-06-01 09:39:17 -0600

Seen: 73 times

Last updated: Jun 02 '10