If you go to Nortel's support site, they have a number of documents available on setting up peer to peer IPsec tunnels using pre-shared key authentication. Find the appropriate one for your device, and set up the SmallWall end with the appropriate settings as described in the Nortel documentation.