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.

Port forwarding

Port forwarding

From the course: Protecting Your Network with Open Source Software

Start my 1-month free trial

Port forwarding

- [Instructor] Let's try to connect to the web server on the Ubuntu host in the DMZ from the Windows host through the Ubuntu-Router host, we'll be using the IP address of the external network interface of the Ubuntu-Router host to get to the web server. Let's go to the Windows host and open a web browser, type the external IP of the Ubuntu-Router host, which is 10.0.0.6. Press Enter. You're unable to connect since port-forwarding is not yet enabled, that's why you're getting this error message. Let's now go back to our Ubuntu-Router host and change the firewall rules to enable port-forwarding. Let's edit our firewall script. Type cd Documents, press Enter, type ls. Do you see our file script, myfw.sh? Let's edit the script, type nano myfw.sh, press Enter. These are the firewall rules we used to set up our Ubuntu-Router host initially. Let's add a couple of more rules to enable port-forwarding. Type…

Contents