I’ve been trying to do this for a long time, with no luck. All solutions ّI found required root, and I didn’t want to root my Pixel 2. Using this method, no root is required, but all devices connecting to your phone’s wifi hotspot must support proxy (either http or socks).
All you need to do is connecting to vpn and enabling wifi hotspot. Then you need to also install an app called Every Proxy. It gives you a SERVER and PORT. You can configure other devices on the network to connect to that proxy server. Their connection passes through the vpn connection on your phone.
This method should also work without enabling wifi hotspot, when your phone and other devices are connected to the same wifi, but I haven’t tested that one.
I’ve verified that this will work when both phone and other devices are on the same WiFi network.
However, this does not accomplish the same thing as what you would expect. The expectation is that ALL traffic from the other device will be sent through the proxy and thus, travel over the VPN. This IS NOT what happens, only HTTP/Socks data will travel. You have to configure app-by-app on the other device to use the Proxy. This is not a good solution for blanket wrapping all traffic behind a VPN.