SliTaz SliTaz Forum

You are not logged in.

#1 2011-06-04 22:23:31

neeeko
Member
Registered: 2011-06-04
Posts: 10

OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Hello,

Got a script to start openvpn + openvpn.conf that was valid on another machine with a complete different distro on it (unknown).

AM trying to adapt this script to Slitaz but am missing : tun.ko

here it is :

#!/bin/sh

#

# Startup script for openvpn server

#

# Make sure IP forwarding is enabled

echo 1 > /proc/sys/net/ipv4/ip_forward

# Make device if not present (not devfs)

if ( [ ! -c /dev/net/tun ] ) then

  # Make /dev/net directory if needed

  if ( [ ! -d /dev/net ] ) then

        mkdir -m 755 /dev/net

  fi

  mknod /dev/net/tun c 10 200

fi

# Make sure the tunnel driver is loaded

if ( !(lsmod | grep -q "^tun") ); then

        insmod /lib/modules/tun.ko

fi

# If you want a standalone server (not xinetd), t

# return 0

## This is for standalone servers only!!!!

# Kill old server if still there

if [ -n "[c]/usr/bin/pidof openvpn[/c]" ]; then

    /bin/killall openvpn 2>/dev/null

fi

# Start the openvpn daemon - add as many daemons

/usr/sbin/openvpn /etc/openvpn/openvpn.conf

# [EOF]

Am also trying to recompile openvpn but am missing something...

configure: checking for LZO Library and Header files...

checking lzo/lzo1x.h usability... no

checking lzo/lzo1x.h presence... no

checking for lzo/lzo1x.h... no

checking lzo1x.h usability... no

checking lzo1x.h presence... no

checking for lzo1x.h... no

LZO headers were not found

Offline

#2 2011-06-04 23:06:28

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Hi,

You need lzo-dev package installed.

EDIT: I added --enable-password-save to openvpn so you will get it by default:

http://hg.slitaz.org/wok/rev/065613bca28b

Offline

#3 2011-06-04 23:10:38

neeeko
Member
Registered: 2011-06-04
Posts: 10

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

EDIT: I added --enable-password-save to openvpn so you will get it by default:

say what ?

Offline

#4 2011-06-04 23:11:54

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

tazpkg search openssl

will give you the anser...

Offline

#5 2011-06-04 23:12:12

neeeko
Member
Registered: 2011-06-04
Posts: 10

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

missing openssl-dev..OK thanks

Offline

#6 2011-06-04 23:35:39

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Openvpn package in slitaz have now: --enable-password-save

It what you need no ?

Offline

#7 2011-06-04 23:42:14

neeeko
Member
Registered: 2011-06-04
Posts: 10

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

OK so i removed the package.

I removed the package cache.

Reinstalled.

Still same : Sorry, 'Auth' password cannot be read from a file

Offline

#8 2011-06-04 23:53:15

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Commit: http://hg.slitaz.org/wok/file/28ff11e24643/openvpn/receipt

Cooker : http://cook.slitaz.org/

Cooker checks every 2 hours for commits to build.

Check server date, about 11 minutes it will be cooked ie. compiled/packaged.

tun is compiled into the slitaz kernel,there is no module

Offline

#9 2011-06-05 00:00:55

neeeko
Member
Registered: 2011-06-04
Posts: 10

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Thanks i guess i just have to be patient.

Been struggling with openvpn compilation.

All this SLiTAZ machine just coz of an issue nobody would address on Linux forums :

http://www.linuxquestions.org/questions/showthread.php?p=4375584#post4375584

http://www.linuxforums.org/forum/networking/179258-postfix-openvpn-client-how.html

Maybe the question was stupid, i dunno really. I miss some mojo...

Offline

#10 2011-06-05 00:50:38

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

I've never setup a VPN,can't advise you with postfix over openvpn.

Download the new build here:

http://cook.slitaz.org/packages/openvpn-2.2.0.tazpkg

Install as root:

#tazpkg install /path/to/openvpn-2.2.0.tazpkg --forced

Offline

#11 2011-06-05 09:32:48

neeeko
Member
Registered: 2011-06-04
Posts: 10

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Thanks a lot, works like a charm now.

Nice community here !!

smile

Offline

#12 2011-06-05 10:53:03

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

:-)

I synced the mirror now so new openvpn package is on official mirror (dont need to get from cook).

Tip of the day: last tazpkg handle short switch, ex: tazpkg -i /path/to/package.tazpkg

Offline

#13 2011-06-05 20:26:44

neeeko
Member
Registered: 2011-06-04
Posts: 10

Re: OpenVPN client, need to recompile...with --enable-password-save / LZO ?

Thx again for your help smile My SliTaz rocks !

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]