I have home server with Debian installed
When I turn on openvpn it creates new interface - tun0
It also adds some routing rules for that interface, including 0.0.0.0/1 via 192.168.101.1 dev tun0
, but I always delete this rule to make eth0
default interface so everything goes via it by default
I want to setup that server as gateway, and make all data forward from eth0
to tun0
Then I could just change default gateway to server's ip on any device in lan to use vpn
And the question is how can I do this?