From the course: Protecting Your Network with Open Source Software
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Understanding hosts as routers
From the course: Protecting Your Network with Open Source Software
Understanding hosts as routers
- [Instructor] You can turn any ordinary computer into a router. Here is what you need. Hardware-wise, a second network interface card, or NIC, is necessary. In terms of software, you could be using any Linux distribution. Ubuntu is our choice. If you're using a physical computer, go ahead and plug in your second NIC and set it up. A virtual machine, or VM, requires a virtual NIC. Here is the big picture view. Think of what a home router does. It allows you to share a single external IP address among multiple hosts in the same local area network, or LAN. We call this feature network address translation, or NAT. NAT also enables you to forward packets. There could be two types of forwarding. One is ingress forwarding, meaning forwarding packets from outside your network into your network. The other is egress, meaning forwarding packets from within your network to the outside of your network. This diagram shows our…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Netfilter and iptables3m
-
Setting up a host firewall using iptables5m 24s
-
Automating Netfilter configuration5m 17s
-
Understanding hosts as routers2m 30s
-
Adding a network adapter3m 49s
-
Testing the second adapter2m 20s
-
Setting up IP forwarding3m 55s
-
Changing Netfilter settings6m 37s
-
Testing the router1m 21s
-
-
-
-
-
-