I'm not sure whether the question's title describes what I'm trying to achieve...
Anyway, it is coronavirus outbreak, and I'm grounded at home. My employer has very strict security/hardware polices that allow only company-approved laptops (MacBooks) to connect to the most of company resources. On top of that we can connect only through VPN. At home I have pretty powerful linux machine that is collecting dust, while it can save hours of compile time/time to spin up docker containers, etc...
I have full admin access both to my Mac, Linux machine and home router, so I got the idea that I can use Mac as VPN or proxy server to connect to corporate network from my Linux machine:
Linux workstation ---- (VPN or Proxy config + some router network magic) ---> MacBook --- VPN ----> Corporate Network
Does it sound like a feasible solution?
Bonus question:
I do lots work through terminal, so it'd be nice if this setup will make it work seamless as well (i.e. can I just copy my SSH private/public keys from Mac to Linux machine or proxy SSH/CMD things as well)?
In case it matters for answer: Router: Netgear c3700 Mac OS version: Catalina 10.15.4 Linux machine OS: Ubuntu 20.04