From the course: Protecting Your Network with Open Source Software
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting up IP forwarding
From the course: Protecting Your Network with Open Source Software
Setting up IP forwarding
- [Voiceover] In this lesson, we'll be changing our Ubuntu router host operating system settings to forward packets from its internal network interface to the external network interface. This allows us to forward packets from the Ubuntu host connected to the router host to the internet. Let's start by checking the current operating system settings. Type more forward slash proc sys forward slash net forward slash ipv4 forward slash IP underscore forward press enter and the output is zero. Zero in computer science means false. What this indicates is that at the operating system level forwarding is disabled. By the way "More" is a Linux command to show the content of a file. Now our mission is to enable forwarding. To accomplish this mission all you have to do is set the proc sys net ipv4 IP underscore forward variable to one. How do you do that? You use the echo command. The echo command takes an input and outputs the…
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
-
-
-
-
-
(Locked)
Netfilter and iptables3m
-
Setting up a host firewall using iptables5m 24s
-
(Locked)
Automating Netfilter configuration5m 17s
-
(Locked)
Understanding hosts as routers2m 30s
-
(Locked)
Adding a network adapter3m 49s
-
(Locked)
Testing the second adapter2m 20s
-
(Locked)
Setting up IP forwarding3m 55s
-
(Locked)
Changing Netfilter settings6m 37s
-
(Locked)
Testing the router1m 21s
-
(Locked)
-
-
-
-
-