To open port 80 (the default HTTP web server port) on a Linux machine, you can use the iptables firewall. Here's an example of how to open port 80 using the iptables firewall:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
This will allow incoming traffic on port 80 using the TCP protocol.
service iptables save
This will persist the changes across system reboots.
Note: The above steps assume that you have the necessary permissions to modify the iptables configuration. Make sure to test the changes before using them in a production environment.
Additionally, make sure that you have a web server installed and running on the machine. If you don't have a web server installed, you can install Apache or any other web server and configure it to listen on port 80.
To check if the web server is listening on port 80, you can use the "netstat" command to list the open ports on the machine. Run the following command:
netstat -tulpn
This will list all the open ports and the process that is listening on each port. If you see "tcp" and "0.0.0.0:80" in the output, it means that a process is listening on port 80.