« More weekend Cable TV outages | The weekly channel outage... » |
Apparently, Resnet recently has done some changes to their CCA configuration.
It used to be that CCA blocked all network access until logged in. The last version of my CCA login script used that by trying to ping or nmap the UCI webserver.
Since a week or so, CCA does not block all network access anymore. Ping now goes through, as does ssh, even when not logged in.
So I changed my script, to use wget to get the main UCI webpage, and determining if the result contains a redirect to the CCA login page.
The updated script is available here.
Program usage:
Usage: cca [logging] logging: 1 to log to .resnet in the home directory. Note: needs wget installed. Get wget from http://www.gnu.org/software/wget/wget.html
The file can be run directly from crond, e.g., every couple of minutes, to check if the network connection is still available.
If SSH traffic is allowed out, another option (if you have a remote server) would be a VPN listening on port 22 that forwards all traffic through the VPN. It comes with the added bonus of privacy, at the expense of essentially paying for bandwidth twice and a performance hit of varying degree.