- [Instructor] The area behind our Ubuntu router serving as
a network firewall is a demilitarized zone or DMZ.
We call it DMZ because it's a relatively safe place
after our first layer of firewall filtering
our goal is to provide an HTTP service
on our Ubuntu local host in the DMZ.
Let's start by installing
a popular Linux web server called apache
type sudo,
space apt
space install,
space apache two
press enter
type Y press enter.
Now you have a working HTTP or web server
on the Ubuntu local host.
Let's check the status of the apache web server
type sudo space
system ctl
space apache two
space status
press enter
wrong sequence
type sudo
system ctl
space status
apache two
press enter.
The web server is up and running.
If it's down, start the web server
by typing sudo system ctl
apache two space start
and then press enter
an ultimate test to check if
the web server is up and running is
opening a web browser and loading a homepage
type local host
and press enter.
As you can see, you can load the default page from
the web server on the Ubuntu local host.
the successfully loaded test page means that
the web server is up and running
to restart the web server
type sudo space system ctl
space, restart space
apache two like this
press enter
to stop the web server
type sudo system ctl
stop apache two
press enter.
Let's check the status of the web server again
by typing sudo system ctl
status apache two
press enter.
The web server is no longer running
for now the host in our DMZ,
which is the same local area network
behind Ubuntu router slash Network firewall
are the only ones that can access the web server.
The next step is to enable port forwarding
to allow host on the internet
to send the request to our web server.