I have a PPTP based VPN setup on a remote machine. This machine is a Windows 2008 R2 Datacenter edition VM.
The VPN connection does not have DHCP enabled and does not have an IPv4 default gateway.
Now with that I would like to use only in the instance of a particular protocol (say Voip or Bittorent). So if traffic originates from my machine it can use its default gateway and public internet to go out and come back. But for some instances I would like this traffic to go/come_back via VPN so from an outside perspective this traffic is not from my system (assuming that eavesdropping on VPN connection is not feasible due to encryption)
Routing normally happens based on source and IP addresses, not on protocols; only very high-end equipment can perform protocol-based routing.
The most you can do without using a "real" router to handle your connection is adding some static routes to your system, based on destination address; so you will be able to make traffic directed to specific addresses pass through your VPN, while all other traffic will keep going through your default gateway (i.e. your Internet connection).
Let's say you want the traffic directed to 209.85.148.105 (one of the addresses of
www.google.com
) go through your VPN connection, and your VPN is a point-to-point connection having 192.168.1.47 on your side and 192.168.1.48 on the remote end; then you could issue this command to achieve the desired result: