November 22, 201510 yr I have been trying to get OpenVPN working for a week now. No matter what I try I can never get the Dam with the same results. I am currently using unRaid V5. installment with the 32bit version of OpenVPN. Below is a screenshot of the setup. I also tried creating a share "OpenVPN" cache only which yielded no results. Pleas advise
November 23, 201510 yr Author Attached is the syslog. I had to delete all of the device information because the log was to big to upload. I found a OpenVPN log but it was empty. Thanks syslog-20151122-213856.txt
November 23, 201510 yr what is output of /etc/rc.d/rc.openvpnserver stop and /etc/rc.d/rc.openvpnserver start
November 23, 201510 yr Author Snap shot of putty and zipped syslog attached: syslog-20151123-060031.zip
November 24, 201510 yr It looks like the OpenVPN server are running, if you execute ifconfig do you see a tun0 interface ? If you do the client should be able to connect to your OpenVPN server.
November 24, 201510 yr Hmm .. OK try this in your telnet session First check so we don't have any process for openvpn running ps -ef | grep openvpn Kill them of you see any then /usr/sbin/openvpn --writepid /var/run/openvpnserver/openvpnserver.pid --config /mnt/cache/OpenVPN/server/openvpnserver.ovpn --script-security 2 --daemon
November 24, 201510 yr Author Okay, I did what you instructed and then ran ifconfig again it returned vertically the same response as above.
November 24, 201510 yr and you see no openvpn process after started openvpn? If you see anty and like to start again you need to kill all first If you not see tun0 interface, you need more log information ,see if you can add verb 11 in the openvpnserver.ovpn and check /var/log/openvpnserver.log after started from command line should looks like this more /var/log/openvpnserver.log Tue Nov 24 21:27:38 2015 OpenVPN 2.3.6 x86_64-slackware-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on Dec 10 2014 Tue Nov 24 21:27:38 2015 library versions: OpenSSL 1.0.1p 9 Jul 2015, LZO 2.03 Tue Nov 24 21:27:38 2015 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN s erver from public locations such as internet cafes that use the same subnet. Tue Nov 24 21:27:38 2015 Diffie-Hellman initialized with 2048 bit key Tue Nov 24 21:27:38 2015 WARNING: file '/mnt/cache/myVPNserver/server.key' is group or others accessible Tue Nov 24 21:27:38 2015 WARNING: file '/mnt/cache/myVPNserver/ta.key' is group or others accessible Tue Nov 24 21:27:38 2015 Control Channel Authentication: using '/mnt/cache/myVPNserver/ta.key' as a OpenVPN static key file Tue Nov 24 21:27:38 2015 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Nov 24 21:27:38 2015 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication Tue Nov 24 21:27:38 2015 Socket Buffers: R=[212992->131072] S=[212992->131072] Tue Nov 24 21:27:38 2015 TUN/TAP device tun0 opened Tue Nov 24 21:27:38 2015 TUN/TAP TX queue length set to 100 Tue Nov 24 21:27:38 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Tue Nov 24 21:27:38 2015 /usr/sbin/ip link set dev tun0 up mtu 1500 Tue Nov 24 21:27:38 2015 /usr/sbin/ip addr add dev tun0 10.22.0.1/24 broadcast 10.22.0.255 Tue Nov 24 21:27:38 2015 GID set to users Tue Nov 24 21:27:38 2015 UID set to nobody Tue Nov 24 21:27:38 2015 UDPv4 link local (bound): [AF_INET]192.168.0.190:1194 Tue Nov 24 21:27:38 2015 UDPv4 link remote: [undef] Tue Nov 24 21:27:38 2015 MULTI: multi_init called, r=256 v=256 Tue Nov 24 21:27:38 2015 IFCONFIG POOL: base=10.22.0.2 size=252, ipv6=0 Tue Nov 24 21:27:38 2015 Initialization Sequence Completed
November 24, 201510 yr Author There was a verb 3 so I changed it to verb 11. When i entered /var/log/openvpnserver.log I got a return -bash: /var/log/openvpnserver.log: Permission denied Thanks
November 24, 201510 yr Something are very strange on your system, maybe bad memory? No free space? Sorry can't help.
November 24, 201510 yr Author Does this mean any thing which was copied out of syslog: Nov 24 03:50:07 Tower sudo: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/openvpn --writepid /var/run/openvpnserver/openvpnserver.pid --config /mnt/cache/OpenVPN/server/openvpnserver.ovpn --script-security 2 --daemon Nov 24 04:02:23 Tower emhttp: shcmd (71): /usr/sbin/hdparm -y /dev/sdg &> /dev/null Nov 24 04:24:29 Tower sudo: root : TTY=unknown ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/openvpn --writepid /var/run/openvpnserver/openvpnserver.pid --config /mnt/cache/OpenVPN/server/openvpnserver.ovpn --script-security 2 --daemon Nov 24 04:38:01 Tower emhttp: shcmd (72): /usr/sbin/hdparm -y /dev/sdg &> /dev/null
November 25, 201510 yr You should only have one process running for openvpn, maybe you close the process and the start a new process of openvpn ? It's strange that you cant read the logs ,can you change the path in the ovpn file to /boot and try to read the logs?
November 25, 201510 yr Author Hi, I UN-install OpenVPN and deleted all remanence from server. Rebooted & then reinstalled to flash in boot/config/OpenVPN_server. I experienced all of the same results. I did however find a OpenVPN log in var/log. see attachment: openvpnserver.txt
November 25, 201510 yr have you see this in the log ?? --dh fails with '/boot/config/OpenVPN_server/dh1024.pem': No such file or directory There are no certs created
November 25, 201510 yr Author You are correct. I went to my flash drive and all of the folders are made but are empty. While the OpenVPN GUI is checked. The paths are correct.
Archived
This topic is now archived and is closed to further replies.