Labels

lego (12) Linux (39) pi (20) Thinkpads (4)

Sunday 22 April 2012

Installing AT&T VPN Client on Linux


Instructions for 32bit and 64bit Debian and Ubuntu based distributions:  Last updated 2012-04

Info:
installed to - /opt/agns/bin

library info:
NetVPN.sh

linux-gate.so.1 =>  (0xf77d7000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf77a1000)
libssl.so.6 => not found
libcrypto.so.6 => not found
libdl.so.2 => /lib32/libdl.so.2 (0xf779d000)
libc.so.6 => /lib32/libc.so.6 (0xf7641000)
/lib/ld-linux.so.2 (0xf77d8000)
agnclientd
linux-gate.so.1 =>  (0xf776d000)
libagnLogc.so.1 => /opt/agns/lib/libagnLogc.so.1 (0xf774d000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf7734000)
libagnc.so.1 => /opt/agns/lib/libagnc.so.1 (0xf772b000)
libc.so.6 => /lib32/libc.so.6 (0xf75cf000)
/lib/ld-linux.so.2 (0xf776e000)
libxml2.so.2 => /usr/lib32/libxml2.so.2 (0xf74a5000)
libdl.so.2 => /lib32/libdl.so.2 (0xf74a0000)
libz.so.1 => /usr/lib32/libz.so.1 (0xf748c000)
libm.so.6 => /lib32/libm.so.6 (0xf7466000)
agnLogd
linux-gate.so.1 =>  (0xf773e000)
libc.so.6 => /lib32/libc.so.6 (0xf75c5000)
/lib/ld-linux.so.2 (0xf773f000)



Starting the daemons (normally starts on boot up, but you can startup on demand instead):
     
(as root)
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/agns/lib
export PATH=$PATH:.:/opt/agns/bin:/opt/agns/lib:/opt/agns/bin/skin
agnclientd
agnLogd
If you run into issues while connecting (you accidentally terminate a connection etc), restart the above services.



Connecting:

NetVPN.sh for command line
agnclient gui
agnclientd daemon

I recommend using command line to connect.  Edit NetVPN.sh, in particular these three lines:

NETVPN_ACCOUNT="***"
NETVPN_USERNAME="***"
NETVPN_PASSWORD="***"

Make sure the AT&T IP is correct:
SERVICE_MANAGER_ADDRESS="204.146.172.230"   # AT&T Production RIG

Ensuring the agnclientd and agnLogd are running;
(   ps -ef | grep agn
root      4287     1  0 Apr16 ?        00:01:02 agnclientd
root      4289     1  0 Apr16 ?        00:00:00 agnLogd
)
run (as user);
NetVPN.sh




Installing AT&T VPN client on Linux Mint Debian Edition (or other Debian or Ubuntu based distributions)64bit:
1) installing 32bit compatibility package
sudo apt-get install ia32-libs
sudo apt-get install iceweasel ia32-libs ia32-libs-gtk
2) download the client from agnclient-2.0.1-ubuntu
3) sudo dpkg –force-all -i <package.deb>
- install agnclient 
- install gtk package
- install dev package
3) install necessary libraries
sudo getlibs -p libssl0.9.8
sudo ln -s /lib32/libssl.so.0.9.8 /lib32/libssl.so.4
sudo ln -s /lib32/libssl.so.0.9.8 /lib32/libssl.so.6
sudo ln -s /lib32/libcrypto.so.0.9.8 /lib32/libcrypto.so.4
sudo ln -s /lib32/libcrypto.so.0.9.8 /lib32/libcrypto.so.6
sudo ln -s /usr/lib32/libcurl.so.4.2.0 /usr/lib32/libcurl.so.3

TIP - If get stuck authenticating:


Run ldd on NetVPN and check if all library files are setup.


TIP - When running agnclient, if you run into a GTK error:


export GTK_PATH=/usr/lib32/gtk-2.0


32bit:


sudo apt-get install tcl8.4
sudo dpkg -i  --force-architecture agnclient_1.0~2.0.1.3003-3_i386.deb
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/agns/lib
export PATH=$PATH:.:/opt/agns/bin:/opt/agns/lib:/opt/agns/bin/skin

/opt/agns/bin
NetVPN.sh for command line
agnclient gui
agnclientd daemon

7 comments:

  1. I get stuck at Authenticating when running NetVPN.sh. If I run ldd NetVPN, all dependencies are found (including libssl/libcrypto). Any ideas?

    ...10/23 15:08:06.727 [1B7C] GEN AGNC received [STATECHANGE 200]
    10/23 15:08:06.727 [1B7C] GEN AGNC STATECHANGE: '200'
    10/23 15:08:07.661 [1B65] CSC Received command: [CONNECTATTEMPTINFO E6B4F4A2]
    10/23 15:08:07.662 [1B65] CSC CONNECTATTEMPTINFO received.
    10/23 15:08:07.662 [1B65] CSC CONNECTATTEMPTINFO client ID argument: E6B4F4A2
    10/23 15:08:07.662 [1B65] CSC searching for client connection ID = [E6B4F4A2]
    10/23 15:08:07.662 [1B65] CSC sending 1209 characters to id [E6B4F4A2] at [/home/user/.agnc/agnc_7036]
    10/23 15:08:07.662 [1B7C] GEN AGNC received [CONNECTATTEMPTINFO 1184]
    10/23 15:08:07.662 [1B7C] GEN AGNC CONNECTATTEMPTINFO: '1184'
    10/23 15:08:07.663 [1B7C] GEN AGNC fread(...) returned 1 reading connection attempt info
    10/23 15:08:07.687 [1B7C] GEN agncGetConnectAttemptInfo received from daemon.

    ReplyDelete
    Replies
    1. Is it 64bit? Which distribution?

      Can you post the output for:
      ls -l /lib32/libssl*
      ls -l /lib32/libcrypto*

      Delete
  2. Okay, figured it out. ldd NetVPN is not enough. I did ldd agnslr and found that it could not find libcurl, libidn and .6 versions of ssl, etc. Finding those rpms and expanding LD_LIBRARY_PATH solved the problem. Thanks for your great article!

    ReplyDelete
    Replies
    1. Ah, ok, great that you worked it out. The libcurl got me on one of my installs. It was doing the exact same behaviour. I had to link them with:

      sudo ln -s /lib32/libssl.so.0.9.8 /lib32/libssl.so.4
      sudo ln -s /lib32/libssl.so.0.9.8 /lib32/libssl.so.6
      sudo ln -s /lib32/libcrypto.so.0.9.8 /lib32/libcrypto.so.4
      sudo ln -s /lib32/libcrypto.so.0.9.8 /lib32/libcrypto.so.6
      sudo ln -s /usr/lib32/libcurl.so.4.2.0 /usr/lib32/libcurl.so.3

      Delete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. Thank you.Good installation guide for VPN client.It works fine.
    10webhostingservice

    ReplyDelete
  5. Dear Guys,

    I was able to install the vpn successfully.

    However when I hit connect
    I get the following

    Authenticating
    Authentication succceded
    vpn program termniated

    Could you please help

    ReplyDelete