Hi again.
Hi
What is this script doing? I assume its just telling the node what the external ip address is?
Yes, it says the public Internet IP of the GW node. This IP is then used for an iptables block rule and to create /tmp/current-wan-ip for other checks.
What happens if that web site is down?
It won't be able to use this data. We used another server to get this IP and we thought what would happen in that case, so we choose to use our own server because if it down, the rest of the services will be down too so no "external" use of the Internet connection will be allowed because of the unreachable WiFiDog Auth server and etc.
Can I place a copy of the script on one of my servers?
Yes, no problem:
http://svn.assembla.com/svn/lugro-mesh-dev/branches/sebastian/trunk/doc/www/whatismyip.phpThanks,
Matt
Saludos, Julio