LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2017, 11:07 AM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,412
Blog Entries: 4

Rep: Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836
Unexplained OpenVPN process termination on credit-card server VM


This morning, we found that the OpenVPN process was stopped on the (VMWare ...) VM that processes credit-card transactions. Relevant log entries include the following:

Code:
Jun 23 05:57:26 X-auth systemd[1]: Started ACPI event daemon.
Jun 23 05:57:27 X-auth ovpn-auth-server[1126]: event_wait : Interrupted system call (code=4)
Jun 23 05:57:27 X-auth ovpn-auth-server[1126]: Closing TUN/TAP interface
Jun 23 05:57:27 X-auth ovpn-auth-server[1126]: /sbin/ip addr del dev tun0 10.9.0.1/24
Jun 23 05:57:27 X-auth ovpn-auth-server[1126]: SIGTERM[hard,] received, process exiting
Jun 23 05:57:29 X-auth ovpn-auth-server[13590]: OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
Jun 23 05:57:29 X-auth ovpn-auth-server[13590]: library versions: OpenSSL 1.0.2g  1 Mar 2016, LZO 2.08
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: Diffie-Hellman initialized with 4096 bit key
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: Socket Buffers: R=[212992->212992] S=[212992->212992]
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: TUN/TAP device tun0 opened
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: TUN/TAP TX queue length set to 100
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: /sbin/ip link set dev tun0 up mtu 1500
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: /sbin/ip addr add dev tun0 10.9.0.1/24 broadcast 10.9.0.255
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: UDPv4 link local (bound): [undef]
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: UDPv4 link remote: [undef]
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: MULTI: multi_init called, r=256 v=256
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: IFCONFIG POOL: base=10.9.0.2 size=252, ipv6=0
Jun 23 05:57:29 X-auth ovpn-auth-server[13591]: Initialization Sequence Completed
Jun 23 05:57:30 X-auth systemd[1]: Reloading.
Jun 23 05:57:30 X-auth systemd[1]: snapd.refresh.timer: Adding 3h 22min 54.080594s random time.
Jun 23 05:57:30 X-auth systemd[1]: Started ACPI event daemon.
Jun 23 05:58:05 X-auth ovpn-auth-server[13591]: event_wait : Interrupted system call (code=4)
Jun 23 05:58:05 X-auth ovpn-auth-server[13591]: Closing TUN/TAP interface
Jun 23 05:58:05 X-auth ovpn-auth-server[13591]: /sbin/ip addr del dev tun0 10.9.0.1/24
Jun 23 05:58:06 X-auth ovpn-auth-server[13591]: SIGTERM[hard,] received, process exiting
Jun 23 05:58:06 X-auth systemd[1]: Started Daily apt activities.
The unique thing is SIGTERM[hard,] received. The first time, it appears to have restarted. The second time it did not.

System logs offer no evidence of intrusion and these systems cannot be reached at all without OpenVPN: there are no exposed "open ports," etc. This has never happened before and I need to explain why it might have happened now.

It appears to have occurred each time immediately after Started ACPI event daemon, which occurred twice in the space of 4 seconds.

And, why on earth is that demon being started, and then started again, now? It's not exactly like a VMWare VM has a laptop-lid to be closed.

I am suspicious – not of intrusion, but – of something external to the VM, as in the VMWare environment, which we do not directly own.

Last edited by sundialsvcs; 06-23-2017 at 11:31 AM.
 
Old 06-23-2017, 11:19 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,412

Original Poster
Blog Entries: 4

Rep: Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836Reputation: 3836
Looking further, I see in previous logs several other cases where a "rush" of ACPI event daemon started messages occurred within a few seconds of each other, although OpenVPN survived all of these without a hiccup. Once again, I don't know why they are occurring.

Code:
syslog:Jun 23 11:08:44 X-auth systemd[1]: Started ACPI event daemon.
syslog:Jun 23 11:08:56 X-auth systemd[1]: Started ACPI event daemon.
syslog:Jun 23 11:09:11 X-auth systemd[1]: Started ACPI event daemon.
syslog:Jun 23 11:09:44 X-auth systemd[1]: Started ACPI event daemon.
syslog:Jun 23 11:09:47 X-auth systemd[1]: Started ACPI event daemon.
syslog.1:Jun 23 05:57:24 X-auth systemd[1]: Started ACPI event daemon.
syslog.1:Jun 23 05:57:24 X-auth systemd[1]: Started ACPI event daemon.
syslog.1:Jun 23 05:57:26 X-auth systemd[1]: Started ACPI event daemon.
syslog.1:Jun 23 05:57:30 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:38:46 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:38:47 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:38:54 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:38:59 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:39:01 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:39:01 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:40:38 X-auth systemd[1]: Started ACPI event daemon.
syslog.7:Jun 16 11:40:38 X-auth systemd[1]: Started ACPI event daemon.
As you can see, the last time this happened (June 16th) we see the daemon being started "twice in one second," twice!

At first I thought that this was "something that happens at 6:00 in the morning," but you also see it happening at 11:40 AM.

These are the only occurrences in this series of log files.

Last edited by sundialsvcs; 06-23-2017 at 11:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the termination of a process release file and other resources. clivebluston Linux - Newbie 3 04-15-2011 07:13 AM
Hotspot server with credit card payment and load balancing? petertilling Linux - Software 1 02-20-2011 05:53 PM
SSH connection termination during a running process... jayemef Linux - General 1 08-16-2005 12:41 PM
How to know on termination or exit of a perticular process in Unix Pavan mahoorker Linux - Software 1 06-07-2005 07:28 AM
Linux process termination souvik Programming 1 04-12-2002 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration