At one point, I had OpenVPN up and running on my raspberry Pi. Connecting was painless -- I could use OpenVPN connect on my phone, and all was well. That is, until it wasn't. Something stopped working -- I'm not sure what. So I decided to start over. New download, new keys and self-signed cert. Things seem to be getting close, but I'm stuck on something with no connection to the VPN, with some errors in the log file. OpenVPNConnect app attempts to Connect, gets a SetTunnelSocket return 1 and ultimately a connection timeout. On the router, I've set up port forwarding -- I'm just not sure what to do with the "Operation not permitted".
Here's the openvpn log:
SIOCDELRT: Operation not permitted
Tue Jun 2 07:56:26 2015 ERROR: Linux route delete command failed: external program exited with error status: 7
Tue Jun 2 07:56:26 2015 Closing TUN/TAP interface
Tue Jun 2 07:56:26 2015 /sbin/ifconfig tun0 0.0.0.0
SIOCSIFADDR: Operation not permitted
SIOCSIFFLAGS: Operation not permitted
Tue Jun 2 07:56:26 2015 Linux ip addr del failed: external program exited with error status: 255
Tue Jun 2 07:56:26 2015 SIGTERM[hard,] received, process exiting
Tue Jun 2 07:57:04 2015 OpenVPN 2.2.1 arm-linux-gnueabihf [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Tue Jun 2 07:57:04 2015 WARNING: --keepalive option is missing from server config
Tue Jun 2 07:57:04 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Jun 2 07:57:06 2015 Diffie-Hellman initialized with 2048 bit key
Tue Jun 2 07:57:06 2015 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Jun 2 07:57:06 2015 Socket Buffers: R=[163840->131072] S=[163840->131072]
Tue Jun 2 07:57:06 2015 ROUTE: default_gateway=UNDEF
Tue Jun 2 07:57:06 2015 TUN/TAP device tun0 opened
Tue Jun 2 07:57:06 2015 TUN/TAP TX queue length set to 100
Tue Jun 2 07:57:06 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Jun 2 07:57:06 2015 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Tue Jun 2 07:57:06 2015 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Tue Jun 2 07:57:06 2015 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Jun 2 07:57:06 2015 GID set to nogroup
Tue Jun 2 07:57:06 2015 UID set to nobody
Tue Jun 2 07:57:06 2015 UDPv4 link local (bound): [undef]
Tue Jun 2 07:57:06 2015 UDPv4 link remote: [undef]
Tue Jun 2 07:57:06 2015 MULTI: multi_init called, r=256 v=256
Tue Jun 2 07:57:06 2015 IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0
Tue Jun 2 07:57:06 2015 Initialization Sequence Completed
Tue Jun 2 08:12:15 2015 event_wait : Interrupted system call (code=4)
Tue Jun 2 08:12:15 2015 TCP/UDP: Closing socket
Tue Jun 2 08:12:15 2015 /sbin/route del -net 10.8.0.0 netmask 255.255.255.0
SIOCDELRT: Operation not permitted
Tue Jun 2 08:12:15 2015 ERROR: Linux route delete command failed: external program exited with error status: 7
Tue Jun 2 08:12:15 2015 Closing TUN/TAP interface
Tue Jun 2 08:12:15 2015 /sbin/ifconfig tun0 0.0.0.0
SIOCSIFADDR: Operation not permitted
SIOCSIFFLAGS: Operation not permitted
Tue Jun 2 08:12:15 2015 Linux ip addr del failed: external program exited with error status: 255
Tue Jun 2 08:12:15 2015 SIGTERM[hard,] received, process exiting
Tue Jun 2 08:12:59 2015 OpenVPN 2.2.1 arm-linux-gnueabihf [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Tue Jun 2 08:12:59 2015 WARNING: --keepalive option is missing from server config
Tue Jun 2 08:12:59 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Jun 2 08:13:00 2015 Diffie-Hellman initialized with 2048 bit key
Tue Jun 2 08:13:00 2015 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Jun 2 08:13:00 2015 Socket Buffers: R=[163840->131072] S=[163840->131072]
Tue Jun 2 08:13:00 2015 ROUTE: default_gateway=UNDEF
Tue Jun 2 08:13:00 2015 TUN/TAP device tun0 opened
Tue Jun 2 08:13:00 2015 TUN/TAP TX queue length set to 100
Tue Jun 2 08:13:00 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Jun 2 08:13:00 2015 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Tue Jun 2 08:13:00 2015 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.2
Tue Jun 2 08:13:00 2015 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Tue Jun 2 08:13:00 2015 GID set to nogroup
Tue Jun 2 08:13:00 2015 UID set to nobody
Tue Jun 2 08:13:00 2015 UDPv4 link local (bound): [undef]
Tue Jun 2 08:13:00 2015 UDPv4 link remote: [undef]
Tue Jun 2 08:13:00 2015 MULTI: multi_init called, r=256 v=256