Install tun2socks‌‌
Create interface:‌‌

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

bind connection:

badvpn-tun2socks --tundev tun0 --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:1080

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

ssh -D 127.0.0.1:1080 <user>@192.168.178.231

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 192.168.178.231 gw 192.168.178.1 metric 5
sudo route add default gw 10.0.0.2 metric 6

References:
https://superuser.com/questions/469094/how-to-create-a-virtual-interface-from-a-socks-proxy
https://unix.stackexchange.com/questions/271167/how-to-setup-tun2socks-from-badvpn
https://code.google.com/archive/p/badvpn/wikis/tun2socks.wiki