LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Webmin: Error - Access Denied (http://www.linuxquestions.org/questions/debian-26/webmin-error-access-denied-274172/)

maerong 01-05-2005 11:34 AM

Webmin: Error - Access Denied
 
I have done an apt-get install of webmin on to Sarge. Now I am trying to access the web interface from another box on the same network, ie

https://servername:10000

First I am asked if I want to accept the (default) security certificate, so I say yes. And now, I get

Error - Access Denied for 192.168.xxx.xxx

What have I done wrong?

masand 01-05-2005 03:50 PM

hi there

do u have some kind of firewall running

try turning that off first

regards

maerong 01-06-2005 08:37 AM

I have solved this problem now. It wasn't a firewall issue, the webmin server and client are on the same local network and I wasn't trying to access it from outside.

Turns out the answer is in the documentation:

/usr/share/doc/webmin/README.Debian

Basically the default configuration on debian is set to only allow access from listed IP addresses, and the only listed IP address is 127.0.0.1, ie the webmin server itself.

To edit the configuration, I first installed the lynx web-browser, since I'm not running a desktop on the webmin server, and used that to access webmin:

apt-get install lynx

lynx https://localhost:10000

From there I was able to login and add my local network (192.168.10.0) to the allowed list via Webmin Configuration -> IP Access Control. I did get a bit bored of the "unknown security certificate" dialogue popping up on every page, so next time I would choose "Always Accept" the first time it asks.

FInally, restart webmin with

/etc/init.d/webmin restart

and I can now login to webmin from my PC!


.

masand 01-06-2005 08:51 AM

good that it is working now

and thanks for sharing the info!!

regards

ghight 01-06-2005 09:41 AM

Thats a nice way of doing it but you can also just manually edit the /etc/webmin/miniserv.conf file. All you do is comment out or add your local network on the 'allow' line. It will look something like this:

Code:

allow=192.168.1.0 127.0.0.1


All times are GMT -5. The time now is 11:35 PM.