The document presents a new security model that combines an intrusion detection system (IDS) and an open-source firewall using Python. This model enables the IDS to automatically update the firewall's filtering rules in real-time when suspicious activities are detected, enhancing network protection against potential threats. The proposed system aims to streamline network security management by proactively modifying the firewall settings based on traffic analysis.