wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Network Security Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which iptables chain processes packets originating from the local system?

a)

INPUT

b)

FORWARD

c)

OUTPUT

d)

PREROUTING

2.

Which command sets the default policy of INPUT chain to DROP?

a)

iptables -A INPUT DROP

b)

iptables -P INPUT DROP

c)

iptables -D INPUT DROP

d)

iptables -F INPUT DROP

3.

A firewall rule allows SSH only from 192.168.1.10. Which rule is correct?

a)

iptables -A INPUT -p tcp --dport 22 ACCEPT

b)

iptables -A INPUT -s 192.168.1.10 --dport 22 -j ACCEPT

c)

iptables -A INPUT -s 192.168.1.10 -p tcp --dport 22 -j ACCEPT

d)

iptables -A OUTPUT -s 192.168.1.10 -j ACCEPT

4.

Which iptables table is consulted first during packet traversal?

a)

filter

b)

nat

c)

mangle

d)

raw

5.

NAT masquerading for internet sharing is done using:

a)

filter table – INPUT chain

b)

nat table – POSTROUTING chain

c)

mangle table – PREROUTING chain

d)

raw table – OUTPUT chain

6.

Which command enables IP forwarding in Linux?

a)

ifconfig eth0 up

b)

sysctl net.ipv4.ip_forward=1

c)

iptables -F

d)

route add default

7.

DROP vs REJECT — correct statement:

a)

DROP sends ICMP error

b)

REJECT silently discards

c)

DROP silently discards packets

d)

Both behave the same

8.

Stateful firewall tracks:

a)

MAC addresses

b)

User identities

c)

Connection state

d)

Packet payload only

9.

Which match allows ESTABLISHED and RELATED traffic?

a)

-m tcp

b)

-m state --state NEW

c)

-m conntrack --ctstate ESTABLISHED,RELATED

d)

-m limit

10.

Fail2ban primarily reads:

a)

Packet headers

b)

Netfilter queues

c)

Log files

d)

DNS cache

11.

Fail2ban blocks attackers by:

a)

Shutting down services

b)

Modifying iptables rules dynamically

c)

Restarting SSH

d)

Blocking subnets permanently

12.

Wireshark capture filters use:

a)

Display filter syntax

b)

BPF syntax

c)

Regex

d)

iptables rules

13.

Correct Wireshark display filter for HTTP traffic:

a)

tcp.port == 80

b)

http traffic

c)

port 80

d)

ip.port == 80

14.

DMZ is best described as:

a)

Fully trusted zone

b)

Fully untrusted zone

c)

Semi-trusted isolated network

d)

Internal LAN

15.

A reverse proxy mainly helps with:

a)

Client anonymity

b)

Server protection and load balancing

c)

Packet inspection

d)

VPN tunneling

16.

Squid primarily operates at:

a)

Transport layer

b)

Network layer

c)

Application layer

d)

Data link layer

17.

UTM combines which features?

a)

Routing + Switching

b)

IDS + SIEM

c)

Firewall + IDS/IPS + VPN

d)

Load balancer only

18.

VPN Tunnel mode encrypts:

a)

Payload only

b)

Entire IP packet

c)

TCP headers only

d)

Application data only

19.

Split tunneling is risky because:

a)

It increases encryption overhead

b)

All traffic bypasses VPN

c)

Some traffic bypasses VPN security

d)

VPN disconnects

20.

Which VPN protocol uses UDP port 1194 by default?

a)

IPsec

b)

L2TP

c)

OpenVPN

d)

PPTP

21.

IDS differs from IPS because IDS:

a)

Works inline

b)

Drops malicious packets

c)

Only detects and alerts

d)

Blocks traffic

22.

Snort operates primarily as:

a)

Host-based IDS

b)

Network-based IDS

c)

SIEM

d)

Firewall

23.

OSSEC is classified as:

a)

NIDS

b)

IPS

c)

HIDS

d)

Proxy

24.

Correct Snort rule action for logging only:

a)

drop

b)

reject

c)

alert

d)

pass

25.

Defence-in-depth means:

a)

One strong firewall

b)

Multiple layered controls

c)

IDS only

d)

VPN only

26.

Threat hunting focuses on:

a)

Known signatures

b)

Rule-based detection

c)

Proactive anomaly detection

d)

Antivirus scanning

27.

DoS attack mainly targets:

a)

Confidentiality

b)

Integrity

c)

Availability

d)

Authentication

28.

Rate limiting in iptables is done using:

a)

state module

b)

limit module

c)

conntrack module

d)

nat module

29.

SIEM performs which core function?

a)

Packet forwarding

b)

Log correlation and alerting

c)

NAT translation

d)

Encryption

30.

IDS evasion commonly uses:

a)

Strong encryption

b)

Packet fragmentation and obfuscation

c)

MAC spoofing only

d)

Port forwarding