LinHES Forums
http://forum.linhes.org/

R5F1 and Webmin problem [SOLVED]
http://forum.linhes.org/viewtopic.php?f=6&t=15511
Page 1 of 1

Author:  tophee [ Tue Jun 05, 2007 10:31 am ]
Post subject:  R5F1 and Webmin problem [SOLVED]

Hi,

I'm having a bit of trouble getting webmin working on this version of Knoppmyth. I've had it working before pre R5D1, but not recently and not since upgrading to R5F!. I've tried to follow the instructions on the wiki but to no avail.

My current miniserv.conf file looks like this:
Code:
port=10000
root=/usr/share/webmin
mimetypes=/usr/share/webmin/mime.types
addtype_cgi=internal/cgi
realm=Webmin Server
logfile=/var/webmin/miniserv.log
errorlog=/var/webmin/miniserv.error
pidfile=/var/webmin/miniserv.pid
logtime=168
ppath=
ssl=1
env_WEBMIN_CONFIG=/etc/webmin
env_WEBMIN_VAR=/var/webmin
atboot=1
logout=/etc/webmin/logout-flag
listen=10000
denyfile=\.pl$
log=1
blockhost_failures=5
blockhost_time=60
syslog=1
session=1
userfile=/etc/webmin/miniserv.users
keyfile=/etc/webmin/miniserv.pem
passwd_file=/etc/shadow
passwd_uindex=0
passwd_pindex=1
passwd_cindex=2
passwd_mindex=4
passwd_mode=0
preroot=blue-theme
passdelay=1
sudo=1



When I try to navigate to 192.168.1.0:10000 using firefox it doesn't connect.
Oh and I've done the other bits too /etc/init.dwebmin start and update-rc.d webmin defaults with and without the allow=127.0.0.1 192.168.1.0

Any help greatfully recieved.

Thanks in advance Chris

Author:  datobin1 [ Tue Jun 05, 2007 11:40 am ]
Post subject: 

Is 192.168.1.0 the address that you are trying to use to connect, or are you substituting the 0 for somthing else?

192.168.1.0 is not a valid ip address so just wanted to make sure it wasn't a simple oversight.

192.168.1.0 should be ok for the config file. It tells it that 192.168.1.1 -192.168.1.255 are allowed to connect to the webmin service.

Author:  tophee [ Tue Jun 05, 2007 2:51 pm ]
Post subject: 

Thanks for the reply databin1. The tail "0" at the tail end of the address (192.168.1.0) is there to allow the wider range of ip addresses of 1-255. Should I be specifying a single address?

So with the wide range of available addresses I've tried (https://192.168.1.1:10000 and several revisions of that address i.e. 192.168.1.10:10000;192.168.1.30:10000; etc.), I've had no luck connecting to the server.

I added the "allow=127.0.0.1 192.168.1.0" line to my config file, rebooted and still no dice.

Author:  tjc [ Tue Jun 05, 2007 5:59 pm ]
Post subject: 

See the hints. Do not restore your old config, edit the new one as indicated, and you need to reboot the machine before it will work. This is the script I use and which is summarized in the hints.
Code:
root@black2:~/setup# cat setup_webmin.sh
#!/bin/bash

[ $# -ne 1 -o -z "$1" ] && {
    echo "You need to supply the webmin password for root"
    exit 1
}

mv /etc/webmin/miniserv.conf /etc/webmin/miniserv.conf.orig
sed -e "/\(host=\)dev\.mysettopbox\.tv/s//\1$(hostname)/" \
    -e '/allow=/d' \
    </etc/webmin/miniserv.conf.orig >/etc/webmin/miniserv.conf
echo >>/etc/webmin/miniserv.conf
echo 'allow=127.0.0.1 192.168.1.0' >>/etc/webmin/miniserv.conf

/usr/share/webmin/changepass.pl /etc/webmin root "$1"

update-rc.d webmin defaults

Author:  tophee [ Wed Jun 06, 2007 12:06 am ]
Post subject: 

Hi tjc,
I did follow the wiki, but I'll go through it again and let you know how I got on. When I upgraded I didn't restore my old webmin, this is me modifying the file manually.

Author:  simonf [ Wed Jun 06, 2007 5:21 am ]
Post subject:  This is probably a silly question BUT

you seem to be implying your trying different ip addressed to access the webmin site

Quote:
So with the wide range of available addresses I've tried (https://192.168.1.1:10000 and several revisions of that address i.e. 192.168.1.10:10000;192.168.1.30:10000; etc.), I've had no luck connecting to the server.


the allow= tells the server which clients to respond to not the ip address of the server.

you access the server by

https://{your myth boxes ip}:10000

you can check wether your server is running by typing (on the server)

wget 127.0.0.1:10000

if you get index.html saved its running (this is just a message saying youve selected none SSL mode )

i dont know off the top of my head how to determin your boxes ip address my is allways allocated the same one by my router so ive never needed to know.

If ive missinterpreted what you said ime sorry

Simon

Author:  tophee [ Wed Jun 06, 2007 9:54 am ]
Post subject: 

Ah... a light went on there.
I didn't realise it was the IP address of the boxen.
So by stipulating the correct IP address in my browser I've got access to Webmyth from my windows box!
Fantastic!
It's all a question of understanding what is going on. And previously I obviously didn't.
Thanks for shining the flashlight of knowledge in my dark corner.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/