[Day 6] 5. Extra
-
Quantum Computers or Quantum Computing
Quantum computing uses quantum-mechanical phenomena (like superposition and entanglement) to perform operations on data, enabling faster problem-solving for specific tasks like cryptography and optimization. -
OSI Model
A 7-layer architecture used to standardize communication in networks:- Application, Presentation, Session, Transport, Network, Data Link, and Physical layers.
-
ACL in Routers
Access Control Lists (ACLs) are used to filter and control traffic in routers, functioning similarly to firewalls by allowing or denying traffic based on specified rules. -
What is a Payload?
The payload is the actual data carried by a packet, excluding headers and metadata. It is the core content delivered from source to destination. -
Kernel Space vs. User Space Modules
- Kernel Space: Code that runs directly in the operating system’s core (e.g., drivers, netfilter).
- User Space: Code that runs outside the OS kernel, in the user environment (e.g., iptables).
-
3-Way Handshake in TCP Protocol
Connection Establishment:- Client → SYN → Server
- Server → SYN-ACK → Client
- Client → ACK → Server
Connection Termination:
- Initiator → FIN → Receiver
- Receiver → ACK + FIN → Initiator
- Initiator → ACK → Receiver
-
CrypTool
A tool used for learning, analyzing, and performing cryptographic operations like encryption, decryption, and hashing.
!3. iptables-save-configuration.png
This diagram explains two approaches for saving iptables configuration in a Linux system: manual and automated. Both ensure that iptables rules persist across system reboots. Here's the detailed breakdown:
1. Manual Approach
-
Write Bash Script → Execute After Recovery Boot:
- In this method, you manually write a Bash script containing your rules.
iptables - The script is executed manually after a system reboot or recovery to re-apply the saved rules.
- Limitations: If you forget to execute the script or if it’s not automated, the rules will not persist after reboot. This method relies on human intervention.
- In this method, you manually write a Bash script containing your
-
Using
andiptables-save:iptables-restore-
: This command saves the current
iptables-saverules to a file, typicallyiptablesfor IPv4./etc/iptables/rules.v4bashsudo iptables-save > /etc/iptables/rules.v4 -
: After reboot, you can restore the rules using the saved file:
iptables-restorebashsudo iptables-restore < /etc/iptables/rules.v4 -
Here,
acts as a storage location for the rules./etc/iptables/rules.v4
-
2. Automated Approach
- This approach ensures that rules are automatically reloaded after a reboot, removing the need for manual execution.
iptables - :
iptables-persistent- The package automatically saves and restores
iptables-persistentrules during reboot.iptables - Steps to implement:
-
Install
:iptables-persistentbashsudo apt-get install iptables-persistent -
Save your current rules:
bashsudo netfilter-persistent save -
After reboot, the rules will be automatically restored.
-
- The
Summary of the Diagram
-
Manual Method:
- Either write a Bash script (and execute manually after reboot)
- Or use and
iptables-saveto persist the rules viaiptables-restore./etc/iptables/rules.v4
-
Automated Method:
- Use the package, which automates the saving and restoration of iptables rules.
iptables-persistent
- Use the
Both methods are correct, but automated is preferable for reliability, especially in production environments, because it reduces manual intervention. The diagram accurately explains both approaches.
Read Next
[Day 7] 1. Public Key Infrastructure (PKI)
#### **Definition and Purpose:** - PKI is primarily used for **authentication purposes**. - It is an **ISO authentication framework** that employs...
[Day 7] 2. Security Threats and Defense Mechanisms
### **Attacks Against Encryption** 1. **Brute Force:** Attempting all possible combinations to decrypt the data. 2. **Finding Vulnerabiliti...