You are not logged in.
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
Offline
EDIT: I added --enable-password-save to openvpn so you will get it by default:
say what ?
Offline
missing openssl-dev..OK thanks
Offline
OK so i removed the package.
I removed the package cache.
Reinstalled.
Still same : Sorry, 'Auth' password cannot be read from a file
Offline
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
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
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
Thanks a lot, works like a charm now.
Nice community here !!

Offline
:-)
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
Thx again for your help
My SliTaz rocks !
Offline
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]