LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Juniper Networks - Network Connect Function (https://www.linuxquestions.org/questions/linux-networking-3/juniper-networks-network-connect-function-860064/)

szboardstretcher 02-01-2011 02:00 PM

Juniper Networks - Network Connect Function
 
I have recently started using Network Connect by Juniper on my Fedora 14 laptop. It took a while to get it to work correctly. So, here is the function I made to allow me to use Network Connect quickly.
Code:

NCremote() {
        cd /home/bs/.juniper_networks/network_connect;
        echo "Signing into somewhere.com"
        echo "Rememeber to escape your password!"
        read -p "Username: " user
        read -p "Password: " pass
        java -jar NC.jar -h 123.43.22.11 -u $user -p $pass -f ../somewhere.com.cert -r "Realm Name" &
        cd ;}

Important things to note. You will have to export the certificate from the site, you can use firefox to do that. The '-r' parameter requires the *actual* name of the realm you want to authenticate against.

You will also have to run firefox, go to the network connect site, click the button and let it install first. If it doesn't *make sure* that you have ALL adblock addons disabled.

-Nw- neX 02-02-2011 08:26 PM

I've been trying to get this to work on my Ubuntu 10.10 install for a little while now using the script that Madscientist provides. No luck yet. I'll have to give yours a try. Thanks for posting!

I'm going to give your method a try.

Is this a function that you are putting in your .bashrc/.bash_profile?

szboardstretcher 02-07-2011 09:25 AM

Quote:

Originally Posted by -Nw- neX (Post 4246530)
I've been trying to get this to work on my Ubuntu 10.10 install for a little while now using the script that Madscientist provides. No luck yet. I'll have to give yours a try. Thanks for posting!

I'm going to give your method a try.

Is this a function that you are putting in your .bashrc/.bash_profile?

Yes. You can add it to either of those. Good luck.

A colleague was using Ubuntu, and needed the NCremote as well, we eventually gave up. I didn't have the time to help...

Eccentric.Ash 04-13-2011 03:34 PM

Success - Network Connect on Ubuntu
 
Quote:

Originally Posted by szboardstretcher (Post 4250845)
Yes. You can add it to either of those. Good luck.

A colleague was using Ubuntu, and needed the NCremote as well, we eventually gave up. I didn't have the time to help...

A relative noob to Linux, I have been trying to get Network Connect working on 32 bit Ubuntu 10.04 using Firefox 4.0 for the past week with no success. In the process I have read a lot of forums and tried a lot of things.

Here is what my problem was :
1) Login to my company VPN site successfully using username, password1(active directory) password2(RSA pin)
2) Click on the Network Connect "Start" button, the applet loading page comes up for a short time and then takes me back to the previous page without the NC popup.

I tried Mad Scientist's script, which almost got me connected, but authentication failed since our company uses two passwords (active directory and RSA pin). The script was only asking for RSA pin, and I got failure stating "Invalid Credentials". But this did get the NC popup going.

I read elsewhere that this issue may be caused by Firefox, so I installed Google Chrome and Voila! it worked perfectly. I see the NC connect popup and am able to access the company intranet.
I am running 2.6.32-30-generic-pae #59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011 i686 GNU/Linux.

Also during my reading, I came across this post which details how to connect using 64 bit Linux and two passwords.

I hope this helps.


All times are GMT -5. The time now is 06:35 PM.