wouldnt it be nice to have a possibility to share the Raspberry as an VPN-Gateway for all Devices within in an Homenetwork? You see, TV, Mobilephone, Printer ect…
I use VPN/Surfshark. For me its impossible to config such a thing.
You can either setup the settings static and configure the RPi as gateway for the devices you wish, or create an advanced configuration for dhcp with dnsmasq (included in pihole or standalone), where you’ll be able to set the gateway per device individually.
Reading your Posts gives me the impression, that other Devices can use the Raspberry as Gateway by simply changing their IP4/Gateway configuration to the IP of the Raspberry, correct? I did this, but it didnt work out. What do I miss?
I think dhcp with dnsmasq is a good idea and I will try it out. But I would prefer that all my devices have the same Range for their IP-Adresses so that the devices can reach each other regardless one is using the Rasp as Gateway or the main router.
before going to change DHCP settings on the entire network, you would need to get one device running. Best to start with a computer where you can change easily the getaway IP pointing to your DietPi device. On DietPi the VPN needs to be active as well as IP forwarding. Can you check following. It should return 1