Simple config works on linux, not android (ifconfig unused?)

Post Reply
sctyboy
OpenVpn Newbie
Posts: 1
Joined: Mon Aug 12, 2019 4:45 pm

Simple config works on linux, not android (ifconfig unused?)

Post by sctyboy » Mon Aug 12, 2019 5:05 pm

I've got a simple configuration that works fine from a linux client, but fails from OpenVPN Connect on Android with:

11:40:19.256 -- EVENT: ASSIGN_IP

11:40:19.258 -- TUN Error: tun_prop_error: one of ifconfig or ifconfig-ipv6 must be specified

11:40:19.266 -- EVENT: TUN_SETUP_FAILED info='tun_prop_error: one of ifconfig or ifconfig-ipv6 must be specified'

11:40:19.267 -- EVENT: DISCONNECTED

Here are the configurations: (Linux Client is OpenVPN 2.4.7, Linux Server is OpenVPN 2.4.7 x86_64-redhat-linux-gnu, Android Connect is 3.0.5 (1816))

Client

dev tun
remote vpn.domain.com
port 1212
ifconfig 172.16.18.42 172.16.18.41
compress
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
route 192.168.0.0 255.255.0.0
route 10.0.0.0 255.0.0.0
dhcp-option DNS 10.255.254.145
tls-client
cipher aes-256-cbc
<ca>
SNIP
</ca>
<cert>
SNIP
</cert>
<key>
SNIP
</key>


Server

dev tun
port 1212
ifconfig 172.16.18.41 172.16.18.42
push "route 192.168.0.0 255.255.0.0"
push "route 10.0.0.0 255.0.0.0"
push "dhcp-option DNS 10.255.254.145"
tls-server
cipher aes-256-cbc
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh2048.pem
compress
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
user nobody
group nobody
daemon

Post Reply