check current routing map netstat -nr -f inet find the route to target ip route get HOSTNAME_OR_IP modify the script when VPN is up path: /etc/ppp/ip-up sample #!/bin/sh /sbin/route add -net 52.53.219.0/24 -interface $1