OpenVPN does not route traffic on Ubuntu Hostinger VPS

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

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

Post Reply
robifz
OpenVpn Newbie
Posts: 2
Joined: Thu Jan 25, 2024 2:07 pm

OpenVPN does not route traffic on Ubuntu Hostinger VPS

Post by robifz » Thu Jan 25, 2024 2:20 pm

I have installed openVPN and started it but I cannot even ping 8.8.8.8 after it has started.
I had already tried expressvpn and that had the same problem.
So I tend to think it has something to do with my Ubuntu network config. It is the basic one that is supplied by the hosting provider Hostinger.
The server has a fixed IP address but the default gateway has a strange IP address like an APIPA one.
Would this stop a VPN from working?
TIA
This is the log file....
2024-01-25 00:41:45 WARNING: file '/VPN/credentials.txt' is group or others accessible
2024-01-25 00:41:45 OpenVPN 2.5.9 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 29 2023
2024-01-25 00:41:45 library versions: OpenSSL 3.0.2 15 Mar 2022, LZO 2.10
2024-01-25 00:41:45 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
2024-01-25 00:41:45 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-01-25 00:41:45 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
2024-01-25 00:41:45 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
2024-01-25 00:41:45 TCP/UDP: Preserving recently used remote address: [AF_INET]173.239.199.183:1195
2024-01-25 00:41:45 Socket Buffers: R=[212992->425984] S=[212992->425984]
2024-01-25 00:41:45 UDP link local: (not bound)
2024-01-25 00:41:45 UDP link remote: [AF_INET]173.239.199.183:1195
2024-01-25 00:41:45 TLS: Initial packet from [AF_INET]173.239.199.183:1195, sid=f45c902d ff70cbd5
2024-01-25 00:41:45 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2024-01-25 00:41:45 VERIFY OK: depth=1, C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=ExpressVPN CA, emailAddress=support@expressvpn.com
2024-01-25 00:41:45 VERIFY OK: nsCertType=SERVER
2024-01-25 00:41:45 VERIFY X509NAME OK: C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=Server-10830-0a, emailAddress=support@expressvpn.com
2024-01-25 00:41:45 VERIFY OK: depth=0, C=VG, ST=BVI, O=ExpressVPN, OU=ExpressVPN, CN=Server-10830-0a, emailAddress=support@expressvpn.com
2024-01-25 00:41:45 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1554', remote='link-mtu 1606'
2024-01-25 00:41:45 WARNING: 'auth' is used inconsistently, local='auth [null-digest]', remote='auth SHA512'
2024-01-25 00:41:45 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bit RSA, signature: RSA-SHA256
2024-01-25 00:41:45 [Server-10830-0a] Peer Connection Initiated with [AF_INET]173.239.199.183:1195
2024-01-25 00:41:46 SENT CONTROL [Server-10830-0a]: 'PUSH_REQUEST' (status=1)
2024-01-25 00:41:46 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 10.39.0.1,comp-lzo no,route 10.39.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.39.3.14 10.39.3.13,peer-id 31,cipher AES-256-GCM'
2024-01-25 00:41:46 OPTIONS IMPORT: timers and/or timeouts modified
2024-01-25 00:41:46 OPTIONS IMPORT: compression parms modified
2024-01-25 00:41:46 OPTIONS IMPORT: --ifconfig/up options modified
2024-01-25 00:41:46 OPTIONS IMPORT: route options modified
2024-01-25 00:41:46 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
2024-01-25 00:41:46 OPTIONS IMPORT: peer-id set
2024-01-25 00:41:46 OPTIONS IMPORT: adjusting link_mtu to 1629
2024-01-25 00:41:46 OPTIONS IMPORT: data channel crypto options modified
2024-01-25 00:41:46 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2024-01-25 00:41:46 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2024-01-25 00:41:46 net_route_v4_best_gw query: dst 0.0.0.0
2024-01-25 00:41:46 net_route_v4_best_gw result: via 169.254.0.1 dev eth0
2024-01-25 00:41:46 ROUTE_GATEWAY 169.254.0.1
2024-01-25 00:41:46 TUN/TAP device tun0 opened
2024-01-25 00:41:46 net_iface_mtu_set: mtu 1500 for tun0
2024-01-25 00:41:46 net_iface_up: set tun0 up
2024-01-25 00:41:46 net_addr_ptp_v4_add: 10.39.3.14 peer 10.39.3.13 dev tun0
2024-01-25 00:41:46 /etc/openvpn/update-systemd-resolved tun0 1500 1629 10.39.3.14 10.39.3.13 init
<14>Jan 25 00:41:46 update-systemd-resolved: Link 'tun0' coming up
<14>Jan 25 00:41:46 update-systemd-resolved: Adding DNS Routed Domain .
<14>Jan 25 00:41:46 update-systemd-resolved: Adding IPv4 DNS Server 10.39.0.1
<14>Jan 25 00:41:46 update-systemd-resolved: SetLinkDNS(3 1 2 4 10 39 0 1)
<14>Jan 25 00:41:46 update-systemd-resolved: SetLinkDomains(3 1 . true)
2024-01-25 00:41:48 net_route_v4_add: 173.239.199.183/32 via 169.254.0.1 dev [NULL] table 0 metric -1
2024-01-25 00:41:48 sitnl_send: rtnl: generic error (-101): Network is unreachable
2024-01-25 00:41:48 ERROR: Linux route add command failed
2024-01-25 00:41:48 net_route_v4_add: 0.0.0.0/1 via 10.39.3.13 dev [NULL] table 0 metric -1
2024-01-25 00:41:48 net_route_v4_add: 128.0.0.0/1 via 10.39.3.13 dev [NULL] table 0 metric -1
2024-01-25 00:41:48 net_route_v4_add: 10.39.0.1/32 via 10.39.3.13 dev [NULL] table 0 metric -1
2024-01-25 00:41:48 Initialization Sequence Completed

Post Reply