{"action":"created","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/1580","repository_url":"https://api.github.com/repos/pi-hole/pi-hole","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/1580/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/1580/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/1580/events","html_url":"https://github.com/pi-hole/pi-hole/issues/1580","id":240506041,"number":1580,"title":"How to choose tun0 as a networking interface","user":{"login":"nuentes","id":13895384,"avatar_url":"https://avatars1.githubusercontent.com/u/13895384?v=4","gravatar_id":"","url":"https://api.github.com/users/nuentes","html_url":"https://github.com/nuentes","followers_url":"https://api.github.com/users/nuentes/followers","following_url":"https://api.github.com/users/nuentes/following{/other_user}","gists_url":"https://api.github.com/users/nuentes/gists{/gist_id}","starred_url":"https://api.github.com/users/nuentes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuentes/subscriptions","organizations_url":"https://api.github.com/users/nuentes/orgs","repos_url":"https://api.github.com/users/nuentes/repos","events_url":"https://api.github.com/users/nuentes/events{/privacy}","received_events_url":"https://api.github.com/users/nuentes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-07-04T22:40:39Z","updated_at":"2018-03-16T10:58:46Z","closed_at":"2017-07-07T14:02:31Z","author_association":"NONE","body":"Sorry, I've spent a while googling, and I can't figure out how to perform [this step](https://github.com/pi-hole/pi-hole/wiki/OpenVPN-server:-Installation#install-pi-hole):\r\n\r\n> Chose tun0 as networking interface. If tun0 isn't available, the installation of the OpenVPN server failed.\r\n\r\nWhen I pull up the Network Preferences, the only interface available is eth0. However, when I ifconfig, I get:\r\n```\r\n$ ifconfig\r\neth0      Link encap:Ethernet  HWaddr b8:27:eb:df:85:xx  \r\n          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0\r\n          inet6 addr: fe80::442c:cce5:xxxx:7228/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:12749 errors:0 dropped:15 overruns:0 frame:0\r\n          TX packets:25202 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000 \r\n          RX bytes:3678259 (3.5 MiB)  TX bytes:33098964 (31.5 MiB)\r\n\r\nlo        Link encap:Local Loopback  \r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          inet6 addr: ::1/128 Scope:Host\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:205 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:205 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1 \r\n          RX bytes:16936 (16.5 KiB)  TX bytes:16936 (16.5 KiB)\r\n\r\ntun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  \r\n          inet addr:10.8.0.1  P-t-P:10.8.0.1  Mask:255.255.255.0\r\n          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1\r\n          RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:100 \r\n          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)\r\n```\r\nAlso:\r\n```\r\n$ ip route list\r\ndefault via 192.168.1.1 dev eth0  metric 202 \r\n10.8.0.0/24 dev tun0  proto kernel  scope link  src 10.8.0.1 \r\n192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.11  metric 202 \r\n```\r\nAnd\r\n```\r\n$ openvpn --remote CLIENT_IP --dev tun0 --ifconfig 10.9.8.1 10.9.8.2\r\nTue Jul  4 18:23:00 2017 OpenVPN 2.3.4 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 27 2017\r\nTue Jul  4 18:23:00 2017 library versions: OpenSSL 1.0.1t  3 May 2016, LZO 2.08\r\nTue Jul  4 18:23:00 2017 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext\r\nTue Jul  4 18:23:00 2017 RESOLVE: Cannot resolve host address: CLIENT_IP: Name or service not known\r\nTue Jul  4 18:23:00 2017 ERROR: Cannot ioctl TUNSETIFF tun0: Device or resource busy (errno=16)\r\nTue Jul  4 18:23:00 2017 Exiting due to fatal error\r\n```\r\nThanks for any help!"},"comment":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/comments/373679486","html_url":"https://github.com/pi-hole/pi-hole/issues/1580#issuecomment-373679486","issue_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/1580","id":373679486,"user":{"login":"timdonovanuk","id":8156439,"avatar_url":"https://avatars0.githubusercontent.com/u/8156439?v=4","gravatar_id":"","url":"https://api.github.com/users/timdonovanuk","html_url":"https://github.com/timdonovanuk","followers_url":"https://api.github.com/users/timdonovanuk/followers","following_url":"https://api.github.com/users/timdonovanuk/following{/other_user}","gists_url":"https://api.github.com/users/timdonovanuk/gists{/gist_id}","starred_url":"https://api.github.com/users/timdonovanuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdonovanuk/subscriptions","organizations_url":"https://api.github.com/users/timdonovanuk/orgs","repos_url":"https://api.github.com/users/timdonovanuk/repos","events_url":"https://api.github.com/users/timdonovanuk/events{/privacy}","received_events_url":"https://api.github.com/users/timdonovanuk/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T10:58:46Z","updated_at":"2018-03-16T10:58:46Z","author_association":"NONE","body":"This is quite unhelpful if you've already installed Pi Hole! I would imagine a large percentage of people that find themselves here have already installed it and are looking to add on OpenVPN, not the other way around."}}
{"actor":{"display_login":"timdonovanuk"}}