Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

VPS OpenVPN Server Setup - TUN Help Please

Hello, 

I've been trying to setup OpenVPN for several days now. I've tried Ubuntu and CentOS, neither of which seem to work even when following multiple guides to a T. 

Here is status 

Code
administrator@mini:~$ sudo systemctl status [email protected]
● [email protected] - OpenVPN connection to server
  Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Sun 2017-12-31 23:42:53 EST; 49s ago
    Docs: man:openvpn(8)
          https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
          https://community.openvpn.net/openvpn/wiki/HOWTO
 Process: 15304 ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --c

Dec 31 23:42:53 mini systemd[1]: Starting OpenVPN connection to server...
Dec 31 23:42:53 mini ovpn-server[15304]: OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [E
Dec 31 23:42:53 mini ovpn-server[15304]: library versions: OpenSSL 1.0.2g-fips  1 Mar 2016, LZO 2.08
Dec 31 23:42:53 mini ovpn-server[15304]: daemon() failed or unsupported: Resource temporarily unavai
Dec 31 23:42:53 mini ovpn-server[15304]: Exiting due to fatal error
Dec 31 23:42:53 mini systemd[1]: [email protected]: Control process exited, code=exited status=
Dec 31 23:42:53 mini systemd[1]: Failed to start OpenVPN connection to server.
Dec 31 23:42:53 mini systemd[1]: [email protected]: Unit entered failed state.
Dec 31 23:42:53 mini systemd[1]: [email protected]: Failed with result 'exit-code'.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #e6c72b; background-color: #8e3527; background-color: rgba(142, 53, 39, 0.85)} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d7c9a7; background-color: #8e3527; background-color: rgba(142, 53, 39, 0.85)} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #8e3527; background-color: #d7c9a7; background-color: rgba(215, 201, 167, 0.85)} span.s1 {font-variant-ligatures: no-common-ligatures; color: #d7c9a7} span.s2 {font-variant-ligatures: no-common-ligatures}
Dec 31 23:42:53 mini systemd[1]: [b][email protected]: Unit entered failed state.[/b]
Dec 31 23:42:53 mini systemd[1]: [b][email protected]: Failed with result 'exit-code'.[/b]
Dec 31 23:42:53 mini sudo[15301]: pam_unix(sudo:session): session closed for user root
Dec 31 23:43:43 mini sudo[15314]: [b]administrator : TTY=pts/0 ; PWD=/home/administrator ; USER=root ; COMMAND=/bin/systemctl status [email protected][/b]
Dec 31 23:43:43 mini sudo[15314]: pam_unix(sudo:session): session opened for user root by administrator(uid=0)
Dec 31 23:44:39 mini sudo[15314]: pam_unix(sudo:session): session closed for user root
Dec 31 23:45:25 mini sudo[15320]: [b]administrator : TTY=pts/0 ; PWD=/etc/openvpn ; USER=root ; COMMAND=/bin/journalctl -xe[/b]
Dec 31 23:45:25 mini sudo[15320]: pam_unix(sudo:session): session opened for user root by administrator(uid=0)
lines 1063-1085/1085 (END)


Any help would be much appreciated, thanks in advance
I had a similar problem with my VPN's but i used SoftEther, since im not sure what could cause that problem i suggest trying to enable TUN/TAP.
If that doesn't help, try installing SoftEther and provide me results, you can connect with OpenVPN client to SoftEther one too.
(Jan 1, 2018 09:10 AM)MistaWolf Wrote:  I had a similar problem with my VPN's but i used SoftEther, since im not sure what could cause that problem i suggest trying to enable TUN/TAP.
If that doesn't help, try installing SoftEther and provide me results, you can connect with OpenVPN client to SoftEther one too.

Thanks for your reply. 

I've already tried to enable TUN/TAP but I don't think it's done anything for me. Let me make sure I did it again after my last start-over.

I get this error when trying to modprobe tun

Quote:modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/2.6.32-042stab123.1/modules.builtin.bin'
modprobe: FATAL: Module tun not found in directory /lib/modules/2.6.32-042stab123.1


After following some instructions from a Linode forum post, it seems I was able to enable tun0. However, I'm still getting this error when starting the OpenVPN service.

Quote:administrator@mini:/dev$ sudo systemctl status [email protected]
● [email protected] - OpenVPN connection to server
Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-01-01 17:00:36 EST; 20s ago
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wi...n23ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 16276 ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --sc

Jan 01 17:00:36 mini systemd[1]: Starting OpenVPN connection to server...
Jan 01 17:00:36 mini ovpn-server[16276]: OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH]
Jan 01 17:00:36 mini ovpn-server[16276]: library versions: OpenSSL 1.0.2g-fips 1 Mar 2016, LZO 2.08
Jan 01 17:00:36 mini ovpn-server[16276]: daemon() failed or unsupported: Resource temporarily unavailable (errno=11)
Jan 01 17:00:36 mini ovpn-server[16276]: Exiting due to fatal error
Jan 01 17:00:36 mini systemd[1]: [email protected]: Control process exited, code=exited status=1
Jan 01 17:00:36 mini systemd[1]: Failed to start OpenVPN connection to server.
Jan 01 17:00:36 mini systemd[1]: [email protected]: Unit entered failed state.
Jan 01 17:00:36 mini systemd[1]: [email protected]: Failed with result 'exit-code'.
lines 1-17/17 (END)

(Jan 1, 2018 02:47 PM)Lucrid Wrote:  Thanks for your reply. 

I've already tried to enable TUN/TAP but I don't think it's done anything for me. Let me make sure I did it again after my last start-over.

I get this error when trying to modprobe tun


After following some instructions from a Linode forum post, it seems I was able to enable tun0. However, I'm still getting this error when starting the OpenVPN service.

have you tried turning it off and on again?
I love being me said no one ever! ...


Possibly Related Threads...
Thread / Author Replies Views Last Post
[VPN] by LynxMar 29, 2021 11:35 PM 4 213 Mar 29, 2021 11:35 PM
Last Post: Lynx
[VPN] by MTSWApr 30, 2020 10:51 PM 0 127 Apr 30, 2020 10:51 PM
Last Post: MTSW
[VPN] by G0dzSoldiersApr 10, 2019 11:03 AM 6 409 Apr 10, 2019 11:03 AM
Last Post: Zexus99