Page 51 of 55 FirstFirst ... 414950515253 ... LastLast
Results 501 to 510 of 544

Thread: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

  1. #501
    Join Date
    Jul 2007
    Beans
    6
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Awesome work, I have been using your script for the past year and am really glad to have a version without the need for java.

    I would like to note that a fresh install of Ubuntu 12.04.1 already includes the libgtk2-perl package. However I did need to install the libwww-perl package after seeing the following message:

    Can't locate LWP/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./msjnc line 53.
    BEGIN failed--compilation aborted at ./msjnc line 53.

  2. #502
    Join Date
    Aug 2006
    Location
    Pawtucket, RI
    Beans
    37
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: New Juniper NC utility available

    Quote Originally Posted by madscientist View Post
    Hi all. First the good news. I decided to completely rework the script that I have, and write it in Perl/GTK2 as a complete and separate UI to the Juniper Network Connect that replaces the Java UI that comes from Juniper.
    I had been using an older version of the script until about last Wednesday, but then it stopped working. Before that it was working fine for me on both 32-bit and 64-bit 12.04 systems.

    So I tried the new version of the script. I like the fact that it gets Java out of the loop. It works fine on the 64-bit system, but for the 32-bit system it is getting stuck somehow. It says "connecting."

    In .juniper_networks/network_connect/ncsvc.log I see:

    IpcConn.error bind failed to port 443. Error 98 (ncipc.cpp:75)

    and then a bunch of


    20120902110504.536907 ncsvc[p26863.t26863] dsncuiapi.error sendMesage failed (dsncuiapi.cpp:180)


    Any ideas? Firefox is able to connect.

  3. #503
    Join Date
    Mar 2007
    Beans
    28
    Distro
    Ubuntu 11.04 Natty Narwhal

    Lightbulb Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Quote Originally Posted by tonyuprm View Post
    This should get NC to work on your Ubuntu 12.04 64 bit!

    Great job DVO!

    Thanks,
    You're welcome! Here is an update of my original post for Ubuntu 12.04
    with a more convenient way of installing Oracle Java 7 for amd64 systems in both the 64-bit and 32-bit variant:

    Code:
    sudo apt-get install oracle-java7-installer
    sudo add-apt-repository "deb http://download.tuxfamily.org/arakhne/ubuntu precise-arakhne universe"
    wget http://download.tuxfamily.org//arakhne/public.key -O - | sudo apt-key add -
    sudo apt-get install ia32-oracle-java7-jre
    Then create/install the wrapper script as follows:
    Code:
    sudo mv /usr/lib/jvm/java-7-oracle/jre/bin/java{,.orig}
    sudo cat >/usr/lib/jvm/java-7-oracle/jre/bin/java << EOI
    #!/bin/bash
    if [ "$3" = "NC" ]
    then
      /usr/lib/jvm/ia32-java-7-oracle/jre/bin/java "\$@"
    else
      /usr/lib/jvm/java-7-oracle/jre/bin/java.orig "\$@"
    fi
    EOI
    sudo chmod ugo+x /usr/lib/jvm/java-7-oracle/jre/bin/java
    Note that this method works independently of how the user authentication is done, i.e., using passwords, smartcards, etc.

    Regards,
    David von Oheimb
    Last edited by dvo; September 11th, 2012 at 12:27 PM. Reason: Added remark on smart cards

  4. #504
    Join Date
    Mar 2007
    Beans
    28
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question Re: New Juniper NC utility available

    Quote Originally Posted by madscientist View Post
    Hi all. First the good news. I decided to completely rework the script that I have, and write it in Perl/GTK2 as a complete and separate UI to the Juniper Network Connect that replaces the Java UI that comes from Juniper.
    Nice, but it is worth noting that this script, like its predecessors, is not applicable in cases where the user needs to authenticate with a smart card (rather than with a password).
    Or do you see a chance of integrating smart card libraries and pcscd?

  5. #505
    Join Date
    Sep 2007
    Location
    Norway
    Beans
    27
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Is it possible that the network-manager-vpnc package will support the Juniper Secure Access VPN sometime in the future? It would be nice to be able to be able to set this up in NM.

  6. #506
    Join Date
    Jun 2006
    Beans
    22

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Quote Originally Posted by basarix View Post
    after finally getting the java working, i get the juniper applet popup thingy up, it connects but immediately after it exits, that is both thru the junipernc script from madscientist and from the firefox plugin, the error i am getting is the following:

    20120721135121.507201 ncui[p4463.t4493] ncapp.info New ncapp log level set to 3 (nccommon.cpp:75)
    20120721135121.507269 ncui[p4463.t4493] ncapp.info Version : 7.1
    Release Version : 7.1-0-Build18853
    Build Date/Time : Jul 13 2011
    Copyright 2001-2010 Juniper Networks
    (ncapp.cpp:153)
    20120721135121.553874 ncui[p4463.t4493] dsclient.info state: kStateSignin (dsclient.cpp:256)
    20120721135121.553913 ncui[p4463.t4493] dsclient.info --> GET / (authenticate.cpp:179)
    20120721135121.568433 ncui[p4463.t4493] dsclient.info <-- 302 https://as.afip.gov.ar/dana-na/auth/url_0/welcome.cgi (authenticate.cpp:211)
    20120721135121.568465 ncui[p4463.t4493] dsclient.info state: kStateWelcome (dsclient.cpp:264)
    20120721135121.568477 ncui[p4463.t4493] dsclient.info --> GET /dana-na/auth/url_0/welcome.cgi (authenticate.cpp:179)
    20120721135121.687170 ncui[p4463.t4493] dsclient.info <-- 200 (authenticate.cpp:211)
    20120721135121.687263 ncui[p4463.t4493] dsclient.info state: kStateLogin (dsclient.cpp:296)
    20120721135121.687338 ncui[p4463.t4493] dsclient.info --> POST /dana-na/auth/url_0/login.cgi (authenticate.cpp:179)
    20120721135121.978096 ncui[p4463.t4493] dsclient.info <-- 302 https://as.afip.gov.ar/dana/home/starter0.cgi?check=yes (authenticate.cpp:211)
    20120721135121.978134 ncui[p4463.t4493] dsclient.info --> GET /dana/home/starter0.cgi?check=yes (authenticate.cpp:179)
    20120721135122.128123 ncui[p4463.t4493] dsclient.info <-- 200 (authenticate.cpp:211)
    20120721135122.128195 ncui[p4463.t4493] authStateLogin.info starter0.cgi has asked for tz_offset parameter (authenticate.cpp:372)
    20120721135122.128220 ncui[p4463.t4493] authStateLogin.info starter0.cgi has asked for clienttime parameter (authenticate.cpp:379)
    20120721135122.128256 ncui[p4463.t4493] dsclient.info --> POST /dana/home/starter0.cgi?check=yes (authenticate.cpp:179)
    20120721135122.222343 ncui[p4463.t4493] dsclient.info <-- 302 /dana/home/starter.cgi (authenticate.cpp:211)
    20120721135122.222392 ncui[p4463.t4493] dsclient.info --> GET /dana/home/starter.cgi (authenticate.cpp:179)
    20120721135122.303964 ncui[p4463.t4493] dsclient.info <-- 200 (authenticate.cpp:211)
    20120721135122.304034 ncui[p4463.t4493] dsclient.info state: kStateAuthenticated (dsclient.cpp:376)
    20120721135124.511130 ncui[p4463.t4493] IpcConn.error recv failed with errno 22 (ncipc.cpp:273)
    20120721135124.534406 ncui[p4463.t4493] ncui.error Got signal 17 (ncui.cpp:278)



    any help with this would be greately appreciated
    I don't know if you got this sorted out or not. I ran into this problem today and seemed to be because my resolv.conf file was missing. I must have done something to it when trying to fix it after disconnecting from the VPN. To fix it, I re-touched the resolv.conf file and tried again and it worked.

  7. #507
    Join Date
    Sep 2012
    Beans
    1

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Hi, I am not really a linux expert but I am trying to get this to work so that I can ditch my work Windows laptop so any help would be much appreciated.

    Here is what I have in my log file:

    20120918081805.26750 ncsvc[p2729.t2729] ncsvc.info New ncsvc log level set to 3 (nccommon.cpp:75)
    20120918081805.26853 ncsvc[p2729.t2729] sysdeps.info restoring DNS settings... (sysdeps.cpp:796)
    20120918081805.26890 ncsvc[p2729.t2729] sysdeps.error rename /etc/jnpr-nc-resolv.conf => /etc/resolv.conf failed wirh error 2 (sysdeps.cpp:799)
    20120918081805.26909 ncsvc[p2729.t2729] sysdeps.error rename /etc/jnpr-nc-hosts.bak => /etc/hosts failed wirh error 2 (sysdeps.cpp:803)
    20120918081807.40143 ncsvc[p2729.t2729] ncsvc.info Connecting to user2.uk.daiwacm.com:443 (ncsvc.cpp:494)
    20120918081809.234122 ncsvc[p2729.t2729] dsclient.info state: kStateSignin (dsclient.cpp:248)
    20120918081809.234199 ncsvc[p2729.t2729] dsclient.info --> GET / (authenticate.cpp:162)
    20120918081809.274148 ncsvc[p2729.t2729] dsclient.info <-- 302 https://xxxxx.xx.xxxxxx.com/xxxxx/au...24/welcome.cgi (authenticate.cpp:194)
    20120918081809.274203 ncsvc[p2729.t2729] dsclient.info state: kStateWelcome (dsclient.cpp:256)
    20120918081809.274218 ncsvc[p2729.t2729] dsclient.info --> GET /dana-na/auth/url_24/welcome.cgi (authenticate.cpp:162)
    20120918081810.790846 ncsvc[p2729.t2729] dsclient.info <-- 200 (authenticate.cpp:194)
    20120918081810.790926 ncsvc[p2729.t2729] dsclient.info state: kStatePreAuth (dsclient.cpp:264)
    20120918081810.790941 ncsvc[p2729.t2729] dsclient.info --> GET /dana-na/auth/url_24/welcome.cgi (authenticate.cpp:162)
    20120918081811.31548 ncsvc[p2729.t2729] dsclient.info <-- 200 (authenticate.cpp:194)
    20120918081811.31628 ncsvc[p2729.t2729] dsclient.info state: kStateCacheCleaner (dsclient.cpp:280)
    20120918081811.31652 ncsvc[p2729.t2729] dsclient.info --> POST /dana-na/cc/ccupdate.cgi (authenticate.cpp:162)
    "ncsvc.log" [readonly] 38L, 4106C 1,1

    Is the root of the problem the failed renames? I cannot find the jnpr-nc-resolve.conf or jnpr-nc-hosts.bak files anywhere. Where should they be obtained from?

    Thanks,
    Dave

  8. #508
    Join Date
    Nov 2006
    Beans
    1

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Has anyone had success with this on 12.10? It was working fine on 12.04 but I can not connect after upgrading.

    Thanks

  9. #509
    Join Date
    Aug 2006
    Location
    Pawtucket, RI
    Beans
    37
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Quote Originally Posted by stl314159 View Post
    Has anyone had success with this on 12.10? It was working fine on 12.04 but I can not connect after upgrading.

    Thanks
    I can connect after upgrading. I didn't do anything special.

  10. #510
    Join Date
    Sep 2007
    Location
    Norway
    Beans
    27
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: HOWTO set up Juniper Network Connect VPN on Ubuntu Dapper

    Neither do I. I get this message when running ~/.juniper_networks/network_connect/ncsvc:

    Code:
    ncsvc> Failed to setuid to root. Error 1: Operation not permitted
    My /home is not mounted with nosuid or anything, bit it is encrypted with ecryptfs though, and I think that might be the problem.
    Last edited by karlstad; October 31st, 2012 at 01:15 PM. Reason: Added info about encrypted home directory.

Page 51 of 55 FirstFirst ... 414950515253 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •