Template:VPN-Firewall/Troubleshooting

From Kicksecure
Revision as of 13:55, 19 May 2016 by imported>Patrick (Created page with "You can skip this troubleshooting chapter unless you notice any issues. ====== Cannot ioctl TUNSETIFF ====== <pre> ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You can skip this troubleshooting chapter unless you notice any issues.

Cannot ioctl TUNSETIFF
ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)

In openvpn.conf do not use.

dev tun

Use.

dev tun0
Dev tun missmatch

In openvpn.conf do not use.

dev tun

Use.

dev tun0
/run/openvpn/openvpn.status Permission denied
Options error: --status fails with '/run/openvpn/openvpn.status': Permission denied

Do not start openvpn as root. Do not use "sudo openvpn". This would lead to permission issues. Files in /run/openvpn folder owned by root. So they cannot be overwritten by user tunnel.

debug start

Debug start in command line.

sudo /usr/sbin/openvpn --rmtun --dev tun0
sudo /usr/sbin/openvpn --mktun --dev tun0 --dev-type tun --user tunnel --group tunnel
cd /etc/openvpn/
sudo -u tunnel openvpn /etc/openvpn/openvpn.conf
Linux ip link set failed
Linux ip link set failed: external program exited with error status: 2

Use ip_unpriv as documented above.