Installation:
- Install jre 7 32 bit, any version. Recommended Oracle JRE instead of OpenJRE
ln -s /path/to/jre/lib/i386/libnpjp2.so $HOME/.mozilla/plugin/
- Install whatever packages containing route and ifconfig
On archlinux, it means the net-tools - Install lib32-xrender, which is needed by the stupid GUI
Now, my system is a 64bit archlinux. You need to edit /etc/pacman.conf, and uncomment the multi-lib section to allow multilib to be installed.
- Grab the bin32-jre from AUR, do a quick makepkg -s --asroot to install them
- link only for local user. The others may not need jre 32bit
- pacman -S net-tools
- pacman -S lib32-libxrender
Configuration:
- Get the ncLinuxApp.jar
- Get your VPN gateway cert + Realm
- Configure ncsvc
- Run it
1. Get ncLinuxApp.jar
Go to your VPN gateway with firefox. The reason why we link the 32bit jre is for firefox to start and download ncLinuxApp.jar for you. Login with your username/password combination, and click the "Start" button to start the download. You may have to agree to run the app from your gateway. Once the app is finished running, you should see a $HOME/.juniper_network/ directory with all the downloaded content
2. Get VPN cert and Realm
Again, visit your VPN gateway. Now, right-click on the page, and select "View Page Info". Click on the Security Tab.
Now, click View Certificate; then Details, then Export. Now, save that cert using DER format.
Close all poped up windows. Stay at the VPN gateway, right click and 'View source'. Ctr-F to find "realm". This will show your Realm
3. Configure ncsvc
Now, open up a terminal. cd into $HOME/.juniper_networks. You will see ncLinuxApp.jar. Use your favorite tool to unzip that. You will find NC.jar and ncsvc.
- sudo chown root:root ncsvc
- sudo chmod 4755 ncsvc
You may need to ldd ncsvc to make sure you have all the libraries installed.
That's it
That's it
4. Run and connect:
cd into your Juniper App directory.
/path/to/jre32/bin/java -jar NC.jar -h your.vpn.gw
-u username -f /path/to/certificate -r "your realm" -L 5
You can cleanly script the last few three steps to make it more robust. However, I find that a little overkill
2 comments:
Good manual.
Check this site.
top10-bestvpn.com
Thanks for helpful manual.
It works fine.
Nice post about Juniper and VPN.
10webhostingservice
Post a Comment