HI all,
Please can you assist me,
i keep getting these tun errors. ive checked all client and server configs, all is setup correctly.
Tun interface setup failed: tun_builder_error: one of ifconfig or ifconfig-ipv6 must be specified
Ive even set the max clients option in the PHP file. Id appreciate some assistance, ive tried everything to get this to work properly, Devices are android Samsung tabs.
herewith the two configs: Info cleared for security, IP's and Cert details.
Server
--port 1194
--dev tun
--proto tcp-server
--remote-cert-eku "TLS Web Client Authentication"
--server XXX.XXX.XXX.XXX 255.255.255.0
--max-clients 500
--iproute /bin/ip
--comp-lzo
--ca /etc/openvpn/certificates/server/ca.ca
--dh /etc/openvpn/certificates/server/dhparam.pem
--key /etc/openvpn/certificates/server/key.key
--cert /etc/openvpn/certificates/server/cert.crt
--push "route 0.0.0.0 0.0.0.0"
--duplicate-cn
--client-to-client
--script-security 3
--learn-address "/usr/bin/php5 /usr/share/artica-postfix/exec.openvpn.php
--client-connect"
--keepalive 10 60
--persist-tun
--verb 5
--daemon
--writepid /var/run/openvpn/openvpn-server.pid
--log "/var/log/openvpn/openvpn.log"
--status /var/log/openvpn/openvpn-status.log 10
Client
client
dev tun
proto tcp
remote XXX.XXX.XXX.XXX 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
#ns-cert-type server
comp-lzo
verb 3
pull
#auth-user-pass
;System OS: Windows7
# Use our internal DNS server
dhcp-option DNS
# Custom Domain and Search Suffix
dhcp-option DOMAIN
dhcp-option SEARCH
script-security 2 system
#ROUTE 0.0.0.0 0.0.0.0
ROUTE 0.0.0.0 0.0.0.0
;mute 20
;wakeup:""
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
Tun interface setup failed: tun_builder_error: one of ifconfig or ifconfig-ipv6 must be specified
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Mar 29, 2017 10:10 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm