Openvpn server config shows event_wait : Interrupted system call (code=4)

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See https://forums.openvpn.net/viewtopic.php?f=30&t=21589 for an example.
Shaunak_Kapoor
OpenVpn Newbie
Posts: 4
Joined: Sat Mar 18, 2017 9:59 pm

Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby Shaunak_Kapoor » Sat Mar 18, 2017 10:07 pm

Hello Everyone,
I am trying to configure openvpn server but the command
openvpn server.conf runs indefinitely.If i kill it and view the logs (at verbosity 6)
the log file shows as follows(added below).How can i solve this problem:

openvpn.log
Sun Mar 19 03:22:24 2017 us=385011 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Feb 2 2016
Sun Mar 19 03:22:24 2017 us=385034 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Sun Mar 19 03:22:24 2017 us=385307 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 server from public locations such as internet cafes that use the same subnet.
Sun Mar 19 03:22:24 2017 us=385752 Diffie-Hellman initialized with 1024 bit key
Sun Mar 19 03:22:24 2017 us=386201 TLS-Auth MTU parms [ L:1542 D:1212 EF:38 EB:0 ET:0 EL:3 ]
Sun Mar 19 03:22:24 2017 us=386245 Socket Buffers: R=[212992->212992] S=[212992->212992]
Sun Mar 19 03:22:24 2017 us=386375 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=enp1s0 HWADDR=1c:75:08:45:f5:35
Sun Mar 19 03:22:24 2017 us=387284 TUN/TAP device tun0 opened
Sun Mar 19 03:22:24 2017 us=387348 TUN/TAP TX queue length set to 100
Sun Mar 19 03:22:24 2017 us=387380 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Mar 19 03:22:24 2017 us=387429 /sbin/ip link set dev tun0 up mtu 1500
Sun Mar 19 03:22:24 2017 us=389366 /sbin/ip addr add dev tun0 local 172.16.1.1 peer 172.16.1.2
Sun Mar 19 03:22:24 2017 us=392407 /sbin/ip route add 172.16.1.0/24 via 172.16.1.2
Sun Mar 19 03:22:24 2017 us=394349 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:143 ET:0 EL:3 AF:3/1 ]
Sun Mar 19 03:22:24 2017 us=394422 UDPv4 link local (bound): [undef]
Sun Mar 19 03:22:24 2017 us=394441 UDPv4 link remote: [undef]
Sun Mar 19 03:22:24 2017 us=394462 MULTI: multi_init called, r=256 v=256
Sun Mar 19 03:22:24 2017 us=394506 IFCONFIG POOL: base=172.16.1.4 size=62, ipv6=0
Sun Mar 19 03:22:24 2017 us=394539 IFCONFIG POOL LIST
Sun Mar 19 03:22:24 2017 us=394577 Initialization Sequence Completed
Sun Mar 19 03:22:35 2017 us=690579 event_wait : Interrupted system call (code=4)

Sun Mar 19 03:22:35 2017 us=690891 TCP/UDP: Closing socket
Sun Mar 19 03:22:35 2017 us=691011 /sbin/ip route del 172.16.1.0/24
Sun Mar 19 03:22:35 2017 us=692608 Closing TUN/TAP interface
Sun Mar 19 03:22:35 2017 us=692718 /sbin/ip addr del dev tun0 local 172.16.1.1 peer 172.16.1.2
Sun Mar 19 03:22:35 2017 us=723845 SIGINT[hard,] received, process exiting

server.conf

port 1194
proto udp
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 172.16.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
client-to-client
keepalive 10 60
ping-timer-rem
cipher BF-CBC # Blowfish (default)
comp-lzo
max-clients 5
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 6

User avatar
TinCanTech
I should be on the dev team.
Posts: 1909
Joined: Fri Jun 03, 2016 1:17 pm

Re: Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby TinCanTech » Sat Mar 18, 2017 11:12 pm

Shaunak_Kapoor wrote:I am trying to configure openvpn server but the command
openvpn server.conf runs indefinitely.
Yes, it does.

Shaunak_Kapoor wrote:openvpn.log
Sun Mar 19 03:22:24 2017 us=385011 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Feb 2 2016
That is a bit old ..

Do you keep your unknown server operating system up to date ?

Shaunak_Kapoor
OpenVpn Newbie
Posts: 4
Joined: Sat Mar 18, 2017 9:59 pm

Re: Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby Shaunak_Kapoor » Sun Mar 19, 2017 2:16 pm

Thanks for the previous reply.
Updated the open-vpn package to the 2.4.0 version and ran apt-get update and upgrade on my ubuntu 16.04
however the error still persists.Please help!!

User avatar
TinCanTech
I should be on the dev team.
Posts: 1909
Joined: Fri Jun 03, 2016 1:17 pm

Re: Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby TinCanTech » Sun Mar 19, 2017 5:46 pm

Shaunak_Kapoor wrote:however the error still persists
What error ?

Shaunak_Kapoor
OpenVpn Newbie
Posts: 4
Joined: Sat Mar 18, 2017 9:59 pm

Re: Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby Shaunak_Kapoor » Tue Mar 21, 2017 7:28 am

event_wait : Interrupted system call (code=4). THIS ERROR

User avatar
TinCanTech
I should be on the dev team.
Posts: 1909
Joined: Fri Jun 03, 2016 1:17 pm

Re: Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby TinCanTech » Tue Mar 21, 2017 12:18 pm

Shaunak_Kapoor wrote:event_wait : Interrupted system call (code=4).
This is not an error, it happens when you press control C ..

Please read the howto:
https://openvpn.net/index.php/open-source/documentation/howto.html

Shaunak_Kapoor
OpenVpn Newbie
Posts: 4
Joined: Sat Mar 18, 2017 9:59 pm

Re: Openvpn server config shows event_wait : Interrupted system call (code=4)

Postby Shaunak_Kapoor » Wed Mar 22, 2017 3:14 pm

Thanks a lot for the guidance.Really appreciate it.


Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 1 guest