Networking and Firewall Basics   03   Configure nftables

Networking and Firewall Basics 03 Configure nftables

• Task 1: Block access to port 8080. o On the server VM, install and configure nftables: sudo apt install nftables sudo systemctl enable nftables o Edit /etc/nftables.conf; you will add the line in the input chain block: o Reload the firewall rules: sudo nft -f /etc/nftables.conf o Verify the ruleset: sudo nft list ruleset o Screenshot Required: Capture the terminal output showing the nftables ruleset. • Task 2: Confirm the service is now inaccessible. o Start the netcat service on port 8080 again: nc -l 8080 sudo apt install nftables o From the client VM, attempt to connect using netcat: nc SERVER_PRIVATE_IP 8080 o Screenshot Required: Capture the terminal output on the client VM showing the connection failure.