Server:
Ubuntu (fresh installation) is hosting a php “hello world” page in apache2 (fresh installation). Also, in this server I am running hamachi and it connects properly. The rest of the config is default (no ufw installed, default iptables config, default apache2.conf, default ports.conf, everything else default).
Client:
No firewall running, running hamachi and it connects properly.
-
Scenario 1 (OK): In same wifi using real network interface (not hamachi): the web page works as expected in port:80, something like: 192.168.1.50/hello.php. Also, ping works as usual.
-
Scenario 2 (OK): In same wifi using hamachi interface: the web page works as expected in port:80, something like: 25.1.237.178/hello.php. Also, ping works as usual.
-
Scenario 3 (ERROR): Same scenario 2 but the server and client are in different cities (different wifi). It does not work.
So the question is: why hamachi works locally but not remotely for port 80?
The funny part: SSH works in the 3 scenarios in the regular port 22.
Additional details:
- nmap says that the port 80 is open (as well as 22).
-
sudo nmap -T Aggressive -A -v 25.1.237.178 -p 1-81
- Web page is in
-
/var/www/html/hello.php
- I tried the 3 options of hamachi: Mesh, Hub-and-spoke, Gateway. No luck
- I tried SSH tunnelling (No luck):
-
ssh -N -L localhost:8888:localhost:80 [email protected]
The expectation is that hamachi works for port 80 as it works for 22 in local network and external connections.
Probably port forwarding is a solution(?), but still ssh/22 works without this.
Any idea? Other secure VPN? (same issue?)