HOWTO: Setting up Juniper Network Connect VPN in 64bit environment

From Sabayon Wiki
Jump to: navigation, search

Juniper Network Connect - Sabayon/Gentoo Guide

If you are like me, your Linux machine is used for both work and play. I've got every alternative I need to do my work

and, sadly, a couple applications installed in WINE when there is no option left. The Juniper VPN is one of those things

that you cannot just install in WINE or find an alternative. So I bring you a solid HOWTO for those refuse to be trapped

in the realm of Windows.

Prepare the Requirements

JNC (Juniper Network Connect) only works with Java 32-bit which seems to cause us some grief in the 64-bit environment.

Lets install 32-bit java and the only browser that lets us force use of 32-bit Java. (Trust me, Opera isn't my choice, but it works)

localhost user $ sudo equo install opera emul-linux-x86-java

Now the Juniper VPN client calls some binaries. Unfortunately, they only make sure this is compatible with RedHat.

We store these files elsewhere. We need to create symlinks so the client can call the files when they need.

localhost user $ cd /sbin
localhost user $ sudo ln -s /bin/ifconfig ifconfig
localhost user $ sudo ln -s /bin/route route

Almost there! This is a VPN right? This means we need the tun/tap module. Luckily Sabayon's kernels come with it built!

Lets just load the tun/tap module using the modprobe command.

localhost user $ sudo modprobe tun

You will need to manually load this module every time you restart your PC before you use the VPN! If you do not wish to do this you can always force the module to be loaded at boot with the command below.

localhost user $ sudo echo "tun" > /etc/modules-load.d/VPN.conf

Configure Opera

We now need Opera to ONLY USE 32-BIT JAVA!

Open OPERA and go to address bar and type "opera:plugins" and set as follows!


   IcedTea-Web Plugin (using IcedTea-Web 1.3.2)


   Java(TM) Plug-in 1.6.0_45


Now you should be able to go to "" and login to your Juniper VPN!

If you plan on using this VPN frequently, you may wish to check out msjnc[1]

msjnc is a GUI that you can install on your machine that basically uses the leftover files from the Juniper VPN Client.

Instead of opening opera and logging into a webpage everytime, you can open msjnc and type your password to login to your VPN.

It does require some initial setup, but isn't difficult and doesn't require Java or Opera after JNC has been run once.