Please provide a detailed response to the following question: What are the primary functions of a firewall in network security? Your response should contain at least 5 sentences and should highlight at least 2 sections in your answer with markdown, i.e., *highlighted section*. Additionally, include a postscript starting with P.S. and ensure your entire response is in English, and in all lowercase letters. no capital letters are allowed.
user