First of all THANK You very much for your effort.
I managed to get it working on Ubuntu 12.04 32.
But there is one catch...
Is it possible to use your script from behind proxy ?
If the connection in direct, no problem at all...
But my network must be routed through proxy and I can't get the script to work...
Thanks for your attention.
I try to set up juniper vpn following Mad scientist's instruction in Ubuntu 12.04 64-bit but running into problem. I got an error message "Invalid Credentials" when connecting. The ncui.log gives the following error message:
20120601162348.464931 ncui[p6632.t6655] dsclient.info state: kStateSignin (dscli
20120601162348.465032 ncui[p6632.t6655] dsclient.info --> GET /dana-na/auth/%28p
20120601162348.480670 ncui[p6632.t6655] dsclient.info <-- 302 https://vpn.unh.ed
20120601162348.480771 ncui[p6632.t6655] dsclient.info state: kStateWelcome (dscl
20120601162348.480836 ncui[p6632.t6655] dsclient.info --> GET /dana-na/auth/welc
20120601162348.565937 ncui[p6632.t6655] dsclient.info <-- 302 https://vpn.unh.ed
20120601162348.566078 ncui[p6632.t6655] dsclient.info state: kStateLogin (dsclie
20120601162348.566150 ncui[p6632.t6655] dsclient.info --> POST /dana-na/auth/log
20120601162348.656109 ncui[p6632.t6655] dsclient.info <-- 302 https://vpn.unh.ed
20120601162348.656265 ncui[p6632.t6655] dsclient.error state login failed, error
20120601162348.656717 ncui[p6632.t6655] ncapp.error Failed to connect/authentica
te with IVE. Error 104 (ncapp.cpp:179)
I am a newbie in Ubuntu, and any help will be greatly appreciated.
thanks a lot mad scientist...I was becoming mad too.
And my co-worker is still not able to use juniper on his mac. Loving this
For those who have a 64bit like me. Follow this instruction for java i386 installation (I am not sure that someone have already post it....I was too nervous in reading the post):
Thanks for the input. I actually have the 32-bit java installed, both OpenJDK and Oracle give the same error.
After googling around, the method in this post works:
I have successfully used Network Connect based on DVO's script in Ubuntu 12.04 Precise Pangolin 64 bit.
First of all one needs Sun Java 1.6 32 and 64 bit versions. These versions are no longer supported ny Ubuntu but one can find them through oracle.
The files to download are:
Now place them in /usr/lib/jvm
sudo cp jdk-6u32-linux-i586.bin /usr/lib/jvm
sudo cp jdk-6u32-linux-x64.bin /usr/lib/jvm
Now one must install the 32 bit version and change the name of the directory:
sudo chmod a+x jdk-6u32-linux-i586.bin
sudo mv jdk1.6.0_32/ i32jdk1.6.0_32
sudo chmod a+x jdk-6u32-linux-x64.bin
Now both java versions are installed. Now based on DVO go to:
sudo mv java java.orig
Now add the java file with:
sudo vi java
The last thing is to set the firefox plugin:Code:#!/bin/bash if [ $3x = "NCx" ] then /usr/lib/jvm/i32jdk1.6.0_32/jre/bin/java "$@" else /usr/lib/jvm/jdk1.6.0_32/jre/bin/java.orig "$@" fi
ln -s /usr/lib/jvm/jdk1.6.0_32/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
This should get NC to work on your Ubuntu 12.04 64 bit!
Great job DVO!
I have tried to get this working on 10.04, 64-bit. The config looks as follows:
Code:$ java -version java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)I have NC Version: 7.1R4 in ~/.juniper_networks/network_connect/ and an NCLinuxApp.jar in ~/.juniper_networks/Code:$ /home/juzer/.juniper_networks/network_connect/ncdiag -A NC Diagnostics for Linux. Version 1.0. Release Date/Time: Sep 7 2011 22:16:41 +==============================================================================+ | Tests: | Results: | +==============================================================================+ o NC Installation Check Failed o NC Diagnostics NC Service Not Running NC Driver Test Passed NC Tunnel Test Not established o Host Details Hostname inox Domainname (none) IP Routing Enabled No IP Loopback test Error 2: Address already in use Passed Nameserver Details 192.168.100.1 Ping Passed Gateway Ping Test 192.168.100.1 Ping Passed o Network Connection Diagnostics Interface: lo IP Address: 127.0.0.1 Netmask: 255.0.0.0 MTU: 16436 Interface: eth0 IP Address: 192.168.100.100 Netmask: 255.255.255.0 Broadcast: 192.168.100.255 MTU: 1500 o Route Info Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.100.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 eth0 Finished running tests +==============================================================================+
When I start ~/junpiernc (after --deconfig), it asks for the necessary entries and then shows the following information: "The Network Connect GUI needs a 32-bit Java - Ignoring 64-bit Java from $PATH (usr/bin/java)."
As I have tried to get this working for hours (partially becuase not reading some instructions carefully, I have to admit), I have no ideas anymore.
I see that NC seems to be not installed, but I have no idea what I should do in order to correct that. When I start junipernc I get a java window, and the first error I see in the GUI log viewer is like:
"ncp.error ncpEstablish ive xxxxxx with context 0x8a125b0"
I am not sure if I have the right java, or if the NC is installed but honestly I am very confused by the many information I gathered so far. I would very much appreciate if someone could point me to the right direction from this point, if possible based on the information I provided above.
You are missing 32 bit java.
You need to have both (64 and 32).
The instructions on my previous post should work for 10.04 as well.
Did you follow the directions in the very first post on this thread? If you had you wouldn't be getting this error