IP access control does not work when DNS name is in this format:
dslb-178-007-042-019.178.007.pools.vodafone-ip.de
and IP access list has an entry:
*.vodafone-ip.de
Neither this one works:
....vodafone-ip.de
Only putting numerical IP block works:
178.0.0.0/12
In contrast, another IP resolving to sub.domain.com works when put into IP ACL:
*.domain.com
another cross-check:
adding *.de ACL in webmin IP acl.
result:
WORKING with the vodafone-ip.de domain!
(but a *.de ACL is not acceptable!)
alwaysresolve=1
was already set in ALL tests that I'm doing.
you can easily reproduce the bug, if you set up a local DNS that will resolve your IPs to these hosts that I gave you.
it is weird because it seems to disregard the minus sign "-" in the first part of the subdomain name, but it seems to be a problem if it is part of the domain name itself.
drop me a note if you have problems configuring DNS to reproduce.
btw for testing I Think you can just hard-wire a host name in your code that comes from your resolver - no need to setup a dns.
If we cannot fix this issue quickly I will have to revert to some tcp proxying (e.g. via xinetd and hosts.allow) and run webmin on localhost only... however this is not a good workaround
I found another bug that is likely causing this - again related to use of a dash in the domain name to allow. The patch can be seen at https://github.com/webmin/webmin/commit/22af9bc18eaea4904c3c020ae54fece94c382831
seems to work for me now (after 22af9bc18eaea4904c3c020ae54fece94c382831):
ACL:
working.
When I remove * . pools.vodafone-ip.de from ACL, it says then access denied from 10.1.1.1
I still wonder why it did not accept the TCP wrapper option then? It does not query the hosts.allow first? I think it would be a good idea to have a configurable policy here:
ALLOW if allowed by webmin AND tcpwrapper
ALLOW if allowed by webmin OR tcpwrapper
etc.
Last edit: kurczaq 2014-11-30
well I wait for the client tomorrow to login, tell you then.
seems it works for my client now. thanks for fixing.
Great! Thanks for your help and persistence tracking this down.