How to connect to the Internet via your server (VPN)?

Here I have a server in the middle of nowhere. How do I use it for surfing the web? What should I do to send all traffic through it was and accordingly was hidden my real ip? Th where to put what where to register? What?

Not found an adequate tutorial on the points in the network... but maybe the search is not able. I'd appreciate a link if anyone knows such.

Thank you.
September 19th 19 at 12:34
2 answers
September 19th 19 at 12:36
Solution
As a variant to lift on the server the L2TP server (in principle it is possible using different technology, just L2TP himself had set up), and on a machine which will go to the network to set the route: route-p add 0.0.0.0 mask 0.0.0.0 metric 1 IP_VPN_SERVER (for windows), with obviously a lower metric than the existing Internet gateway. Then all traffic will route to VPN server, and accordingly, the external IP will be the external address of the VPN server.
September 19th 19 at 12:38
The priority of the VPN is always higher than the local connection. If default routes are allowed to go in the Internet through VPN, then you will walk.

Find more questions by tags Network administrationVPN