A method for managing a physical communication interface on a communication device (201; 600), wherein the physical communication interface includes a WiFi interface, the method comprising: operating a first communication interface management unit in a first container operating on the communication device, the first communication interface management unit managing a connection to a first virtual communication interface having a network connection with the physical communication interface; concurrently with the operation of the first communication interface, operating a second communication interface management unit in a second container operating on the communication device, the second communication interface management unit managing a connection to a second virtual communication interface having a network connection with the physical communication interface, wherein the first container and the second container are operating system containers that are separated from each other and share a kernel of an operating system of the communication device (201; 600); characterized in configuring each of the first and the second communication interface management unit to operate in: a control mode in which the communication interface management unit controls a connection with the physical communication interface, or a monitor mode in which the communication interface management unit monitors the connection with the physical communication interface; wherein, in the event that the first container is in focus and the first communication interface management unit is operating in the control mode and connects to a WiFi network (SSID 1), wherein profiles of the second container do not permit access to the WiFi network (SSID 1), then, after switching focus from the first container to the second container, the first communication interface management unit keeps operating in the control mode, and the second communication interface management unit operates in the monitor mode. operating a first communication interface management unit in a first container operating on the communication device, the first communication interface management unit managing a connection to a first virtual communication interface having a network connection with the physical communication interface; concurrently with the operation of the first communication interface, operating a second communication interface management unit in a second container operating on the communication device, the second communication interface management unit managing a connection to a second virtual communication interface having a network connection with the physical communication interface, wherein the first container and the second container are operating system containers that are separated from each other and share a kernel of an operating system of the communication device (201; 600); characterized in configuring each of the first and the second communication interface management unit to operate in: a control mode in which the communication interface management unit controls a connection with the physical communication interface, or a monitor mode in which the communication interface management unit monitors the connection with the physical communication interface; wherein, in the event that the first container is in focus and the first communication interface management unit is operating in the control mode and connects to a WiFi network (SSID 1), wherein profiles of the second container do not permit access to the WiFi network (SSID 1), then, after switching focus from the first container to the second container, the first communication interface management unit keeps operating in the control mode, and the second communication interface management unit operates in the monitor mode. a control mode in which the communication interface management unit controls a connection with the physical communication interface, or a monitor mode in which the communication interface management unit monitors the connection with the physical communication interface; wherein, in the event that the first container is in focus and the first communication interface management unit is operating in the control mode and connects to a WiFi network (SSID 1), wherein profiles of the second container do not permit access to the WiFi network (SSID 1), then, after switching focus from the first container to the second container, the first communication interface management unit keeps operating in the control mode, and the second communication interface management unit operates in the monitor mode.