Live Terminal Drill
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
WEEK 3 · SECURITY & WORKFLOWS · TUI: ./control-panel --day 15
Harden file permissions, configure iptables/nftables packet filtering, lock down SSH, and inspect SELinux/AppArmor.
Pick a track or paste any YouTube URL.
Type commands, build streaks, and then review the source guide.
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
Tap a command when you practiced it in your own terminal.
Command explanation will appear here.
Output preview will appear here.
Fun facts about the active command will appear here.
Run a command to see result feedback.
Faster learning with topic cues, mini-missions, and external docs.
chmod 750 and explain the output in one sentence.chown and explain the output in one sentence.iptables and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-15 && cd /tmp/linux-dojo-day-15 and explain the output in one sentence.Week 3 (Security & Workflows) · Session: Breakfast (Morning Foundation & Core Command Syntax) chmod 750, chown, iptables, nftables, sshd_config, fail2ban╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // DEFENSE-IN-DEPTH & STREAM PIPELINE ARCHITECTURE ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ [ INBOUND PACKET ] ──► [ Netfilter: iptables / nftables ] ║
║ │ (ACCEPT) ║
║ ▼ ║
║ [ Hardened SSHD + Fail2Ban ] ║
║ │ ║
║ ▼ ║
║ [ DAC: chmod/chown ] ──► [ MAC: SELinux / AppArmor ] ║
║ │ ║
║ ▼ ║
║ [ Auditd & Log Pipelines: grep | awk | sed ] ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 3 → Day 15 → Breakfast to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/15 → Select Breakfast tab → Type each target command in the live Mission Terminal to earn XP & streak mastery. |
| 3. Safe Local Sandbox | Run mkdir -p /tmp/linux-dojo-day-15 && cd /tmp/linux-dojo-day-15 to test every flag below without touching production files. |
./control-panel) and the Web Mission Terminal (astro-ui).man securityauditd allow monitoring of security events, and SELinux or AppArmor add additional layers of access control.chmod 750 filenamechmod command is used to modify access rights, chown changes ownership, and umask sets default permissions.sudo iptables -Liptables provides manual rule configuration, while nftables is a modern alternative with better performance and flexibility.sudo nano /etc/ssh/sshd_configfail2ban to block repeated failed login attempts.chmodchownlsrmchmodchownchmodpasswdtouchchownBlock unauthorized accessMonitor disk usageChange file permissionsOptimize memory usageBlock unauthorized accessType commands, build streaks, and then review the source guide.
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
Tap a command when you practiced it in your own terminal.
Command explanation will appear here.
Output preview will appear here.
Fun facts about the active command will appear here.
Run a command to see result feedback.
Faster learning with topic cues, mini-missions, and external docs.
chmod 750 and explain the output in one sentence.chown and explain the output in one sentence.iptables and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-15 && cd /tmp/linux-dojo-day-15 and explain the output in one sentence.Week 3 (Security & Workflows) · Session: Lunch (Midday Operational Workflows & Flag Mastery) chmod 750, chown, iptables, nftables, sshd_config, fail2ban╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // DEFENSE-IN-DEPTH & STREAM PIPELINE ARCHITECTURE ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ [ INBOUND PACKET ] ──► [ Netfilter: iptables / nftables ] ║
║ │ (ACCEPT) ║
║ ▼ ║
║ [ Hardened SSHD + Fail2Ban ] ║
║ │ ║
║ ▼ ║
║ [ DAC: chmod/chown ] ──► [ MAC: SELinux / AppArmor ] ║
║ │ ║
║ ▼ ║
║ [ Auditd & Log Pipelines: grep | awk | sed ] ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 3 → Day 15 → Lunch to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/15 → Select Lunch tab → Type each target command in the live Mission Terminal to earn XP & streak mastery. |
| 3. Safe Local Sandbox | Run mkdir -p /tmp/linux-dojo-day-15 && cd /tmp/linux-dojo-day-15 to test every flag below without touching production files. |
./control-panel) and the Web Mission Terminal (astro-ui).sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPTiptables command is used for packet filtering in Linux, while nftables is its modern successor.sudo iptables -L. To allow SSH traffic, use sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT. To drop all incoming traffic except for essential services, use sudo iptables -P INPUT DROP.iptables-persistent and save the configuration using sudo netfilter-persistent save.sudo nano /etc/ssh/sshd_configPermitRootLogin no), enforce key-based authentication (PasswordAuthentication no), and allow only specific users (AllowUsers user1 user2).fail2ban helps mitigate brute-force attacks. Install it using sudo apt install fail2ban, then configure /etc/fail2ban/jail.local to monitor failed login attempts and ban offending IPs.Port 2222) and use TCP Wrappers (/etc/hosts.allow and /etc/hosts.deny).iptables -Liptables --showfirewall-cmd --listnft show rulesetiptables -LPermitRootLogin noRootAccess offDisableRoot trueSSHRootDeny yesPermitRootLogin nofail2baniptablesnftablesufwfail2banType commands, build streaks, and then review the source guide.
Re-type the command exactly to clear each challenge.
loading... 0 / 12 mastered
Tap a command when you practiced it in your own terminal.
Command explanation will appear here.
Output preview will appear here.
Fun facts about the active command will appear here.
Run a command to see result feedback.
Faster learning with topic cues, mini-missions, and external docs.
chmod 750 and explain the output in one sentence.chown and explain the output in one sentence.iptables and explain the output in one sentence.mkdir -p /tmp/linux-dojo-day-15 && cd /tmp/linux-dojo-day-15 and explain the output in one sentence.Week 3 (Security & Workflows) · Session: Dinner (Evening Hardening, Pipelines & Verification Lab) chmod 750, chown, iptables, nftables, sshd_config, fail2ban╔══════════════════════════════════════════════════════════════════════════════╗
║ ZOTHOS × 1NC0GN30 // DEFENSE-IN-DEPTH & STREAM PIPELINE ARCHITECTURE ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ ║
║ [ INBOUND PACKET ] ──► [ Netfilter: iptables / nftables ] ║
║ │ (ACCEPT) ║
║ ▼ ║
║ [ Hardened SSHD + Fail2Ban ] ║
║ │ ║
║ ▼ ║
║ [ DAC: chmod/chown ] ──► [ MAC: SELinux / AppArmor ] ║
║ │ ║
║ ▼ ║
║ [ Auditd & Log Pipelines: grep | awk | sed ] ║
╚══════════════════════════════════════════════════════════════════════════════╝| Learning Pillar | How to Practice This Session |
|---|---|
1. Native TUI (./control-panel) | Run ./control-panel from repo root → Select Week 3 → Day 15 → Dinner to drill interactive C lessons & quizzes. |
2. Web Workstation (astro-ui) | Open /day/15 → Select Dinner tab → Type each target command in the live Mission Terminal to earn XP & streak mastery. |
| 3. Safe Local Sandbox | Run mkdir -p /tmp/linux-dojo-day-15 && cd /tmp/linux-dojo-day-15 to test every flag below without touching production files. |
./control-panel) and the Web Mission Terminal (astro-ui).sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPTsudo iptables -A INPUT -p tcp --dport 443 -j LOG --log-prefix 'HTTPS: 'sudo usermod -aG sudo usernamesudo visudosestatussudo aa-statussudo systemctl start fail2bansudo snort -A console -q -c /etc/snort/snort.conf -i eth0sudo openvpn --config client.ovpnsudo logwatch --detail highiptables -A INPUT -p tcp --dport 80 -j ACCEPTiptables --addfirewall-cmd --zone=public --add-port=80/tcpnft add rule ip filter input tcp dport 80 acceptiptables -A INPUT -p tcp --dport 80 -j ACCEPTTo drop packetsTo record network traffic eventsTo forward trafficTo encrypt dataTo record network traffic eventssudo adduser username sudosudo usermod -aG sudo usernamechmod +x usernameusermod --sudo usernamesudo usermod -aG sudo usernameTo allow root loginTo define which users can run specific commands with elevated privilegesTo create new user accountsTo disable all system loggingTo define which users can run specific commands with elevated privilegessestatusselinux-statusgetenforcestatus selinuxsestatussudo aa-statusapparmor-checksudo apparmor --statusaa-check-statussudo aa-statusfail2baniptablesufwnftablesfail2banUser authenticationNetwork intrusion detectionVPN configurationLog analysisNetwork intrusion detectionsudo openvpn --config client.ovpnopenvpn --startvpn-connectsudo vpnclient connectsudo openvpn --config client.ovpnlogwatchfail2bansnortiptableslogwatch