Issues with VPN over SSH on Raspberry Pi

I have a Raspberry Pi set up with OpenVPN. I’m using the Network Manager (on Linux Mint) as the client, and I want to connect to SSH remotely.

Since my laptop and my Pi are both on the same Wi-Fi connection, I switched my laptop to a hotspot from my phone, and then switched on the VPN. It worked as expected.

I tried to limit the IP address to the Pi’s IP address in the firewall, but the SSH server rejected the connection. When I checked the journal on the Pi, SSH logged the hotspot address instead of the VPN address.

Am I doing something wrong, or is this not possible on the same machine?

Just use Wireguard instead. Way better

It won’t work no matter what. I even tried it with an SSH tunnel. Oh well…

SSH to the rpi’s OpenVPN tunnel address

Are you trying to SSH into the open on IP on the pi, or the LAN IP of the PI?

Thanks for the replies, but I’ve given up on it. It really isn’t that big of a deal.

How can I learn about something like this that you are doing? Is there a website for this? Or just you bought the raspberry and learned through trial and error.