The script is available here:
It is intended for users who sit behind a machine with dynamic IP, and who want to restrict user access to Webmin based on their IP, without having to rely on a DDNS service.
The script
- will discover your IP number against a free DNS service such as OpenDNS or Google;
- will connect to your remote server via SSH, retrieve the
/etc/webim/miniserv.conf
file Webmin uses for settings; - will check whether the
allow=
line already contains your current IP number; - If not, modify it so that the IP number is current.
Currently the script is only available in PowerShell, Bash will be provided shortly.
I am looking very much forward to any feedback you may have on this.
Also, I’d like to know from a Webmin developer if it’s necessary for the script to restart Webmin once the allow= line
in miniserv.conf
should change, or it’s not needed. (Currently the script does NOT restart Webmin, since the change could be quite frequent).