Tun interface setup failed: tun_prop_error: ifconfig address

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
ted
OpenVpn Newbie
Posts: 2
Joined: Thu May 07, 2015 8:20 am

Tun interface setup failed: tun_prop_error: ifconfig address

Post by ted » Thu May 07, 2015 8:39 am

ovpn Server last year works well with Linux clients.
Clients NO Routing needed, client-to-client only

server.conf

Code: Select all

mode server
port 1194
proto udp
dev tap
client-to-client

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

server 10.0.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
#duplicate-cn
comp-lzo
persist-key
persist-tun

status log/openvpn-status.log
verb 3  
tls-server

#push "topology subnet"
#push "dhcp-option DNS 8.8.4.4"
#push "dhcp-option DNS 8.8.8.8"

#push "redirect-gateway def1"
Samsung s4 (Android 5) .ovpn

Code: Select all

client
dev tun
port 1194
proto udp
remote 5.199.x.x
nobind
resolv-retry infinite
user nobody
group nogroup
persist-key
persist-tun
ns-cert-type server

comp-lzo
verb 5
pull
#auth-user-pass
#ifconfig-push 10.0.0.166 10.0.0.167

all certs are importet through p12 file.

No error in Server log , but ERROR on Samsung S4 android device:

Code: Select all

[b]Tun interface setup failed: tun_prop_error: ifconfig addresses are not in the same /30 subnet (topology net30)[/b]
whats wrong ?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Tun interface setup failed: tun_prop_error: ifconfig add

Post by maikcat » Thu May 07, 2015 10:43 am

whats wrong ?
simple,

server config

Code: Select all

dev tap
client config

Code: Select all

dev tun
Michael.

ted
OpenVpn Newbie
Posts: 2
Joined: Thu May 07, 2015 8:20 am

Re: Tun interface setup failed: tun_prop_error: ifconfig add

Post by ted » Thu May 07, 2015 12:19 pm

ahh, i need tap interface on android. Server running in tap interface bridging mode. How i can emulate tap without rooting android device?

Image

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Tun interface setup failed: tun_prop_error: ifconfig add

Post by maikcat » Thu May 07, 2015 12:28 pm

unfortunately you cant,

if you want android devices support you must switch to routing/tun...

Michael.

Post Reply