how can /etc/ppp/ip-up tell which VPN service is used in OS X
Taking a page from this answer: https://superuser.com/a/206826/48893 you can write an ip-up script that tests $1 and selectively execute commands for a given vpn interface.