Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Openvpn keep restarting itself #119

Closed
Alacard opened this issue Jul 28, 2019 · 11 comments
Closed

Openvpn keep restarting itself #119

Alacard opened this issue Jul 28, 2019 · 11 comments

Comments

@Alacard
Copy link

Alacard commented Jul 28, 2019

Im just using the "latest" build (removed and readded at least 4 times to make sure is not something i was doing), Ive tryed moving my config files and only having the vpn config but same thing.

2019-07-28 05:19:13,431 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:13 2019 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jul 28 05:19:13 2019 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication

2019-07-28 05:19:13,432 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:13 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]64.42.179.58:443
Sun Jul 28 05:19:13 2019 Socket Buffers: R=[819200->819200] S=[819200->819200]
Sun Jul 28 05:19:13 2019 UDP link local: (not bound)
Sun Jul 28 05:19:13 2019 UDP link remote: [AF_INET]64.42.179.58:443

2019-07-28 05:19:13,439 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:13 2019 TLS: Initial packet from [AF_INET]64.42.179.58:443, sid=4d9c084f e57e1d33

2019-07-28 05:19:13,505 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:13 2019 VERIFY OK: depth=1, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=airvpn.org CA, emailAddress=info@airvpn.org

2019-07-28 05:19:13,506 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:13 2019 VERIFY KU OK
Sun Jul 28 05:19:13 2019 Validating certificate extended key usage
Sun Jul 28 05:19:13 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Sun Jul 28 05:19:13 2019 VERIFY EKU OK
Sun Jul 28 05:19:13 2019 VERIFY OK: depth=0, C=IT, ST=IT, L=Perugia, O=airvpn.org, CN=Hercules, emailAddress=info@airvpn.org

2019-07-28 05:19:13,703 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:13 2019 Control Channel: TLSv1.2, cipher TLSv1.2 DHE-RSA-AES256-GCM-SHA384, 4096 bit RSA
Sun Jul 28 05:19:13 2019 [Hercules] Peer Connection Initiated with [AF_INET]64.42.179.58:443

2019-07-28 05:19:14,756 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 SENT CONTROL [Hercules]: 'PUSH_REQUEST' (status=1)

2019-07-28 05:19:14,764 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 PUSH: Received control message: 'PUSH_REPLY,comp-lzo no,redirect-gateway  def1 bypass-dhcp,dhcp-option DNS 10.22.232.1,route-gateway 10.22.232.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.22.232.148 255.255.255.0,peer-id 3,cipher AES-256-GCM'

2019-07-28 05:19:14,764 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: compression parms modified
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: route options modified
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: route-related options modified
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: peer-id set
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: adjusting link_mtu to 1625
Sun Jul 28 05:19:14 2019 OPTIONS IMPORT: data channel crypto options modified
Sun Jul 28 05:19:14 2019 Data Channel: using negotiated cipher 'AES-256-GCM'
Sun Jul 28 05:19:14 2019 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sun Jul 28 05:19:14 2019 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key

2019-07-28 05:19:14,764 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=eth0 HWADDR=02:42:77:05:10:a3

2019-07-28 05:19:14,764 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 TUN/TAP device tun0 opened
Sun Jul 28 05:19:14 2019 TUN/TAP TX queue length set to 100

2019-07-28 05:19:14,764 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 /usr/bin/ip link set dev tun0 up mtu 1500

2019-07-28 05:19:14,765 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 /usr/bin/ip addr add dev tun0 10.22.232.148/24 broadcast 10.22.232.255

2019-07-28 05:19:14,766 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:14 2019 /root/openvpnup.sh tun0 1500 1553 10.22.232.148 255.255.255.0 init

2019-07-28 05:19:14,879 DEBG 'start-script' stdout output:
[info] Checking we can resolve name 'www.google.com' to address...

2019-07-28 05:19:19,490 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:19 2019 /usr/bin/ip route add 64.42.179.58/32 via 192.168.1.1

2019-07-28 05:19:19,491 DEBG 'start-script' stdout output:
RTNETLINK answers: File exists

2019-07-28 05:19:19,492 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:19 2019 ERROR: Linux route add command failed: external program exited with error status: 2
Sun Jul 28 05:19:19 2019 /usr/bin/ip route add 0.0.0.0/1 via 10.22.232.1

2019-07-28 05:19:19,493 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:19 2019 /usr/bin/ip route add 128.0.0.0/1 via 10.22.232.1

2019-07-28 05:19:19,494 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:19 2019 Initialization Sequence Completed

2019-07-28 05:19:19,505 DEBG 'start-script' stdout output:
[info] DNS operational, we can resolve name 'www.google.com' to address '64.233.177.103 64.233.177.104 64.233.177.105 64.233.177.106 64.233.177.147 64.233.177.99'

2019-07-28 05:19:19,506 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using Name Server 'ns1.google.com'...

2019-07-28 05:19:19,537 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 64.42.179.59

2019-07-28 05:19:43,436 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

2019-07-28 05:19:43,443 DEBG 'start-script' stdout output:
Sun Jul 28 05:19:43 2019 OpenVPN 2.4.7 [git:makepkg/2b8aec62d5db2c17+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 19 2019
Sun Jul 28 05:19:43 2019 library versions: OpenSSL 1.1.1c  28 May 2019, LZO 2.10

2019-07-28 05:19:43,443 DEBG 'start-script' stdout output:
[info] OpenVPN restarted

supervisord.log

@Alacard
Copy link
Author

Alacard commented Jul 29, 2019

Here's a new log with debug turned on minus the vpn keys
supervisord.log

@binhex
Copy link
Owner

binhex commented Jul 30, 2019

yes as i suspected you are a qnap user, see Q12 from the following faq:-
https://github.com/binhex/documentation/blob/master/docker/faq/vpn.md

@Alacard
Copy link
Author

Alacard commented Jul 30, 2019

Are you kidding me, really qnap? Thanks for the heads up, it worked

@Alacard Alacard closed this as completed Jul 30, 2019
@beaceves
Copy link

beaceves commented Aug 1, 2019

How do you find that file? I've tried searching and I can't seem to find it

@Alacard
Copy link
Author

Alacard commented Aug 1, 2019

@beaceves location is /etc/daemon_mgr.conf

@beaceves
Copy link

beaceves commented Aug 1, 2019

@Alacard I'm sorry, very very new to this. I'm not entirely sure what to do... I've just been using PuTTY to search for the file and even if I found it (which I didn't) I don't quite understand how to edit it. Would you be able to help? Or tell me what I should Google to figure this out?
Thanks

@Alacard
Copy link
Author

Alacard commented Aug 1, 2019

If you using windows the easiest way to find the file and edit it. is to use a free program called winscp you can use that program to sftp (not "ftp" but "sftp" and make sure you login with a account that's admin) to your server. ones you connect it will be easy to find/edit

@beaceves
Copy link

beaceves commented Aug 2, 2019

Worked! Thanks!

@beaceves
Copy link

Has anyone had the line keep showing up? I'm having to constantly go in and delete it

@Alacard
Copy link
Author

Alacard commented Aug 20, 2019

The way i got it to not show up again is to renumber the daemons example

lets say the one I deleted was "DAEMON49" starting from 49 i just renumbered the daemons.
So "DAEMON50" -> "DAEMON49", "DAEMON51" -> "DAEMON50","DAEMON52 -> "DAEMON51" and so on, that seem to fixed the problem at least for me

@beaceves
Copy link

I'll try that the next time it happens. This past time it was the last line so nothing to renumber unfortunately.
Thanks!

@binhex binhex pinned this issue Aug 20, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants