Please note that all the SIEpedia's articles address specific issues or questions raised by IAC users, so they do not attempt to be rigorous or exhaustive, and may or may not be useful or applicable in different or more general contexts.
Note: With the introduction of the new VPN system, much simpler and easier to use, the instructions below are now obsolete and do not work any longer. Set up and usage instructions for the new VPN can be found in the Remote VPN connection webpage in the IAC Intranet site.
VPN has become the safest and most popular method of connecting to the IAC network from home, or when traveling, etc. It replaces the old connection method that used acceso.ll.iac.es, and spare you the trouble of setting up all the required ssh tunnels.
However, the process of login in on the VPN site via Web browser and then starting Network Connect may be a little cumbersome. What you might not know is that there is a very easy and fast way to use the VPN via command line (you don't even need to type your username and password!).
Here we describe how to set it up, following the excellent tutorial provided in http://www.scc.kit.edu/scc/net/juniper-vpn/linux/. The instructions have been tested on Fedora 19 and Fedora 20, but probably they'll work for other distributions as well (with perhaps some minor modifications, for instance the cafile and certfile entries). There is also a similar method for Mac OS X, based on the "Network Connect" Application and a simple applescript, described below.
If you already logged in via browser and downloaded successfully the software when prompted, probably have in your home a directory called "~/.juniper_networks". If not, download and install the jar file following the instructions in http://www.scc.kit.edu/scc/net/juniper-vpn/linux/ (second block in item 1. under HowTo: "If the Sun Java doesn't work ...").
sudo chown root:root ~/.juniper_networks/network_connect/ncsvc sudo chmod 6755 ~/.juniper_networks/network_connect/ncsvc chmod 744 ~/.juniper_networks/network_connect/ncdiag
cd ~/bin/ wget -cNS http://www.scc.kit.edu/scc/net/juniper-vpn/linux/jnc chmod a+x jnc
mkdir -p ~/.juniper_networks/network_connect/config cd ~/.juniper_networks/network_connect/config/ nedit smoulinsky.conf (or open it with vi, emacs, etc ...)
host=vpn.iac.es user=smoulinsky password=<passwordVPN> realm=Estandar cafile=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem certfile= # The above settings for cafile and certfile work in Fedora-19 and Fedora-20, don't know about other Linux distributions.
~/bin/jnc --nox smoulinsky ~/bin/jnc stop
If you wish to access internal scratch disks in Linux desktop, the simplest way to do it is to use the SSH Filesystem (SSHFS).
First of all, install the required sshfs package (and dependencies): yum install sshfs
Then, you can define some useful aliases, for instance (bash syntax): alias s_italia="mkdir -p /home/smoulinsky/italia_s ; sshfs italia:/scratch /home/smoulinsky/italia_s" alias burdeos="mkdir -p /home/smoulinsky/burdeos ; sshfs italia:/net/burdeos/scratch /home/smoulinsky/burdeos"
Thus, ls -al /home/smoulinsky/italia_s will show the content of the /scratch/ disk in italia, while ls -al /home/smoulinsky/burdeos will list all directories in burdeos's /scratch
If you get an error message like "fuse: failed to open /dev/fuse: Permission denied", try changing the following permission: sudo chmod a+rw /dev/fuse
To unmount: "fusermount -u /home/smoulinsky/italia_s" (same for other mountpoints)
You can use Thunderbird with the same settings you use at the IAC, that is:
Once connected to the IAC network via VPN, you can get access to the floating licenses for all the licensed packages available at the IAC (IDL, Mathematica, NAG, etc.). You only need to define the relevant environment variable (as is the case for IDL) or edit a specific file holding the data of the license server (as one does for Mathematica).
For specific instructions, please get in touch with us.
The method described above won't work on Mac OS X. However, there is a procedure one can follow that allows connecting to the VPN from the command line.
vpn-mac (no extension required). Put this file in /use/local/bin, ~/bin/ or other suitable directory in your PATH. Edit it and replace "username" and "password" with your VPN credentials; also replace x.x.x.x by vpn.iac.es in the connect to line. Assign execute permission to the file, for instance chmod 755 vpn-mac. You may need to add the line #!/usr/bin/osascript as the very first line of the file, before the tell ... statement.vpn-mac. A GUI will open up, with two text fields for Username and Password. After a couple of seconds delay, the fields will autocomplete and the VPN Network Connect is activated. An icon resembling a yellow lock with three small green bars protruding should appear on your dock. sshfs package from MacPorts or HomeBrew.
We do not have much experience with Network Connect on Mac OS X. If you (IAC user) have any problems following these instructions or something does not work right, please let us know.