Port Forwarding apache2 default port to 8080 using IP Tables

ubuntu@server1:~$ sudo vi /etc/apache2/ports.conf Listen 80 Our default port for apache2 service is 80, now we test this by using the curl command ubuntu@server1:~$ curl server1:80 => should output apache2 default html ubuntu@server1:~$ curl server1:8080 => should output “curl: (7) Failed to connect to localhost port 8080: Connection refused” We’re going to use ip tables […]