[deleted]
Hi everybody.
I am new to openvpn and I've just set up a server on my CentOS 7 VPS through this guide: https://www.digitalocean.com/community/tutorials/how-to-set-up-and-configure-an-openvpn-server-on-centos-7. When I try to connect to the server remotely from a windows 10 client everything goes fine and I also can browse the web. By using the same client configuration file when I try to connect from my mobile phone (IOS Device) I also can connect to the server but there will be no internet access. It seems that It can send packets but cannot recieve them. I say this because in statistics section of the openvpn app I see TUN BYTES IN = 0 BYTES and TUN PACKETS IN = 0.
Where do you think I have to look for a solution? Firewall and routing, client configuration or server configuration?
I assume that if and only if one client can successfully connect and surf the web through my vpn server then the firewall is configured correctly. Is this statement correct in your opinion?
My server configuration file is as below:
port 1194
proto udp
dev tun
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/pan1-server.crt
key /etc/openvpn/server/pan1-server.key
dh /etc/openvpn/server/dh.pem
topology subnet
server 192.168.200.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
auth SHA256
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
and my clients all use the same configuration which is mentioned bellow as well:
###############################################################################
client
dev tun
proto udp
topology subnet
remote [my vps public IP] 1194
pull
user nobody
group nobody
cipher AES-128-CBC
auth SHA256
###############################################################################
nobind
resolv-retry infinite
persist-key
persist-tun
verb 3
###############################################################################
<ca>
-----BEGIN CERTIFICATE-----
my ca
-----END CERTIFICATE-----
</ca>
###############################################################################
<cert>
-----BEGIN CERTIFICATE-----
my cert
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN RSA PRIVATE KEY-----
my key
-----END RSA PRIVATE KEY-----
</key>
###############################################################################
Please help me understand why I can connect successfully from my windows client but not from my IOS device.
Thank you so much.
300000
buy new iphone maybe it can connect and work ok . server is working so only trouble client .somehow dns not update to client so there is no internet from that client , try to difference iphone to see
[deleted]
Thanks for replying. The same iphone device can connect to another openvpn server created on a windows server 2012 using SoftEther software and successfully surf the web. So I believe it is not something related to my iphone’s hardware and or software version. That is what confuses me so hardly. I wish I knew a way to troubleshoot this problem step by step. I lack proper networking knowledge.
[deleted]
Problem solved by deleting and then reinstalling openvpn app.