obs4: Cannot ioctl TUNSETIFF tun
Getting the following error while passing the -obfs4
flag:
2020/03/31 19:48:18 args: [/snap/bin/riseup-vpn.bitmask-root openvpn start /snap/bin/riseup-vpn.openvpn --tun-ipv6 --auth SHA1 --cipher AES-128-CBC --keepalive 10 30 --tls-cipher DHE-RSA-AES128-SHA --remote 127.0.0.1 4430 tcp4 --verb 1 --management-client --management 127.0.0.1 6061 --ca /tmp/leap-079423595/cacert.pem --cert /tmp/leap-079423595/openvpn.pem --key /tmp/leap-079423595/openvpn.pem]
2020/03/31 19:48:18 output: Tue Mar 31 19:47:32 2020 Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Tue Mar 31 19:47:32 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Tue Mar 31 19:47:32 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Tue Mar 31 19:47:32 2020 WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail
Tue Mar 31 19:47:32 2020 Deprecated TLS cipher name 'DHE-RSA-AES128-SHA', please use IANA name 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA'
Tue Mar 31 19:47:32 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]127.0.0.1:4430
Tue Mar 31 19:47:32 2020 Attempting to establish TCP connection with [AF_INET]127.0.0.1:4430 [nonblock]
Tue Mar 31 19:47:32 2020 TCP connection established with [AF_INET]127.0.0.1:4430
Tue Mar 31 19:47:32 2020 TCPv4_CLIENT link local: (not bound)
Tue Mar 31 19:47:32 2020 TCPv4_CLIENT link remote: [AF_INET]127.0.0.1:4430
Tue Mar 31 19:47:32 2020 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Tue Mar 31 19:47:34 2020 [yal.riseup.net] Peer Connection Initiated with [AF_INET]127.0.0.1:4430
Tue Mar 31 19:47:35 2020 Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Tue Mar 31 19:47:35 2020 TUN/TAP device tun0 opened
Tue Mar 31 19:47:35 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1
Tue Mar 31 19:47:35 2020 /sbin/ip link set dev tun0 up mtu 1500
Tue Mar 31 19:47:35 2020 /sbin/ip addr add dev tun0 10.41.0.108/21 broadcast 10.41.7.255
Tue Mar 31 19:47:35 2020 /sbin/ip -6 addr add 2001:db8:123::106a/64 dev tun0
Tue Mar 31 19:47:35 2020 ERROR: Linux route add command failed: external program exited with error status: 2
Tue Mar 31 19:47:35 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0
Tue Mar 31 19:47:35 2020 GID set to nogroup
Tue Mar 31 19:47:35 2020 UID set to nobody
Tue Mar 31 19:47:35 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue Mar 31 19:47:35 2020 Initialization Sequence Completed
Tue Mar 31 19:48:11 2020 [yal.riseup.net] Inactivity timeout (--ping-restart), restarting
Tue Mar 31 19:48:11 2020 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Mar 31 19:48:11 2020 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Mar 31 19:48:11 2020 ERROR: Linux route delete command failed: external program exited with error status: 2
Tue Mar 31 19:48:11 2020 delete_route_ipv6(2000::/3)
Tue Mar 31 19:48:11 2020 ERROR: Linux route -6/-A inet6 del command failed: external program exited with error status: 2
Tue Mar 31 19:48:11 2020 /sbin/ip addr del dev tun0 10.41.0.108/21
Tue Mar 31 19:48:11 2020 Linux ip addr del failed: external program exited with error status: 2
Tue Mar 31 19:48:11 2020 /sbin/ip -6 addr del 2001:db8:123::106a/64 dev tun0
Tue Mar 31 19:48:11 2020 Linux ip -6 addr del failed: external program exited with error status: 2
Tue Mar 31 19:48:11 2020 SIGUSR1[soft,ping-restart] received, process restarting
Tue Mar 31 19:48:16 2020 WARNING: you are using user/group/chroot/setcon without persist-tun -- this may cause restarts to fail
Tue Mar 31 19:48:16 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]127.0.0.1:4430
Tue Mar 31 19:48:16 2020 Attempting to establish TCP connection with [AF_INET]127.0.0.1:4430 [nonblock]
Tue Mar 31 19:48:16 2020 TCP connection established with [AF_INET]127.0.0.1:4430
Tue Mar 31 19:48:16 2020 TCPv4_CLIENT link local: (not bound)
Tue Mar 31 19:48:16 2020 TCPv4_CLIENT link remote: [AF_INET]127.0.0.1:4430
Tue Mar 31 19:48:17 2020 [yal.riseup.net] Peer Connection Initiated with [AF_INET]127.0.0.1:4430
Tue Mar 31 19:48:18 2020 Note: option tun-ipv6 is ignored because modern operating systems do not need special IPv6 tun handling anymore.
Tue Mar 31 19:48:18 2020 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Tue Mar 31 19:48:18 2020 Exiting due to fatal error