We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2017-05-07 14:37:35 +0200

Trouble with command line VPN tun/tap permission denied

Hi, I interested to try beta VPN with my CyberGhost Premium VPN service provider. I have Jolla phone with 2.0.1.11. First I tried to establish a connection with Settings VPN UI but my try immediately failed. Did manually set cert, client, key and ovpn paths to correct locations. I do have username and password configuration which does not work from UI. Nevertheless what settings I change, "ask password if needed" / "read from file", I don't get a credentials prompt.

So I looked what happens under the openvpn hood. Here is openvpn command line as a regular nemo user:

openvpn --config path to .ovpn file username: password:

Sun May  7 13:42:26 2017 us=861415 SENT CONTROL [CyberGhost VPN Server Bucharest-S14-I02]: 'PUSH_REQUEST' (status=1)
    Sun May  7 13:42:27 2017 us=111902 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 185.156.172.178,dhcp-option DNS 185.93.180.131,dhcp-option DNS 83.143.245.42,comp-lzo yes,route 10.130.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.130.0.110 10.130.0.109'
    Sun May  7 13:42:27 2017 us=112909 OPTIONS IMPORT: timers and/or timeouts modified
    Sun May  7 13:42:27 2017 us=113123 OPTIONS IMPORT: LZO parms modified
    Sun May  7 13:42:27 2017 us=113337 OPTIONS IMPORT: --ifconfig/up options modified
    Sun May  7 13:42:27 2017 us=113520 OPTIONS IMPORT: route options modified
    Sun May  7 13:42:27 2017 us=113733 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
    Sun May  7 13:42:27 2017 us=115107 ROUTE_GATEWAY 10.24.214.41/255.0.0.0 IFACE=rmnet0 HWADDR=00:00:00:00:00:00
    Sun May  7 13:42:27 2017 us=115656 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
    Sun May  7 13:42:27 2017 us=115839 Exiting due to fatal error
    [nemo@Sailfish CyberGhost]$ ls -la /dev/net
    total 0
    drwxr-xr-x  2 root   root      60 Jan  1  1970 .
    drwxr-xr-x 16 root   root    6220 May  7 03:58 ..
    crw-rw----  1 system vpn  10, 200 May  7 03:45 tun

Unless if you try as root user the connection from command line will establish!

Has my /dev/net/tun file permission (chmod 640) correct values?

Trouble with command line VPN tun/tap permission denied

Hi, I interested to try beta VPN with my CyberGhost Premium VPN service provider. I have Jolla phone with 2.0.1.11. First I tried to establish a connection with Settings VPN UI but my try immediately failed. Did manually set cert, client, key and ovpn paths to correct locations. I do have username and password configuration which does not work from UI. Nevertheless what settings I change, "ask password if needed" / "read from file", I don't get a credentials prompt.

So I looked what happens under the openvpn hood. Here is openvpn command line as a regular nemo user:

openvpn --config path to .ovpn file username: password:

Sun May  7 13:42:26 2017 us=861415 SENT CONTROL [CyberGhost VPN Server Bucharest-S14-I02]: 'PUSH_REQUEST' (status=1)
    Sun May  7 13:42:27 2017 us=111902 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 185.156.172.178,dhcp-option DNS 185.93.180.131,dhcp-option DNS 83.143.245.42,comp-lzo yes,route 10.130.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.130.0.110 10.130.0.109'
    Sun May  7 13:42:27 2017 us=112909 OPTIONS IMPORT: timers and/or timeouts modified
    Sun May  7 13:42:27 2017 us=113123 OPTIONS IMPORT: LZO parms modified
    Sun May  7 13:42:27 2017 us=113337 OPTIONS IMPORT: --ifconfig/up options modified
    Sun May  7 13:42:27 2017 us=113520 OPTIONS IMPORT: route options modified
    Sun May  7 13:42:27 2017 us=113733 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
    Sun May  7 13:42:27 2017 us=115107 ROUTE_GATEWAY 10.24.214.41/255.0.0.0 IFACE=rmnet0 HWADDR=00:00:00:00:00:00
    Sun May  7 13:42:27 2017 us=115656 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
    Sun May  7 13:42:27 2017 us=115839 Exiting due to fatal error
    [nemo@Sailfish CyberGhost]$ ls -la /dev/net
    total 0
    drwxr-xr-x  2 root   root      60 Jan  1  1970 .
    drwxr-xr-x 16 root   root    6220 May  7 03:58 ..
    crw-rw----  1 system vpn  10, 200 May  7 03:45 tun

Unless if you try as root user the connection from command line will establish!

Has my /dev/net/tun file permission (chmod 640) correct values?

Trouble with VPN tun/tap permission denied

Hi, I interested to try beta VPN with my CyberGhost Premium VPN service provider. I have Jolla phone with 2.0.1.11. First I tried to establish a connection with Settings VPN UI but my try immediately failed. Did manually set cert, client, key and ovpn paths to correct locations. I do have username and password configuration which does not work from UI. Nevertheless what settings I change, "ask password if needed" / "read from file", I don't get a credentials prompt.

So I looked what happens under the openvpn hood. Here is openvpn command line as a regular nemo user:

openvpn --config path to .ovpn file username: password:

Sun May  7 13:42:26 2017 us=861415 SENT CONTROL [CyberGhost VPN Server Bucharest-S14-I02]: 'PUSH_REQUEST' (status=1)
    Sun May  7 13:42:27 2017 us=111902 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 185.156.172.178,dhcp-option DNS 185.93.180.131,dhcp-option DNS 83.143.245.42,comp-lzo yes,route 10.130.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.130.0.110 10.130.0.109'
    Sun May  7 13:42:27 2017 us=112909 OPTIONS IMPORT: timers and/or timeouts modified
    Sun May  7 13:42:27 2017 us=113123 OPTIONS IMPORT: LZO parms modified
    Sun May  7 13:42:27 2017 us=113337 OPTIONS IMPORT: --ifconfig/up options modified
    Sun May  7 13:42:27 2017 us=113520 OPTIONS IMPORT: route options modified
    Sun May  7 13:42:27 2017 us=113733 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
    Sun May  7 13:42:27 2017 us=115107 ROUTE_GATEWAY 10.24.214.41/255.0.0.0 IFACE=rmnet0 HWADDR=00:00:00:00:00:00
    Sun May  7 13:42:27 2017 us=115656 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
    Sun May  7 13:42:27 2017 us=115839 Exiting due to fatal error
    [nemo@Sailfish CyberGhost]$ ls -la /dev/net
    total 0
    drwxr-xr-x  2 root   root      60 Jan  1  1970 .
    drwxr-xr-x 16 root   root    6220 May  7 03:58 ..
    crw-rw----  1 system vpn  10, 200 May  7 03:45 tun

Unless if you try as root user the connection from command line will establish!

Has my /dev/net/tun file permission (chmod 640) correct values?

Trouble Manual .ovpn settings trouble with VPN -> tun/tap permission denieddenied as nemo

Hi, I interested to try beta VPN with my CyberGhost Premium VPN service provider. I have Jolla phone with 2.0.1.11. First I tried to establish a connection with Settings VPN UI but my try immediately failed. Did manually set cert, client, key and ovpn paths to correct locations. I do have username and password configuration which does not work from UI. Nevertheless what settings I change, "ask password if needed" / "read from file", I don't get a credentials prompt.

So I looked what happens under the openvpn hood. Here is openvpn command line as a regular nemo user:

openvpn --config path to .ovpn file username: password:

Sun May  7 13:42:26 2017 us=861415 SENT CONTROL [CyberGhost VPN Server Bucharest-S14-I02]: 'PUSH_REQUEST' (status=1)
    Sun May  7 13:42:27 2017 us=111902 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 185.156.172.178,dhcp-option DNS 185.93.180.131,dhcp-option DNS 83.143.245.42,comp-lzo yes,route 10.130.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.130.0.110 10.130.0.109'
    Sun May  7 13:42:27 2017 us=112909 OPTIONS IMPORT: timers and/or timeouts modified
    Sun May  7 13:42:27 2017 us=113123 OPTIONS IMPORT: LZO parms modified
    Sun May  7 13:42:27 2017 us=113337 OPTIONS IMPORT: --ifconfig/up options modified
    Sun May  7 13:42:27 2017 us=113520 OPTIONS IMPORT: route options modified
    Sun May  7 13:42:27 2017 us=113733 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
    Sun May  7 13:42:27 2017 us=115107 ROUTE_GATEWAY 10.24.214.41/255.0.0.0 IFACE=rmnet0 HWADDR=00:00:00:00:00:00
    Sun May  7 13:42:27 2017 us=115656 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
    Sun May  7 13:42:27 2017 us=115839 Exiting due to fatal error
    [nemo@Sailfish CyberGhost]$ ls -la /dev/net
    total 0
    drwxr-xr-x  2 root   root      60 Jan  1  1970 .
    drwxr-xr-x 16 root   root    6220 May  7 03:58 ..
    crw-rw----  1 system vpn  10, 200 May  7 03:45 tun

Unless if you try as root user the connection from command line will establish!

Has my /dev/net/tun file permission (chmod 640) correct values?