Hello,
The "rfcexec.sec" file is only used by the rfcexec program. It allows you to set security rules, configuring what rfcexec will allow to be executed. The SAP note 1581595 can help you understand it.
The "rfcexec.sec" file will not prevent other computers from opening RFC connections to the Gateway.
Kind regards,
Isaías