iptables

iptables

12th Grade

13 Qs

quiz-placeholder

Similar activities

Sistem Operasi Jaringan

Sistem Operasi Jaringan

12th Grade - University

15 Qs

AP CSP Unit 1

AP CSP Unit 1

9th - 12th Grade

16 Qs

FIREWALL XII

FIREWALL XII

12th Grade

10 Qs

SMKN 4 Jakarta Quiz MikroTik Dasar

SMKN 4 Jakarta Quiz MikroTik Dasar

12th Grade

16 Qs

OCR A Level CS - 1.3.3 Networks

OCR A Level CS - 1.3.3 Networks

12th Grade

13 Qs

AVALIAÇÃO BIMESTRAL 2º ETAPA: PROJETO DE REDES. PARTE I

AVALIAÇÃO BIMESTRAL 2º ETAPA: PROJETO DE REDES. PARTE I

12th Grade

10 Qs

5.3 Basic Diagnostic Commands

5.3 Basic Diagnostic Commands

9th - 12th Grade

10 Qs

Big Idea 4

Big Idea 4

9th - 12th Grade

10 Qs

iptables

iptables

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Botond Papp

Used 3+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?