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 "/usr/bin/pidof openvpn
" ]; 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