![]() |
|||||||
![]() |
|||||||
|
VPN Questions
VPN is an acronym for Virtual Private Network. It is a way for people to connect to our network securely through the Internet. You can connect your computer to our network so that it will appear as though it is a part of our network and you can run your programs off of our services (like OpenWorks, GeoFrame, and Finder).
How do I setup VPN for use with Microsoft Windows? Windows 2000:
Once this is set up, all you need to do is:
What web address do I connect to? The web address that you should be connecting to is:
Our VPN is using a protocol called PPTP (Point to Point Tunneling Protocol). It uses port 1723 (TCP). In addition to this it also uses protocol 47 which is the Generic Route Encapsulation protocol. More information from Microsoft's website.
How can I run OpenSpirit on Windows using VPN? Why am I not receiving object selection events when running OpenSpirit viewers on my PC to access data that uses OpenSpirit's VPN service? Suppose you want to run the UserServer on your Windows PC at home, dialed into work using VPN. This won't work unless you do something about the IP address that is stored in the object references to objects the UserServer hosts, like the UserProfile, Session, and ProjectSet objects. Note also that applications which receive events do so by exporting an object that is called with event information. Hence, the INT viewers (or any event consumer) will not receive events unless the IP address is fixed. Each object reference points to an object in another process, potentially running on another machine. It must contain a reference to the host machine in addition to other information that identifies the object it references. The host is identified by an IP address. When you are using VPN or when you have multiple network cards connected to separate networks, your machine has more than one IP address. The one picked up by the OpenSpirit application when it builds the object reference is arbitrary and in the case of VPN, it typically uses the IP address assigned to your machine's network adapter, not the IP address assigned to your VPN connection. The OpenSpirit services will need the object references to use the IP address assigned by the VPN host in order to communicate back to the objects running on your PC. Now you should have two essential questions:
1. Obtaining the IP address: You can obtain lots of detailed information using the ipconfig command in a DOS window. In the Start -> Run... dialog, enter the command cmd and click OK. In the DOS window that comes up, enter the command ipconfig /all It will show several IP addresses for each "adapter". You want the one labeled "IP Address" for the adapter in the VPN connection. NOTE: Your PC will likely be assigned to a different IP address each time a new VPN connection is established. You will need to use the ipconfig command to discover the new IP address and update it in any .bat files or environment variable settings that you may have set. 2. Passing the IP address to OpenSpirit applications: Running the OpenSpirit runtime client: All you need to do is modify one file in the OpenSpirit installation directory. The file is in %OSP_HOME%/bin/etc, where %OSP_HOME% is an environment variable that was set for you to the location of the OpenSpirit installation. Usually this is something like "C:\Program Files\OpenSpirit". The file is named "ospenv.bat". Look for a section that looks like the following: REM ORB values Add a new line to something like: REM ORB values Running OpenSpirit example programs (developers only): For the OpenSpirit C++ examples you need to pass "-ORBIIOPaddr" as a command line argument to the script. For example, if your script file name is runProducer.bat, it takes the arguments "-session ", and your ipaddress is 10.10.11.123, then you would start the Producer program with: runProducer.bat -session mySession -ORBIIOPAddr inet: The "-ORBIIOPaddr" arguments should end up being passed through to the osp_Connection.connect() call.
My User Server will not start when I lauch OpenSpirit from my PC via VPN. How can I start it? Use the following procedure to start your User Server manually:
/prod/spirit/osp27/bin/runUserServer.sh –log /prod/spirit/osp27/logs/UserServers/<userid>/UserServer.log start
/prod/spirit/osp28/bin/runUserServer.sh
–log ~/OpenSpirit/logs/UserServer.log start
Go back to your PC and start OpenSpirit as
you usually do; your Launcher should pop right up. If you get a timeout,
then issue the command a second time, right away.
How do I run OpenSpirit enabled vendor applications on computers using VPN or having multiple IP addresses? For JAVA based vendor applications: Same as Running the OpenSpirit runtime client v2.7 or higher. For C++ based vendor applications: By default it will start listening for events on the default IP address and randomly picks up an available port number. However on computers having multiple IP addresses sometimes we need to force the ORB to use one or more specific address and port number. In order to achieve that you have to do one of the following:
Other Notes
Requirements
If you are having problems with downloading from the above sites then you may alternately try to download from the links below. Please note, however, that the patch files are NOT completely Open-Source friendly. You are free to download and use, but not to change and redistribute without reading the various licenses that go with each item. For this information please go to the original sites listed above for more information on this. Please also note that these files may not be the latest and greatest.
Recompiling the Kernel:
Select all your normal options and under Network Device Support Check all PPP related items including the new item:
Make the kernel and modules and install them. Make the new pppd
Reboot the System Reboot the system sanely.
Install pptpclient
NOTE: Text shown in bold red font is the input you type # pptp-command
What task would you like to do?: 3
?: 1
?: 2
Add a NEW CHAP secret.
NOTE: Any backslashes (\) must be doubled
(\\).
Local Name:
This is the 'local' identifier for CHAP authentication.
NOTE: If the server is a Windows NT machine,
the local name should be your Windows NT username including domain. For
example:
domain\\username
Local Name: guest-osp\\your_user_name
Remote Name:
This is the 'remote' identifier for CHAP authentication.
In most cases, this can be left as the default. It must be set if you
have multiple CHAP secrets with the same local name and different passwords.
Just press ENTER to keep the default.
Remote Name [PPTP]: [just
hit enter]
Password:
This is the password or CHAP secret for the
account specified. The password will not be echoed.
Password: [enter
in your password]
Adding secret guest-osp\\your_user_name PPTP *****
?: 4
?: 4
Add a NEW PPTP Tunnel.
Local Name: guest-osp\\your_user_name
?: 6 Use a PPTP-specific resolv.conf during tunnel connections? [Y/n]:y
?: 8
Starting pptpclient and Testing First we start up the pptpclient via the pptp-command script. # pptp-command start
You should now be connected to our VPN and should be able to connect to the OpenSpirit network and test via ping. # ping snoopy (or at least snoopy's IP address - 10.10.11.5) |
|
|||||||||||||||||