Forwarding traffic through SOCKS5 or SSH on microtik

Hello there,

I wanna know if there’s anyway to spread a SOCKS5 proxy network traffic or SSH on microtik for the users that are connected to the microtik to be already on that proxy or SSH tunnel? I mean all the clients’ traffic goes through those proxies or SSH tunneling.
I know it is possible through PPTP to route traffic from another microtik on an external server to our microtik but I wanna know about SOCKS5 and SSH.

Thanks in advance.