Tushar Lachman
Melbourne · RMIT ’27
APPLIED SECURITYRMIT · individual

GPG File Exchange & iptables Firewall Lab

Both built by hand at the command line, until neither one is an abstraction any more.

Introduction to Cyber Security · 2025
WHY IT EXISTS

Two hands-on labs in Kali Linux. First a three-party encrypted exchange built from real Linux accounts and real RSA keys. Then a firewall built rule by rule with iptables — default-deny policies, per-host and per-range exceptions, and the difference between dropping a packet and refusing it demonstrated rather than described.

How it’s put together

L00
GPG
L01
RSA
L02
iptables
L03
Kali Linux
L04
Bash
L05
Linux user administration

Built with

GPGRSAiptablesKali LinuxBashLinux user administration
PERIOD
Introduction to Cyber Security · 2025
ROLE
Solo — implementation and write-up

The hard parts

06 NOTES
1

Three separate Linux users, created and administered, so the exchange happens between actual accounts with actual permissions rather than three directories pretending to be people.

2

An RSA key pair per user, public keys exported armoured and imported by the others, then messages encrypted so that only the intended recipient can open them — including deleting a secret key and confirming exactly what that does and does not make unreadable.

3

Digital signatures in both forms, embedded and detached, each transmitted and then verified from the receiving account — which is the half that proves who sent a file, as opposed to who is able to read it.

4

The firewall starts from default-deny: INPUT and FORWARD policies set to DROP and OUTPUT to ACCEPT, so every allowance afterwards is explicit and the failure mode of a missing rule is a blocked packet rather than an open one.

5

Rules written at the granularity the scenario actually needs — multiport matching for HTTP and HTTPS together, `iprange` to admit one team’s address block to a single port, and FORWARD rules to control traffic passing through the host rather than landing on it.

6

DROP against REJECT tested rather than asserted: the same `scp` attempted under each policy, timing out under one and being refused immediately under the other. Both labs are evidenced step by step, so the attempts that failed are on the page next to the ones that worked.

Want the parts that aren’t on this page — the architecture arguments, the things that broke, a live walkthrough?

NEXTColon Cancer Cell Classifier — CNN on Tissue Images