# Security Solutions: Firewall Fundamentals (TryHackMe)

In this article, I will write a write-up for Firewall Fundamentals that covers What is the Purpose of a Firewall, Types of Firewalls, Rules in Firewalls, Windows Defender Firewall, and Linux iptables Firewall.

1. Which security solution inspects the incoming and outgoing traffic of a device or a network? `Firewall`
    
2. Which type of firewall maintains the state of connections? `Stateful Firewall`
    
3. Which type of firewall offers heuristic analysis for the traffic? `next-generation firewall`
    
4. Which type of firewall inspects the traffic coming to an application? `proxy firewall`
    
5. Which type of action should be defined in a rule to permit any traffic? `allow`
    
6. What is the direction of the rule that is created for the traffic leaving our network? `outbound`
    
7. What is the name of the rule that was created to block all incoming traffic on the SSH port? `Core Op`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1730645349819/1c0325a7-73a7-4a86-a281-61e259d45928.png align="center")
    
8. A rule was created to allow SSH from one single IP address. What is the rule name? `Infra team`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1730645367168/5ccc648a-d023-448e-911f-84a50a241788.png align="center")
    
9. Which IP address is allowed under this rule? `192.168.13.7`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1730645385500/e9b4f630-79dc-4ae2-94ad-621e6baa714e.png align="center")
    
10. Which Linux firewall utility is considered to be the successor of "iptables"? `nftables`
    
11. What rule would you issue with ufw to deny all outgoing traffic from your machine as a default policy? (answer without sudo) `ufw default deny outgoing`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1730645406853/aea0d069-0654-4dde-ae91-616c8a137f46.png align="center")
    

Thank you for reading my article. Please leave any questions or comments on improving my learning journey and the THM challenges.
