Re: Openvpn client fails to access server when started as a service
Posted: Thu Jun 09, 2016 9:52 pm
The problem is solved. Almost.
The problem maker was selinux. As I usually use ubuntu and not centos I haven't made much experience with this NSA-driven security system.
How did I get to it?
After I realized that the name was the problem I made a grep on /etc
and quickly I read something like that
And then I had a way more to go. And google quickly guided me to here:
https://ask.fedoraproject.org/en/questi ... onnection/
And so I found the solution:
And after that - even /etc/init.d/openvpn could connect
Happy end. And I am not fond of a sequel.
Thank you very, very much for your support. It helped me a lot to know that I wasn't alone. It prevented me from going insane.
Cheers,
Alex
The problem maker was selinux. As I usually use ubuntu and not centos I haven't made much experience with this NSA-driven security system.
How did I get to it?
After I realized that the name was the problem I made a grep on /etc
Code: Select all
grep -R /etc 2>/dev/null
Code: Select all
selinux/targeted/modules/active/file_contexts:/usr/sbin/openvpn -- system_u:object_r:openvpn_exec_t:s0
https://ask.fedoraproject.org/en/questi ... onnection/
And so I found the solution:
Code: Select all
setenforce 0
Code: Select all
/etc/init.d/openvpn start
Thank you very, very much for your support. It helped me a lot to know that I wasn't alone. It prevented me from going insane.
Cheers,
Alex