
iptables
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Botond Papp
Used 3+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth2 -j SNAT --to-source 192.168.1.10
Adds a rule that allows all traffic from 10.0.0.0/8 to the internet through eth2, translating the source IP.
Inserts a new NAT rule to alter the source IP for outgoing packets from the specified range.
Appends a rule to track connections initiated from the internal network to the external network.
Modifies existing rules to ensure outgoing packets from the internal network have a consistent source IP.
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT
Adds an exception for all TCP packets on port 443 to bypass the existing firewall rules.
Places a new rule at the top to allow HTTPS traffic, regardless of other existing rules.
Modifies the first existing rule for TCP traffic to allow connections on port 443.
Inserts a new rule that accepts TCP traffic on port 443 only if it's established.
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -R FORWARD 2 -s 192.168.1.0/24 -d 10.1.1.0/24 -j DROP
Replaces an existing rule with a new rule that drops all traffic between the specified subnets.
Deletes the second rule and allows all traffic from 192.168.1.0/24 to 10.1.1.0/24.
Alters the behavior of the second rule to restrict traffic instead of allowing it.
Updates the second rule to restrict only new connections while allowing established ones.
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -D INPUT -p icmp -j DROP
Removes a rule that permits ICMP packets, allowing ping requests.
Deletes a blocking rule for ICMP, enabling all types of ICMP traffic.
Modifies the existing rule to accept only echo reply packets for ICMP.
Removes a rule that allows ICMP packets from specific networks.
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -t nat -I PREROUTING 1 -d 203.0.113.5 -p tcp --dport 80 -j DNAT --to-destination 10.0.0.2:8080
Forwards traffic from the external IP to an internal server, placing this rule at the very top of the chain.
Blocks all incoming traffic to the specified external IP and port.
Alters the existing rule to allow only HTTPS traffic to the specified internal server.
Appends a new rule to forward HTTP traffic but only for connections that are already established.
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -A FORWARD -i eth1 -o eth0 -p udp --dport 53 -j ACCEPT
Accepts incoming UDP traffic on port 53 and logs it for monitoring.
Allows all forwarded UDP packets on port 53 between eth1 and eth0 interfaces.
Inserts a rule to drop all packets that are not DNS queries on port 53.
Appends a rule to forward DNS queries only from the eth0 interface to the internal network.
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
$ iptables -t nat -R OUTPUT 3 -d 192.0.2.0/24 -j DNAT --to-destination 10.0.0.5
Deletes the third rule and adds a new NAT rule to direct traffic to a specific internal IP.
Replaces the third rule to modify traffic destined for the 192.0.2.0/24 network.
Alters the existing rule to log all incoming requests to 10.0.0.5 for auditing purposes.
Inserts a new rule for DNAT at the third position in the OUTPUT chain.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Soal Pra UKK 2024 - Paket 2
Quiz
•
12th Grade
18 questions
12AIT - All About W3C <3
Quiz
•
10th Grade - University
15 questions
Pemrograman
Quiz
•
9th - 12th Grade
10 questions
Computer Languages
Quiz
•
6th - 12th Grade
10 questions
Microsoft Windows
Quiz
•
4th Grade - University
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
15 questions
Basics in Java
Quiz
•
9th - 12th Grade
11 questions
PSP/IT test 2
Quiz
•
12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade
