DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Security

FreeBSD Security Securing FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st January 2022
globetrotterdk globetrotterdk is offline
New User
 
Join Date: Jan 2022
Posts: 3
Default (Solved) Trying to get an OpenVPN client connection at login.

I am trying to get OpenVPN to create a client connection at login (NomadBSD) /usr/local/etc/rc.d/openvpn contains the following line:

eval ": \${${name}_configfile:=\"/usr/local/etc/openvpn/${name}.conf\"}"

I added the following line to /usr/local/etc/openvpn/openvpn.conf:

Code:
# openvpn /home/user/openvpn/VPN_Provider_Location_UDP-443.ovpn
However, I get the following:

Code:
# service openvpn start
Starting openvpn.
/usr/local/etc/rc.d/openvpn: WARNING: failed to start openvpn
Confirmation that OpenVPN is enabled:
Code:
# cat /etc/rc.conf | grep openvpn
openvpn_enable="YES"
What am I doing wrong? New to FreeBSD and to OpenVPN...

Last edited by globetrotterdk; 14th February 2022 at 07:51 AM.
Reply With Quote
  #2   (View Single Post)  
Old 14th February 2022
globetrotterdk globetrotterdk is offline
New User
 
Join Date: Jan 2022
Posts: 3
Default

What finally worked for me was the following:
Code:
# mkdir /usr/local/etc/openvpn
# cp your_openvpn_config_file.conf /usr/local/etc/openvpn/openvpn.conf
# sysrc openvpn_enable="YES"
# sysrc openvpn_if="tun"
# sysrc openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"
# sysrc openvpn_dir="/usr/local/etc/openvpn"
Then reboot or:

Code:
# service openvpn start
Thanks to the developers at NomadBSD for the solution.
Reply With Quote
Reply

Tags
freebsd 13, nomadbsd, openvpn

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does pf conflict with OpenVPN? Emile OpenBSD Packages and Ports 37 2nd February 2011 11:03 PM
OBSD client hangs mounting NFS; Linux client doesn't amorphousone OpenBSD General 7 26th August 2010 05:21 AM
Working dial-up connection - No Client Connection vigol FreeBSD General 5 22nd November 2009 10:59 PM
Cannot set up OpenVPN guitarscn OpenBSD Security 8 5th October 2009 05:19 PM
IM Client schrodinger OpenBSD Packages and Ports 6 16th September 2008 02:09 PM


All times are GMT. The time now is 09:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick