"TUN_SETUP_FAILED tun_builder_error: one of ifconfig or ..."

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
svenove
OpenVpn Newbie
Posts: 4
Joined: Tue Apr 30, 2013 7:56 pm

"TUN_SETUP_FAILED tun_builder_error: one of ifconfig or ..."

Post by svenove » Tue Apr 30, 2013 8:02 pm

Setup OpenVPN on my Raspberry Pi and trying to connect from my iPhone.
It tries to connect, but then fails with the following error:
"TUN_SETUP_FAILED tun_builder_error: one of ifconfig or ifconfig-ipv6 must be specified [ERR]".

Serverconfig:

Code: Select all

dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
user nobody
group nogroup
server 10.8.0.0 255.255.255.0
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3
# If I remove this, the connection works!
push “redirect-gateway def1"
#set the dns servers
push “dhcp-option DNS 8.8.8.8"
push “dhcp-option DNS 8.8.4.4"
log-append /var/log/openvpn
comp-lzo
Client:

Code: Select all

dev tun
client
proto udp
remote --HOST-- 1194
resolv-retry infinite
nobind
persist-key
persist-tun
comp-lzo
verb 3

<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

</ca>

<cert>

-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

</cert>

<key>
-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----

</key>
Any ideas?

widelord
OpenVpn Newbie
Posts: 2
Joined: Mon Jun 10, 2013 2:38 pm

Re: "TUN_SETUP_FAILED tun_builder_error: one of ifconfig or

Post by widelord » Mon Jun 10, 2013 3:09 pm

I came across your question as I'd been suffering from the same problem, turned out it was the " characters in the openvpn config file. replace the funny looking backward slanting ones with standard shift-2 quotation marks and it should work (well mine did!)

Post Reply