Solved I tried to use OpenVPN but I can't set password at daemon

I have problem with OpenDNS. I tried set password at daemon but I can't. I tried to add auth-user-pass /usr/local/etc/openvpn/auth.conf to VPN config file but it doesn't work. I tried to search solutions on web but I can't find a working solution.

Please help.

Code:
/usr/local/etc/openvpn # service openvpn start
/usr/local/etc/rc.d/openvpn: DEBUG: checkyesno: openvpn_enable is set to YES.
/usr/local/etc/rc.d/openvpn: DEBUG: load_kld: if_tun kernel module already loaded.
Starting openvpn.
/usr/local/etc/rc.d/openvpn: DEBUG: run_rc_command: doit: /usr/local/sbin/openvpn  --cd /usr/local/etc/openvpn --daemon openvpn --config /usr/local/etc/openvpn/vpnbook-euro1-tcp443.ovpn --writepid /var/run/openvpn.pid
/usr/local/etc/rc.d/openvpn: WARNING: failed to start openvpn

"Sorry, 'Auth' password cannot be read from a file"

The OpenVPN default is for read Login/Password from file to be disabled, so the solution is to recompile and enable this option.

cd /usr/ports/security/openvpn
make configure #search "enable read password from file" or something and enable it.
make reinstall clean
 
Back
Top