I can just share how I do it in Linux.
On the PC
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
iptables -I INPUT 1 -s 192.168.2.15 -j ACCEPT
to clean up after you finish execute
iptables -t nat -F POSTROUTING
iptables -F INPUT
echo 0 > /proc/sys/net/ipv4/ip_forwardindent preformatted text by 4 spaces
ssh to the phone
on the phone add route to your home network (192.168.4.0/24)
ip route add default via 192.168.2.11
ip route add 192.168.4.0/24 via 192.168.2.11
add search and nameserver to /etc/resolv.conf
echo "search s-und-s.home" >> /etc/resolv.conf
echo "nameserver 192.168.4.1" >> /etc/resolv.conf