Install tun2socks‌‌
Create interface:‌‌

sudo ip tuntap add dev tun0 mode tun user <someuser>
sudo ifconfig tun0 netmask

bind connection:

badvpn-tun2socks --tundev tun0 --netif-ipaddr --netif-netmask --socks-server-addr

This will expect an dynamic ssh-tunnel on In another terminal:

ssh -D <user>@

Now you need to set the 2 routes, one to the ssh-server and one default-gatway, so all traffic is routed to there:

sudo route add gw metric 5
sudo route add default gw metric 6