Zend certified PHP/Magento developer

How I can make VPS rotate traffic coming from PC-02 to RPI-01?

I would like to ask a question:

How can I control a Raspberry remotely via ssh by rotating traffic through a VPS with VPN (openvpn-server) installed?

Important condition: It’s not possible to change the firewall and router rules in LAN-01 that’s why I opted for a cloud VPS.

Premise, this is my current configuration:

  • RPI-01 = Raspberry (Raspbian)
  • PC-02 = Personal Laptop (Ubuntu desktop)
  • VPS = Amazon aws EC2 (Ubuntu server)
    • VPN = openvpn

The answer I gave myself that I should configure:

  1. VPS = openvpn-server
  2. RPI-01 & PC-02 = openvpn-clients.

Considering that the SSH protocol is (tcp) I should configure openvpn in such a way that it accepts ssh traffic but the issue is that I didn’t quite understand how I can make VPS rotate traffic coming from PC-02 to RPI-01 and vice versa?.

PC-02(LAN1) <—VPN+SSH—> VPS(opepnvpn-server) <—VPN+SSH—> PC-01(LAN2)

Thanks u all