Home > Slackware > OpenVPN 2.1_rc15 at Slackware 12.1

OpenVPN 2.1_rc15 at Slackware 12.1

I had several failures  with the 2.1_rc15 mainly with the memory error issue.

anyway, if you got so far, you have compiled the OpenVPN 2.1_rc15  with no erros,
but you end with this in the server/client.log  : OpenVPN: Out of Memory
SOLUTION:
you have to increase the default kernel value of  max locked memory  to like 16384
slackware rc.openvpn script:
#!/bin/sh
ulimit -l 16384
what=”server
if [ “${1}” == “start” ]
then
if [ -f “/etc/openvpn/${what}.conf” ]
then
modprobe tun
/usr/local/sbin/openvpn –dev tun0 –cd /etc/openvpn/ –daemon –config /etc/openvpn/${what}.conf
else
echo “There is not config file!!!! ”
fi
elif [ “${1}” == “stop” ]
then
vpnPID=$(ps ax | grep ${what} | grep -v grep | sed ‘1!d’ | awk ‘{print $1}’)
if [ “${vpnPID}” != “” ]
then
kill -9  ${vpnPID}
else
echo “${what} openVPN process has not been found …”
fi
#rmmod tun
else
echo “Please use the command ${0} start | stop”
fi
hope this will save some time of yours

Advertisements
Categories: Slackware Tags: , ,
  1. Jay
    February 21, 2009 at 6:39 am

    From this post, “ulimit -l 16384” helps me a lot while running our server daemon.
    Thank you very much.

  2. Ryan
    February 26, 2009 at 2:10 am

    Thanks, the ulimit mention here probably saved me an hour or two of troubleshooting.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: