script to change interface in nat rule

I have a nat rule for a PPTP vpn however when the vpn goes down and gets re-established the interface in the rule is invalid. currently I have a schedule running every few minutes to fix the rule, there must be a better way besides running a schedule, any suggestions?


Thank you

PPTP what? Client, server? Client has own interface name, so it should be ok. For server it’s possible to add interface for client, which should work if one user isn’t conencting multiple times. Or it’s possible to have up/down script in PPP profile. I don’t know much about it, except that it’s there. Parameters are described in manual, so it should be possible to do something with that.