Skip to main content

Posts

Showing posts from March, 2024

IPTables - Firewalled 🧱

> IP Tables Learning about IP Tables enables us to control data that flows into and out of our computer. Essentially a firewall functions as a filter blocking restricted content and allowing trustworthy communications. (img by freepik - iconsea) We can establish firewall rules with the help of IP Tables. This is exactly what will be covered by the following. Viewing IP Tables Navigate to the terminal in your Linux distribution by typing “iptables -L”. You can view the rules and regulations in place. (Note that you will require root privileges to run this) If you see results as such, this is the default view hence there are no rules set on your computer Chains From the above picture, you could see 3 different chains. INPUT → All incoming traffic to your computer FORWARD → This happens in routers, mostly functional when setting up firewall policies in routers. OUTPUT → All outgoing traffic from your computer Blocking Traffic This shows that all incoming traffic is allo...

RouteD Tables 🌐

 > Routing Tables Explained The router is a primary component to connect to the internet, but do you know what happens and how it is configured, lets have a peak into Routing Tables. (img by freepik) Introduction Whenever you connect to a website you are not directly connected to the website, for your data to get there it needs to pass through a bunch of routers. So how do the routers know which path to take? Cuz your router has a bunch of ethernet cables attached to it, how does it choose which road to send your data to? Scenario For this example we will go ahead with the following example. Terminology Destination → Final destination or the end path or the end IP address of whichever server that you are trying to connect to Gateway → IP address of your gateway or router (some people refer to routers as gateways, this is cuz your router is a gateway to another network) Genmask → This is the obvious subnet mask field Iface → Displays each NIC and WNIC in your computer (...

Sub-Netted 🪐

> Subnetting Explained Introduction Simplified Subnetting , Let’s untangle the knots and dive into the world of networks. Isn't it strange to see the IPv4 address of your laptop and IPv4 address you see on google are actually different ? (img by freepik - vectorsclub) Identification used in the interconnected network. A school identifies their students from admission numbers. Each person has different telephone numbers. Houses have addresses. “Ah Ha, this all revolves around a primary key”. That’s the identification. Likewise the internet has IPv4 addresses. Although they are running out. Incredibly fast… The bearer of IP addresses Routers as we all know are middlemen. These devices are configured by ISP’s in your houses or office, to provide a connection, which enable devices to communicate with the internet, and browse various sources such as Netflix, or eBay. So where’s your IP address ? When you connect to a network such as your home Wi-Fi, each device is provided an IP a...