You are not logged in.

#1 2010-03-21 17:51:24

psrivats
Member
Registered: 2010-03-21
Posts: 23

vpnc with OpenSSL

Hi Folks,

I am a longtime ubuntu user switching to Arch. Just installed Arch on my thinkpad R50p  and extremely impressed with it. I have gotten almost everything working properly but setting up vpn.

I am aware that vpnc does not come with OpenSSL. Can someone guide me for building VPNC with OpenSSL? On ubuntu, I usually get the VPNC source and uncomment the OpenSSL lines, build a debian package and install it. The procedure is:

sudo apt-get update
sudo apt-get build-dep vpnc
sudo apt-get install libssl-dev
mkdir ~/src/vpnc -p
cd ~/src/vpnc
apt-get source vpnc
cd vpnc-*
sudo gedit Makefile

These two lines need to be uncommented in the makefile

OPENSSL_GPL_VIOLATION = DOPENSSL_GPL_VIOLATION
OPENSSLLIBS = -lcrypto
dpkg-buildpackage
sudo dpkg -i ../vpnc*.deb

Looking to learn how to do this on Arch - if someone can point me the right direction, I'll be grateful!

Offline

#2 2010-03-21 17:55:20

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: vpnc with OpenSSL

Afaik our vpnc packages comes with openssl support.

And to answer your question: Look for ABS in our wiki and documentation.

Offline

#3 2010-03-21 18:22:52

psrivats
Member
Registered: 2010-03-21
Posts: 23

Re: vpnc with OpenSSL

Pierre wrote:

Afaik our vpnc packages comes with openssl support.

And to answer your question: Look for ABS in our wiki and documentation.

Thanks for pointing me to ABS - that's what I wanted.

And I just checked and you are right, vpnc does come with openssl support. I am able to connect now, but I get this error:

Device "eth0
eth0" does not exist.
SIOCSIFMTU: Invalid argument

There is a bug report in launchpad about this: https://bugs.launchpad.net/ubuntu/+sour … bug/382168

and changing line 93 in /etc/vpnc/cpnc-script to the following fixes the above issue:

 DEV=$($IPROUTE route \
                        | sed -ne 's/^default.* dev \([[:alnum:]-]\+\)\(.*metric \([0-9]\+\)\)\{0,1\}.*$/\1 \3/p' \
                        | sort -n -k2 \
                        | sed -e '1{s/^\([[:alnum:]-]\+\).*$/\1/;q}')

Last edited by psrivats (2010-03-21 18:33:36)

Offline

#4 2010-05-04 09:05:35

die13
Member
Registered: 2010-02-01
Posts: 4

Re: vpnc with OpenSSL

Thanks for this, psrivats!! Solved my Problem, too.

Offline

Board footer

Powered by FluxBB