For auto routing on my pptp server I use similar script like this but with ${IPREMOTE} parameter
cat << "EOF" > /etc/ppp/ip-up
#!/bin/sh
case ${PEERNAME} in
(USERNAME1) ... ;;
(*) ... ;;
esac
EOF
chmod +x /etc/ppp/ip-up
So I really want to use the same concept on my client router
But I don't know the names of parameters for client like ${} , or pptp client can't do such thing ?