Date: Mon, 27 Jun 2005 16:05:33 -0700 From: Drew Tomlinson <drew@mykitchentable.net> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: How to Start OpenVPN? Message-ID: <42C0863D.2000003@mykitchentable.net>
next in thread | raw e-mail | index | archive | help
I installed OpenVPN 2.0 via the ports on a 4.11 machine. I can start it just find by these two steps: 1. cd /usr/local/etc/openvpn 2. openvpn server.conf & The OpenVPN man page suggests that using the '--daemon' switch will make OpenVPN run as a daemon but it doesn't work for me. No error message but no process started. There are no entries in the log file. The port installed /usr/local/etc/rc.d/openvpn.sh.sample. I've looked at the script but all it does is start the tun interface. Thus I have attempted to modify it to include actually starting the OpenVPN daemon. Here is my script: case x$1 in xstart) echo -e "Starting OpenVPN\n" ; exec kldload if_tap ; openvpn --daemon \ --cd /usr/local/etc/openvpn \ --writepid /var/run/openvpn.pid \ --config server.conf.nogateway ;; xstop) echo -e "Stopping OpenVPN\n" ; exec kldunload if_tap ; kill `cat /var/run/openvpn.pid` ; rm /var/run/openvpn.pid ;; *) echo >&2 "Usage: $0 {start|stop}" esac Can anyone tell me my error? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C0863D.2000003>