Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I followed this guide, (https://www.digitalocean.com/communi...er-on-centos-6) everything went successful in the guide however when its time to connect to the VPN server I get an error that the server refused the connection immediatley. I tried disabling the firewall and I have the 1194 TCP port enabled.
Probably the entries from whatever log file the OpenVPN daemon logs to?
Yeah I found it, its in /var/log/messages
Code:
Aug 25 12:06:07 necc-data openvpn[3779]: Options error: --dh fails with 'dh1024.pem': No such file or directory
Aug 25 12:06:07 necc-data openvpn[3779]: Options error: Please correct these errors.
Aug 25 12:06:07 necc-data openvpn[3779]: Use --help for more information.
Aug 25 12:06:07 necc-data openvpn[3779]: Options error: --dh fails with 'dh1024.pem': No such file or directory
Aug 25 12:06:07 necc-data openvpn[3779]: Options error: Please correct these errors.
Aug 25 12:06:07 necc-data openvpn[3779]: Use --help for more information.
Great...so did you create dh parameter file using build-dh script? Did you check its permissions/folder location? If it can't find the file, then either you didn't create it, or it can't be read. Did you try the "--help" parameter, as the log said?
Great...so did you create dh parameter file using build-dh script? Did you check its permissions/folder location? If it can't find the file, then either you didn't create it, or it can't be read. Did you try the "--help" parameter, as the log said?
Also, are you starting this as root?
There is no such dh1024.pem file HOWEVER I have a dh2048.pem file, weird right? Why is it doubled instead of just 1024? Alright for some reason by default the vars file had the key set to 2048 instead of 1024. I will put back to 1024.
Edit your OpenVPN configuration file (i.e. /etc/openvpn/server.conf) and add/modify the following lines:
status openvpn-status.log
log openvpn.log
verb 6
Then, restart your OpenVPN service for the changes to take effect and check your '/etc/openvpn/openvpn.log' and '/etc/openvpn/openvpn-status.log' files to see if there are any connection problem messages which might help you to track down the problem.
Edit your OpenVPN configuration file (i.e. /etc/openvpn/server.conf) and add/modify the following lines:
status openvpn-status.log
log openvpn.log
verb 6
Then, restart your OpenVPN service for the changes to take effect and check your '/etc/openvpn/openvpn.log' and '/etc/openvpn/openvpn-status.log' files to see if there are any connection problem messages which might help you to track down the problem.
Thanks, I did this and tried connecting from my windows pc, I get the error, I look in the log and it seems its not displaying anything...so its not even able to connect to it?
I disabled the firewall though and I still couldnt connect. Did I mess up somewhere when making the CA files?
No...again, if you're not getting ANY log file entries, that means there is no connection being seen. Which means it's getting blocked SOMEWHERE. You don't really say anything about your network topology, where these machines are that you're trying to connect, and what they're running through.
No...again, if you're not getting ANY log file entries, that means there is no connection being seen. Which means it's getting blocked SOMEWHERE. You don't really say anything about your network topology, where these machines are that you're trying to connect, and what they're running through.
Sorry, I will try and clarify. I have OpenVPN setup on a linux box with an ip of 192.168.12.137. I try connecting to my personal PC tot he OpenVPN server locally using the OpenVPN Client by typing 192.168.12.137:11904. The OpenVPN Client allows me to select the .ovpn file and I do, I hit connect and it says conncetion refused.
I currently use Ceano Colt for cloud hosting. Anyone else here used Ceano's cloud hosting services to setup and configure an OpenVPN server on CentOS 6 ?!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.