i try to setup a vpn server open vpn in my server but i met some problems
i follow stryctly this tutorial for that : https://infotechys.com/install-openvpn-on-ubuntu-24-04/My server is an ubuntu 24 and my client a windows 11 with the open vpn connect client
i double check the procedure, the logs, i dont see the problem but i still don't have internet on my window when the VPN is ON
this is the server logs (on a client connexion)
2025-04-02 23:23:25 37.169.39.236:18239 VERIFY OK: depth=1, CN=jgdev.fr2025-04-02 23:23:25 37.169.39.236:18239 VERIFY OK: depth=0, CN=android.jgdev.fr2025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_VER=3.10.52025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_PLAT=win2025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_NCP=22025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_TCPNL=12025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_PROTO=29742025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_MTU=16002025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_CIPHERS=AES-128-CBC:AES-192-CBC:AES-256-CBC:AES-128-GCM:AES-192-GCM:AES-256-GCM:CHACHA20-POLY13052025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_AUTO_SESS=12025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_GUI_VER=OCWindows_3.6.0-40742025-04-02 23:23:25 37.169.39.236:18239 peer info: IV_SSO=webauth,crtext2025-04-02 23:23:25 37.169.39.236:18239 TLS: move_session: dest=TM_ACTIVE src=TM_INITIAL reinit_src=12025-04-02 23:23:25 37.169.39.236:18239 TLS: tls_multi_process: initial untrusted session promoted to trusted2025-04-02 23:23:26 37.169.39.236:18239 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bits RSA, signature: RSA-SHA256, peer temporary key: 253 bits X255192025-04-02 23:23:26 37.169.39.236:18239 [android.jgdev.fr] Peer Connection Initiated with [AF_INET]37.169.39.236:182392025-04-02 23:23:26 android.jgdev.fr/37.169.39.236:18239 MULTI_sva: pool returned IPv4=10.8.0.6, IPv6=(Not enabled)2025-04-02 23:23:26 android.jgdev.fr/37.169.39.236:18239 MULTI: Learn: 10.8.0.6 -> android.jgdev.fr/37.169.39.236:182392025-04-02 23:23:26 android.jgdev.fr/37.169.39.236:18239 MULTI: primary virtual IP for android.jgdev.fr/37.169.39.236:18239: 10.8.0.62025-04-02 23:23:26 android.jgdev.fr/37.169.39.236:18239 SENT CONTROL [android.jgdev.fr]: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 8.8.8.8,route 10.8.0.1,topology net30,ping 10,ping-restart 120,ifcon>2025-04-02 23:23:26 android.jgdev.fr/37.169.39.236:18239 PUSH: Received control message: 'PUSH_REQUEST'2025-04-02 23:23:27 android.jgdev.fr/37.169.39.236:18239 Data Channel: cipher 'AES-256-GCM', peer-id: 02025-04-02 23:23:27 android.jgdev.fr/37.169.39.236:18239 Timers: ping 10, ping-restart 2402025-04-02 23:23:27 android.jgdev.fr/37.169.39.236:18239 Protocol options: protocol-flags cc-exit tls-ekm dyn-tls-crypt
and the client log
Configuration IP de WindowsCache de résolution DNS vidé.Wed Apr 2 17:23:37 2025 connection from C:\Program Files\OpenVPN Connect\OpenVPNConnect.exeWed Apr 2 17:23:37 2025 HTTP request received from NAMED_PIPEHTTP Requestmethod=POSTuri=/add-bypass-routeversion=1/1[0] Host=\\.\pipe\agent_ovpnconnect[1] Content-Type=application/json[2] Content-Length=47[3] Accept=*/*Wed Apr 2 17:23:37 2025 GetBestGateway: selected gateway 10.192.58.14 on adapter 3 for destination 37.187.78.169Wed Apr 2 17:23:37 2025 netsh interface ip add route 37.187.78.169/32 3 10.192.58.14 store=activeOk.Wed Apr 2 17:23:39 2025 connection from C:\Program Files\OpenVPN Connect\OpenVPNConnect.exeWed Apr 2 17:23:39 2025 HTTP request received from NAMED_PIPEHTTP Requestmethod=POSTuri=/tun-setupversion=1/1[0] Host=\\.\pipe\agent_ovpnconnect[1] Content-Type=application/json[2] Content-Length=1053[3] Accept=*/*Wed Apr 2 17:23:39 2025 GetBestGateway: selected gateway 10.192.58.14 on adapter 3 for destination 37.187.78.169Wed Apr 2 17:23:39 2025 proxy_auto_config_url Wed Apr 2 17:23:40 2025 TUN SETUPTAP ADAPTERS:guid='{FBE71A6F-3BA5-4B1B-9E7B-6702B606381A}' index=27 name='Connexion au réseau local'Open TAP device "Connexion au réseau local" PATH="\\.\Global\{FBE71A6F-3BA5-4B1B-9E7B-6702B606381A}.tap" SUCCEEDEDTAP-Windows Driver Version 9.27ActionDeleteAllRoutesOnInterface iface_index=27netsh interface ip set interface 27 metric=9000Ok.netsh interface ip set address 27 static 10.8.0.6 255.255.255.252 gateway=10.8.0.5 store=activeIPHelper: add route 10.8.0.1/32 27 10.8.0.5 metric=-1netsh interface ip add route 37.187.78.169/32 3 10.192.58.14 store=activeLÔÇÖobjet existe d├®j├á.netsh interface ip add route 0.0.0.0/1 27 10.8.0.5 store=activeOk.netsh interface ip add route 128.0.0.0/1 27 10.8.0.5 store=activeOk.netsh interface ip set dnsservers 27 static 8.8.8.8 register=primary validate=noNRPT::ActionCreate pid=[25904] domains=[] dns_servers=[8.8.8.8] dnssec=[0] id=[OpenVPNDNSRouting-25904]DNS::ActionApply: successfulActionBase openvpn_app_path=C:\Program Files\OpenVPN Connect\OpenVPNConnect.exe tap_index=27 enable=1permit IPv4 requests from OpenVPN apppermit IPv6 requests from OpenVPN appblock IPv4 requests from other appsblock IPv6 requests from other appsallow IPv4 traffic from TAPallow IPv6 traffic from TAPblock IPv4 DNS requests to loopback from other appsblock IPv6 DNS requests to loopback from other appsipconfig /flushdnsConfiguration IP de WindowsCache de résolution DNS vidé.TAP: ARP flush succeededWed Apr 2 17:23:40 2025 TUN CONFIRM
the jgdev.fr is my domain name on the server. the android.jgdev.fr mean nothing but i have to give a CN when i generated the client certificate.
Do you see something wrong or missing in the tutorielor in the logs which can explain my problem ? (internet is full of this question but nobody answer the same things so i dont want mess my configuration, prefer be precise than try a thousand things)
thanks for your hlmp !