Hi everyone. I know that it's "yet another <subject>" but I didn't found any solution for my case - I can successfully connect to server (Initialization Sequence Completed) but no internet and no ping to 10.8.0.1 I disabled both client and server ufw to make sure that it's not a problem. But I can connect to server by ssh with it's real ip. Any ideas?
Thanks for help!
`net.ipv4.ip_forward = 1` is set, `ufw allow 1194/udp` and `DEFAULT_FORWARD_POLICY="ACCEPT"` too
I also added:
*nat
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE
COMMIT
port 1194
proto udp
dev tun
ca server/ca.crt
cert server/openvpn.crt
key server/openvpnserver.key
dh none
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-crypt server/ta.key
cipher AES-256-GCM
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log
verb 3
explicit-exit-notify 1
client
dev tun
proto udp
remote <myserverip>1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-GCM
auth SHA256
verb 3
key-direction 1
# for clients which USE systemd-resolved
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre
dhcp-option DOMAIN-ROUTE .
;keys and cert down there