Big woops! Help please.

7 posts / 0 new
Last post
#1 Sat, 04/10/2010 - 12:14
mobiusllc

Big woops! Help please.

I had an ACL setup so that only our local subnet of 192.168.0.0 could access the webmin interface. Well...we did a change over to 192.168.127.x, and now I can't access webmin hah. Woops! How can I change this so I can now access it from our new addresses? Will I have to re-install webmin?

Thanks.

Sat, 04/10/2010 - 19:38
andreychek

Howdy,

No, you definitely don't need to reinstall Webmin :-)

That said, I'm not sure which config file it's in... that's okay, you can find it if you're able to log in over SSH. You can just run this command:

find /etc/webmin | xargs grep 192.168.127

You should only see a handful at most of hits -- feel free to post what output you see in here and I'll point you in the right direction. However, once we find the right file, it should be a matter of changing that old IP range to your new one, then restarting Webmin.

-Eric

Mon, 04/12/2010 - 10:37 (Reply to #2)
mobiusllc
]# find /etc/webmin | xargs grep 192.168.127
/etc/webmin/virtual-server/localips:192.168.127.159
/etc/webmin/virtual-server/localips:192.168.127.162
/etc/webmin/virtual-server/localips:192.168.127.158
/etc/webmin/virtual-server/domains/122895484826911:ip=192.168.127.158
/etc/webmin/virtual-server/domains/124526116519484:ip=192.168.127.162
/etc/webmin/virtual-server/domains/123258002621223:ip=192.168.127.161
/etc/webmin/virtual-server/domains/12528578823275:ip=192.168.127.163

Thanks!

Mon, 04/12/2010 - 10:45
andreychek

Hrm... it seems I let you astray :-)

You said you changed the subnet to "192.168.127"... so me telling you to do a search on that subnet isn't going to yield any useful information :-)

Are you saying the old subnet was "192.168.0.*"?

If so, change the above command to:

find /etc/webmin | xargs grep 192.168.0

If you don't get any useful info out of that, you could always just drop the "0" out of the above, and it'll find anything with "192.168." in it. Feel free to post your output here, and we'll figure out which file you need to edit :-)

-Eric

Mon, 04/12/2010 - 10:53 (Reply to #4)
mobiusllc

heh. I was wondering about that. So I did do the .0 and all that returned was a bunch of my backup logs. Then this:

/etc/webmin/time/config:timeserver=192.168.0.156
/etc/webmin/servers/1245195260.serv:host=192.168.0.43
Mon, 04/12/2010 - 10:54
andreychek

Alright, yeah, that's not it either then... try dropping the 0 altogether and see what we come up with :-)

-Eric

Tue, 04/20/2010 - 09:24
mobiusllc

Man..... You will not believe this. I was doing your requested commands on the wrong flippin server. All fixed now. Thank you Andreychek.

Topic locked