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

Setting up IP forwarding

From the course: Protecting Your Network with Open Source Software

Start my 1-month free trial

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…

Contents