Hello, i just want to clarify that tun0 is connected through the internet to openvpn server via vpnclient such as
openvpn --config server.ovpn
What im lacking is routing knowledge, because if i do for instance:
route del default dev ppp0; route add default dev tun0
i loose internet connection of course and connection to vpn server.
i also tried to add:
route add -host 10.10.0.40(which is tun0 ip assigned from vpn server) gw 10.10.0.1 dev ppp0
then i added tun0 to be default route again same problem.
to recap i would like that when i check ip address from every machine inside the lan (which includes linux server of course) that ip address from vpn to be displayed instead of public ip assigned to ppp0, and that all internet traffic goes to vpn so that connection will be encrypted.
I know that you already understood me from the first post but i just wanted to update you so you can see what ive done wrong.
please enlighten me 🙂
Thanks