PPTP VPN not working

Hii Guys,
I’m trying to connect my OSMC to my home network trough PPTP.
Yes I know, openVPN is more secure blablabla.

This is my /etc/ppp/ip-up.d/vpn-up file

#!/bin/bash
H=`ps aux | grep 'pppd pty' | grep -v grep | awk '{print $14}'`
DG=`route -n | grep UG | awk '{print $2}'`
DEV=`route -n | grep UG | awk '{print $8}'`
route add -host $H gw $DG dev $DEV
route del default $DEV
route add default dev ppp0

and when I run
sudo pppd pty "pptp IP_FOR_SERVER --nolaunchpppd" file /etc/ppp/options.pptp user USERNAME password PASSWORD

It showsup nothing in the console, but when I look in /var/log/ppp-connect-errors it says: sh: 1: /bin/ip: not found
how can I fix this??
I’m not a linux guru so if you give a command I should try, explain what it does please :smile:

Well you need to install the “ip” program which is done with sudo apt-get install iproute2

thanks, the error is gone now :smile:
but the VPN connection is (as far as I can tell) not made as ppp0 is not in the ifconfig output :\

Well searching for PPTP on this forum will bring you a couple of threads that should give you some input. Nevertheless AFAIK there is still a potential conflict with connman.
https://discourse.osmc.tv/search?q=pptp

Gonna look into it, I’ve done some searching, but I think I’ve used the wrong search string :smile: