Sorry, that line needs to be add to /etc/rc.d/init.d/masq via a custom template. If you run it from the command-line, $OUTERNET is (probably) undefined, so you will see that error.
Add the line to the 10masq_ipsec file mentioned above.
And I made a typo before - this is for ESP packets, not AH packets.
Gordon