In a couple of previous posts, I showed how you can connect a Raspberry Pi to Ubuntu using a direct Ethernet cable, no need for a router, switch, or wifi. But if you have a VPN on the Ubuntu machine, you may need to take a few extra steps to get the Raspberry Pi connected.