Use ifconfig to find the SME server's external IP. I'm not sure if having a router in front of the SME box on the remote side is a supported configuration; typically the SME boxes ARE the gateway/routers. Perhaps you can put the SME box in a DMZ using the router's setup, or find out exactly which ports you'll need to forward. I'm not sure what values you'd need to enter in the IPSec setup!