I am trying to route traffic only for a specific domain over a VPN. I found what seems to be the answer in another question:
Create the file /etc/ppp/ip-up with following content: #!/bin/sh /sbin/route add SUBNET $5 replacing SUBNET with subnet, you want to route through VPN (for ex. 192.168.0.0/16) execute as root: chmod 0755 /etc/ppp/ip-up This file will be executed each time you connect to VPN.
I know how to create / save the file, where I am having trouble is determining the value for SUBNET. I don't know if I have to just pick up the value of the subnet from either my ethernet or VPN network preference panels, or I need to create a subnet somehow to define it as being only applicable to a certain domain.