teamviewer with sock proxy / VPN to pass institute firewall

I'm trying to remote control my work ubuntu from my home mac.

The institute I study at uses a firewall, so I can access the network computers/applications either by connecting to a VPN or by ssh to an open tunnel through it I can access the rest of the computers on the network. If I want to control my work ubuntu using VNC viewer I can set a SOCK proxy when I ssh (or the VPN) and that bypasses the firewall.

However, when I try to connect to teamviewer to remote control my work ubuntu from my home mac both VPN and SOCK proxy fail. With SOCK proxy I get a "Teamviewer not running on partner computer" message. With VPN I get a "Reason unknown" message.

Can I change the configurations on my mac/teamviewer somehow to allow those?

Tagged: