Hello Ali ,
It seems as if the gateway security is rejecting your connection requests.
You can try maintaining the ACL files .
The possible solutions seems to be setting the prxyinfo gateway security correctly.
You can do this by going to SMGW-->Goto-->Expert Functions-->External security-->Maintenance of ACL files-->switch to tab prxyinfo and delete all lines . Activate and Save.
Regards,
Suneeth