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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to