host address not found

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
metralleta
OpenVpn Newbie
Posts: 1
Joined: Sat Aug 20, 2022 2:07 am

host address not found

Post by metralleta » Sat Aug 20, 2022 2:58 am

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
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: host address not found

Post by TinCanTech » Sat Aug 20, 2022 6:56 pm

metralleta wrote:
Sat Aug 20, 2022 2:58 am
trying to connect my android with my vpnserver, but the openvpn client cannot resolve host address
metralleta wrote:
Sat Aug 20, 2022 2:58 am
client
dev tun
proto tcp
remote localhost 1337
:roll:

User avatar
Pippin
Forum Team
Posts: 1200
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: host address not found

Post by Pippin » Sat Aug 20, 2022 7:05 pm

There is not enough info here.

Code: Select all

remote localhost 1337
could be correct as stunnel is used to vpn through.

Moved back to off topic.
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Post Reply