From the course: Protecting Your Network with Open-Source Software

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Setting up hosts as network firewalls

Setting up hosts as network firewalls

- [Instructor] Compared to setting up a router host, adding new network file features is fairly straightforward. Let's discuss how to set up our Ubuntu router host as a network firewall in this lesson. Network firewalls handle service requests by either blocking them or providing port forwarding. The prerequisite for port forwarding is a host set up as a router, which is in our case, the Ubuntu router host. We need to add some new firewall rules to enable port forwarding that routes the network service request to an appropriate host behind a firewall. The Ubuntu router host firewall adheres to some default rules already. For example, it's dropping all the ingress traffic or incoming traffic, and it forwards all the egress or outgoing traffic to the internet. In addition to these default rules, we need to add the following port forwarding details. First of all, we need to open port 80 on the Ubuntu router host. And then send all the port 80 traffic to a host running an HTTP or web…

Contents