Unfortunately that didn't help:
ubuntu@ip-172-31-26-XX:~# sudo iptables -L -n -v -t nat | grep -A 2 POSTROUTING
Chain POSTROUTING (policy ACCEPT 62 packets, 6200 bytes)
pkts bytes target prot opt in out source destination
350 24368 MASQUERADE all -- * eth0 0.0.0.0/0 0.0.0.0/0
root@ip-172-31-26-XX:~#
bytes column increases each time I try to reach any website from the client.
I also printed logs on the client side:
2019-12-28 12:57:07 1
2019-12-28 12:57:07 ----- OpenVPN Start -----
OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2019-12-28 12:57:07 OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2019-12-28 12:57:07 Frame=512/2048/512 mssfix-ctrl=1250
2019-12-28 12:57:07 UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [user] [nobody]
7 [group] [nogroup]
8 [persist-key]
9 [persist-tun]
13 [auth-nocache]
14 [verb] [3]
2019-12-28 12:57:07 EVENT: RESOLVE
2019-12-28 12:57:07 Contacting [64:ff9b::*:1194/UDP via UDP
2019-12-28 12:57:07 EVENT: WAIT
2019-12-28 12:57:07 Connecting to [*SERVER NAME*]:1194 (64:ff9b::*) via UDPv6
2019-12-28 12:57:07 EVENT: CONNECTING
2019-12-28 12:57:07 Tunnel Options:V4,dev-type tun,link-mtu 1601,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA512,keysize 256,key-method 2,tls-client
2019-12-28 12:57:07 Creds: UsernameEmpty/PasswordEmpty
2019-12-28 12:57:07 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 3.1.1-2819
IV_VER=3.git::2ae73415
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_AUTO_SESS=1
2019-12-28 12:57:08 VERIFY OK : depth=1
cert. version : 3
serial number : 5A:1B:6E:9F:1B:FF:CE:76:5C:C1:5C:70:00:8B:91:E4:AB:31:0E:2F
issuer name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=Fort-Funston CA, ??=EasyRSA, emailAddress=me@myhost.mydomain
subject name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=Fort-Funston CA, ??=EasyRSA, emailAddress=me@myhost.mydomain
issued on : 2019-12-27 12:24:48
expires on : 2029-12-24 12:24:48
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=true
2019-12-28 12:57:08 VERIFY OK : depth=0
cert. version : 3
serial number : 01
issuer name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=Fort-Funston CA, ??=EasyRSA, emailAddress=me@myhost.mydomain
subject name : C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=server, ??=EasyRSA, emailAddress=me@myhost.mydomain
issued on : 2019-12-27 12:26:36
expires on : 2029-12-24 12:26:36
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name : server
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2019-12-28 12:57:08 SSL Handshake: TLSv1.2/TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384
2019-12-28 12:57:08 Session is ACTIVE
2019-12-28 12:57:08 EVENT: GET_CONFIG
2019-12-28 12:57:08 Sending PUSH_REQUEST to server...
2019-12-28 12:57:08 OPTIONS:
0 [redirect-gateway] [def1]
1 [block-outside-dns]
2 [dhcp-option] [DNS] [8.8.8.8]
3 [dhcp-option] [DNS] [8.8.4.4]
4 [route-gateway] [10.8.0.1]
5 [topology] [subnet]
6 [ping] [10]
7 [ping-restart] [120]
8 [ifconfig] [10.8.0.4] [255.255.255.0]
9 [peer-id] [0]
10 [cipher] [AES-256-GCM]
2019-12-28 12:57:08 PROTOCOL OPTIONS:
cipher: AES-256-GCM
digest: SHA512
compress: NONE
peer ID: 0
2019-12-28 12:57:08 EVENT: ASSIGN_IP
2019-12-28 12:57:08 NIP: preparing TUN network settings
2019-12-28 12:57:08 NIP: init TUN network settings with endpoint: 64:ff9b::*
2019-12-28 12:57:08 NIP: adding IPv4 address to network settings 10.8.0.4/255.255.255.0
2019-12-28 12:57:08 NIP: adding (included) IPv4 route 10.8.0.0/24
2019-12-28 12:57:08 NIP: redirecting all IPv4 traffic to TUN interface
2019-12-28 12:57:08 NIP: adding DNS 8.8.8.8
2019-12-28 12:57:08 NIP: adding DNS 8.8.4.4
2019-12-28 12:57:08 Connected via NetworkExtensionTUN
2019-12-28 12:57:08 EVENT: CONNECTED *SERVER NAME*:1194 (64:ff9b::*IP*) via /UDPv6 on NetworkExtensionTUN/10.8.0.4/ gw=[/]
I'm connected using IPv6 stack, don't know if it might be the issue.
Also found that:
gw=[/] Does that mean there is no gateway?