Hello guys, i configure my openvpn server on virtualbox made router, but when i connect with client i lose internet and lose connection to my virtual router.
I found out that push "redirect-gateway def1" cause this. Can someone help me?
Im using ubuntu 21.04
server conf:
user nobody
group nogroup
dev tun
port 1194
proto udp
server 10.8.0.0 255.255.255.0
topology subnet
client-to-client
keepalive 10 60
persist-tun
persist-key
push "route 10.8.0.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DOMAIN lan"
push "persist-tun"
push "persist-key"
client conf:
dev tun
nobind
client
remote 192.168.56.2 1194 udp
auth-nocache
remote-cert-tls server
i tried reading this:
https://openvpn.net/community-resources/how-to/#redirect
but none of those things helped me. and also tried using this flowchart:
https://forums.openvpn.net/viewtopic.php?f=6&t=10923
im stuck at pinging 8.8.8.8 :/
if you need extra info, just write