This happens because the default security policy has a deny action between local and trust zone. I need to modify this action to permit so they can successfully communicate with each other. For this i applied the following configuration:
#
security-policy
rule name test
source local
dest trust
action permit
#