[deleted] Dear community, I am trying to connect my android with my vpnserver, but the openvpn client cannot resolve host address. This only happens with my phone. I used the same configuration with my laptop and it works perfecly fine. I think I am missing something. I am using the app "openvpn for android" with sslsocks This is the configuration of my vpn server. port 1194 proto tcp dev tun tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 ca /etc/openvpn/easy-rsa/pki/ca.crt cert /etc/openvpn/easy-rsa/pki/issued/vpn-server.crt key /etc/openvpn/easy-rsa/pki/private/vpn-server.key dh /etc/openvpn/easy-rsa/pki/dh.pem server 10.8.0.0 255.255.255.0 push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.8.8" push "dhcp-option DNS 8.8.4.4" cipher AES-256-CBC tls-version-min 1.2 tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256 auth SHA256 auth-nocache keepalive 5 30 comp-lzo persist-key persist-tun status /var/log/openvpn.log verb 3 This the client client dev tun proto tcp remote localhost 1337 route xxxxx.org 255.255.255.255 net_gateway resolv-retry infinite nobind tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 persist-key persist-tun cipher AES-256-CBC auth SHA256 auth-nocache tls-version-min 1.2 tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256 remote-cert-tls server comp-lzo verb 3 <ca> -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- </ca> <cert> -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- </cert> <key> -----BEGIN PRIVATE KEY----- -----END PRIVATE KEY----- </key> and this is the configuration of stunnel (sslsocks) foreground = yes client = yes pid = /data/user.../pid accept = 127.0.0.1:1337 connect = xxxx.org:443 cert = stunnel.pem
TinCanTech metralleta wrote trying to connect my android with my vpnserver, but the openvpn client cannot resolve host address metralleta wrote client dev tun proto tcp remote localhost 1337 :roll:
Pippin There is not enough info here. remote localhost 1337 could be correct as stunnel is used to vpn through. Moved back to off topic.
TinCanTech Android is not going to resolve localhost to the server IP, under any circumstances. This is a bad configuration of the --remote directive. If anything, this is either configuration or Android. It is not off-topic at all.
obalrevie What really matters is not your worldly success, but your unique insight into the meaning of life and your commitment to it, which adds to your personality. voip phone service