jotyGill / openpyn-nordvpn

Easily connect to and switch between, OpenVPN servers hosted by NordVPN on Linux (+patch leakes)
GNU General Public License v3.0
628 stars 114 forks source link

write UDP: Operation not permitted (code=1) #196

Closed nikolayhg closed 6 years ago

nikolayhg commented 6 years ago

Recently I get the write UDP error and can't use the VPN. I tried to connect to different servers. Any idea what could be causing it and how to fix this issue?

Here is my log:

Flushing iptables INPUT and OUTPUT chains AND Applying default Rules
CONNECTING TO SERVER XXX ON PORT udp
Desktop notifications don't work when using 'sudo', run without it, when asked, provide the sudo credentials

Your OS' linux' has systemd-resolve running  using it to update DNS Resolver Entries
Sat Sep 15 21:08:53 2018 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep  5 2018
Sat Sep 15 21:08:53 2018 library versions: OpenSSL 1.1.0g  2 Nov 2017, LZO 2.08
Sat Sep 15 21:08:53 2018 MANAGEMENT: TCP Socket listening on [AF_INET]XXX.XXX.XXX.XXX:PPPP
Sat Sep 15 21:08:53 2018 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sat Sep 15 21:08:53 2018 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Sep 15 21:08:53 2018 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sat Sep 15 21:08:53 2018 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Sat Sep 15 21:08:53 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]XXX.XXX.XXX.XXX:PPPP
Sat Sep 15 21:08:53 2018 Socket Buffers: R=[AAAAAA->AAAAAA] S=[AAAAAA->AAAAAA]
Sat Sep 15 21:08:53 2018 UDP link local: (not bound)
Sat Sep 15 21:08:53 2018 UDP link remote: [AF_INET]XXX.XXX.XXX.XXX:PPPP
Sat Sep 15 21:08:53 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:08:56 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:09:00 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:09:09 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:09:25 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:09:53 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sat Sep 15 21:09:53 2018 TLS Error: TLS handshake failed
Sat Sep 15 21:09:53 2018 SIGUSR1[soft,tls-error] received, process restarting
Sat Sep 15 21:09:53 2018 Restart pause, 10 second(s)
Sat Sep 15 21:10:03 2018 WARNING: --ping should normally be used with --ping-restart or --ping-exit
Sat Sep 15 21:10:03 2018 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Sep 15 21:10:03 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]XXX.XXX.XXX.XXX:PPPP
Sat Sep 15 21:10:03 2018 Socket Buffers: R=[AAAAAA->AAAAAA] S=[AAAAAA->AAAAAA]
Sat Sep 15 21:10:03 2018 UDP link local: (not bound)
Sat Sep 15 21:10:03 2018 UDP link remote: [AF_INET]XXX.XXX.XXX.XXX:PPPP
Sat Sep 15 21:10:03 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:10:05 2018 write UDP: Operation not permitted (code=1)
Sat Sep 15 21:10:09 2018 write UDP: Operation not permitted (code=1)
nikolayhg commented 6 years ago

hm, after I restarted my OS, it worked again. The OS installed some updates, so not sure what exactly the issue was.