Let’s install the ufw firewall and setup a few rules on web-01.Requirements:The requirements below must be applied to web-01 (feel free to do it on lb-01 and web-02, but it won’t be checked)Configure ufw so that it blocks all incoming traffic, except the following TCP ports:22 (SSH)443 (HTTPS SSL)80 (HTTP)Share the ufw commands that you used in your answer file
Question
Let’s install the ufw firewall and setup a few rules on web-01.Requirements:The requirements below must be applied to web-01 (feel free to do it on lb-01 and web-02, but it won’t be checked)Configure ufw so that it blocks all incoming traffic, except the following TCP ports:22 (SSH)443 (HTTPS SSL)80 (HTTP)Share the ufw commands that you used in your answer file
Solution
To install the ufw firewall on web-01, follow these steps:
Step 1: Open a terminal on web-01.
Step 2: Run the following command to install ufw:
sudo apt-get install ufw
Step 3: Once the installation is complete, enable ufw by running:
sudo ufw enable
Step 4: Set the default incoming policy to deny all traffic:
sudo ufw default deny incoming
Step 5: Allow incoming traffic on TCP ports 22, 443, and 80:
sudo ufw allow 22/tcp
sudo ufw allow 443/tcp
sudo ufw allow 80/tcp
Step 6: Verify the rules by running:
sudo ufw status
You should see the following output:
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
These are the ufw commands used to configure the firewall on web-01.
Similar Questions
1. Port forwarding#advancedFirewalls can not only filter requests, they can also forward them.Requirements:Configure web-01 so that its firewall redirects port 8080/TCP to port 80/TCP.Your answer file should be a copy of the ufw configuration file that you modified to make this happen
Configure ufw so that it blocks all incoming traffic, except the following TCP ports:22 (SSH)443 (HTTPS SSL)80 (HTTP)
You need to configure a firewall to allow only secure HTTPS traffic (port 443) to a web server while blocking all other incoming connections. Which level of the TCP/IP protocol stack should the firewall operate at?1.0 MarksNetwork Access Layer (NAL)Internet Protocol (IP)Network Interface Card (NIC)Application LayerTransport Layer
You need to configure a firewall rule that allows SSH access only from a specific IP address (192.168.1.100). What iptables rule(s) would you use?1.0 Marksiptables -A INPUT -p tcp --dport 22 -s 192.168.1.100 -j REJECTiptables -A INPUT -p tcp --dport 22 -s 192.168.1.100 -j ACCEPT
Question 9Your organization uses a Linux-based network, and you’re configuring Uncomplicated Firewall (ufw). You want to disable file transfers that use the File Transfer Protocol (FTP), which occurs on port 21. Which command can you use to block all traffic on this port?1 pointsudoufw reload 21sudoufw delete 21sudoufw allow 21sudoufw deny 21
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.