We have a problem trying to use the RFC through a firewall. Even the "ping" does not work; however, the SAP GUI connection doesn't show a problem. What could be the reason?
SAP GUI uses port 32xx, whereas  RFC uses port 33xx. Please check that 33xx is opened in the RAS connection.