What is the value set to localnet and externip parameters? NAT will not work without setting these parameters. These are global parameters.

Regards,
Amit Patkar