Getting ready

Ensure that firewalld is installed and started on centos1:

$ sudo systemctl enable --now firewalld

Once done, start a Python web server in the background:

$ python -m SimpleHTTPServer &> /dev/null &
[1] 2732

This should start a web server on port 8000.

Connect to centos2 and try to curl your centos1 box on port 8000. It should fail:

$ curl 192.168.33.10:8000
curl: (7) Failed connect to 192.168.33.10:8000; No route to host

If you want to work through the Ubuntu examples at the same time, log in to your Ubuntu box.