Linux+ V7 Basic Firewall Rules with iptables Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 8865 | Total Attempts: 106,055
| Questions: 20 | Updated: Aug 13, 2026
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1. What is the purpose of the OUTPUT chain in iptables?

Submit
Please wait...
About This Quiz
Linux+ V7 Basic Firewall Rules With Iptables Quiz - Quiz

This quiz evaluates your understanding of iptables firewall configuration and basic packet filtering rules in Linux. You will be tested on chain management, rule syntax, connection states, and network security fundamentals essential for Linux+ V7 certification. Master these concepts to effectively secure Linux systems using iptables.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which iptables command sets the default policy for a chain to DROP?

Submit

3. What is the purpose of the -i flag in an iptables rule?

Submit

4. To block ICMP ping requests, which iptables rule would you use?

Submit

5. Which command inserts a rule at a specific position in an iptables chain?

Submit

6. What does the -d flag specify in an iptables rule?

Submit

7. Which file stores iptables rules persistently across reboots on most systems?

Submit

8. What does REJECT do differently than DROP in iptables?

Submit

9. To deny all traffic from a specific IP address, which rule would you use?

Submit

10. Which iptables option allows you to specify a range of ports?

Submit

11. Which iptables chain is responsible for filtering incoming packets destined for the local system?

Submit

12. Which iptables command removes all rules from a specific chain?

Submit

13. What does the -p flag specify in an iptables rule?

Submit

14. Which command lists all current iptables rules with line numbers?

Submit

15. What does the -m state --state ESTABLISHED,RELATED option allow in iptables?

Submit

16. To allow SSH access on port 22 from any source, which iptables rule would you use?

Submit

17. Which iptables target is used to silently discard packets without sending a response?

Submit

18. What does the -s flag represent in an iptables rule?

Submit

19. Which iptables command option is used to append a new rule to a chain?

Submit

20. What is the default policy for the FORWARD chain in a newly initialized iptables firewall?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is the purpose of the OUTPUT chain in iptables?
Which iptables command sets the default policy for a chain to DROP?
What is the purpose of the -i flag in an iptables rule?
To block ICMP ping requests, which iptables rule would you use?
Which command inserts a rule at a specific position in an iptables...
What does the -d flag specify in an iptables rule?
Which file stores iptables rules persistently across reboots on most...
What does REJECT do differently than DROP in iptables?
To deny all traffic from a specific IP address, which rule would you...
Which iptables option allows you to specify a range of ports?
Which iptables chain is responsible for filtering incoming packets...
Which iptables command removes all rules from a specific chain?
What does the -p flag specify in an iptables rule?
Which command lists all current iptables rules with line numbers?
What does the -m state --state ESTABLISHED,RELATED option allow in...
To allow SSH access on port 22 from any source, which iptables rule...
Which iptables target is used to silently discard packets without...
What does the -s flag represent in an iptables rule?
Which iptables command option is used to append a new rule to a chain?
What is the default policy for the FORWARD chain in a newly...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!