A method of secure communication with the use of network sockets proxies comprising: • establishing a secure communications session between two devices called device_A and device_B , device_A comprising a proxy-firewall server and device_B comprising an agent of the proxy-firewall server called agent_B, agent_B initiating said establishment of the secure communications session by using a stand-alone proxy client that implements a secure communication protocol employing configuration data and credentials of a user account called user_As, said user account being defined by a configuration profile of device_B designated as a profile_B A , which configuration profile allows connecting to the account of the user_A of the device_A; • establishing proxies called "direct socket-proxies" of socket_A sockets as described in the profile_B A ; • establishing proxies called "reverse socket-proxies" of socket_B sockets as described in the profile_B A ; • protecting by request of the proxy-firewall server of device_A, communications of the sockets_A and reverse socket-proxies in the device_A by protecting the local sockets of the proxy-firewall server and the sockets_A involved in the communication, and configuring security contexts that are set up through network packets marking and filtering rules for these local communications, employing as a context delimiter parameter the user of the process of the operating system of the device_A which is the source of each local communication; and • protecting by request of the agent of device_B the communications of sockets_B and direct socket-proxies in the device_B by protecting the local sockets of the process_B and the local sockets of the stand-alone proxy client involved in the communication, and configuring security contexts that are set up through network packets marking and filtering rules for these local communications, using as the context delimiter parameter of such contexts the user of the operating system of device_B that is the source of each local communication. • establishing a secure communications session between two devices called device_A and device_B , device_A comprising a proxy-firewall server and device_B comprising an agent of the proxy-firewall server called agent_B, agent_B initiating said establishment of the secure communications session by using a stand-alone proxy client that implements a secure communication protocol employing configuration data and credentials of a user account called user_As, said user account being defined by a configuration profile of device_B designated as a profile_B A , which configuration profile allows connecting to the account of the user_A of the device_A; • establishing proxies called "direct socket-proxies" of socket_A sockets as described in the profile_B A ; • establishing proxies called "reverse socket-proxies" of socket_B sockets as described in the profile_B A ; • protecting by request of the proxy-firewall server of device_A, communications of the sockets_A and reverse socket-proxies in the device_A by protecting the local sockets of the proxy-firewall server and the sockets_A involved in the communication, and configuring security contexts that are set up through network packets marking and filtering rules for these local communications, employing as a context delimiter parameter the user of the process of the operating system of the device_A which is the source of each local communication; and • protecting by request of the agent of device_B the communications of sockets_B and direct socket-proxies in the device_B by protecting the local sockets of the process_B and the local sockets of the stand-alone proxy client involved in the communication, and configuring security contexts that are set up through network packets marking and filtering rules for these local communications, using as the context delimiter parameter of such contexts the user of the operating system of device_B that is the source of each local communication. <EOS>