I have done a very similar project using BeagleBone and Python which the related code can be found here:
https://github.com/mahyaret/MiniAutomation
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxsudo apt-get install pptpd
2:
sudo nano /etc/pptpd.conf
3: Add server IP and client IP at the end of the file. You can add like below:
localip 192.168.2.100 remoteip 192.168.2.101-200
localip is the ip address of the server in the network and remoteip is the range you specify for vpn clients to join your network.