LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2004, 11:49 PM   #1
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Just installed webmin, can't access off localhost


Hello, I've just installed webmin 1.140

I can access it by lynx localhost from SSH

but I cannot access it over the LAN by http://192.168.0.4 from my windows box.

This is strange because I can access apache this way.

I have the IP Access Control [thats a feature within webmin config] set to not limit any IP addresses, yet I still have this problem.

Running Redhat Fedora 1

What should I do? Thanks!

Last edited by jon_k; 05-04-2004 at 03:57 AM.
 
Old 05-04-2004, 01:40 AM   #2
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
`
 
Old 05-04-2004, 02:07 AM   #3
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
What port are you using for the Webmin server? If it is other than port 80, are you running iptables? If so, then make sure that you have a rule to allow that port. I think the default port for Webmin is 10000.
 
Old 05-04-2004, 03:52 AM   #4
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
Yes, default port for webmin is 10000

I am not running IPTables, nor do I have "fedoras" firewall enable neither.

Well, I'm not sure about IPTables completley, wheres the iptables file located?

/etc/sysconfig/iptables -- right? heres the code for that file
Code:
# Firewall configuration written by redhat-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
There appears to no mention of port 10000 (webmin default port)

I've also set webmins port to port 81, still no beans, still only localhost seems to be able to connect to webmin, whereas other systems on the LAN cannot.

Really appriciate anyones responce. Thanks

Last edited by jon_k; 05-04-2004 at 03:55 AM.
 
Old 05-04-2004, 04:37 AM   #5
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
try add this line to the iptables file:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT

this will accept new incoming connections on port 10000.
acces webmin with:

http://192.168.0.4:10000

you need to include the port and the http:// part!

greetz,
.-=~ iluvatar ~=-.

edit:
just for info, it works from localhost because this line in the iptables file:
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
this means to accept ALL incoming connections from localhost

Last edited by iluvatar; 05-04-2004 at 04:39 AM.
 
Old 05-04-2004, 04:50 AM   #6
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Original Poster
Rep: Reputation: 30
Thank you very much iluvatar!

It worked, I added that line manually and then restarted the system (changes didn't take effect until I restarted, and I don't know how to restart the iptables deamon.

If someone will mention how to restart iptables deamon so the changes take effect, I'd appriciate it! Thanks!
 
Old 05-04-2004, 12:07 PM   #7
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
The command "/etc/rc.d/init.d/iptables restart" will flush the iptables config, and read the config file again.
 
Old 05-05-2004, 10:29 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Here's some commands for redhat / fedora

the firewall...
service iptables stop
service iptables start
service iptables restart

starting at boot...

chkconfig itables off
chkconfig iptables on

to save changes (if you entered iptables commands to setup some rules manually)...

service iptables save
 
Old 08-18-2004, 10:23 PM   #9
kevinm2
Member
 
Registered: Aug 2004
Distribution: Redhat 7.2
Posts: 73

Rep: Reputation: 15
Cannot find the ipatables files

I can't log into webmin remotely and as I read the following, I found out that I do not have the iptables file.
Any body knows how I can create or fix my problem that?

In another chat room I read that rempte log in is not on. Could that be the problem?
 
Old 12-29-2004, 08:37 AM   #10
jlbrt
LQ Newbie
 
Registered: Dec 2004
Distribution: Debian and Ubuntu
Posts: 2

Rep: Reputation: 0
Try installing webmin-firewall, and configuring it.

Last edited by jlbrt; 12-29-2004 at 08:42 AM.
 
Old 05-27-2005, 01:27 PM   #11
Redleg
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora
Posts: 24

Rep: Reputation: 16
Found this subject helpfull regarding access to Webmin from a machine that is not localhost, but in my case I had to modify the line:

iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT

to:

iptables -I RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT

the first line places the accept rule at the end of the chian, after the reject rule. The port 10000 connection is rejected before it gets to the accept rule. The -I causes the rule to be inserted at the beginning of the chain. This may be unique to what I am using, Fedora 3, as it worked for the OP.

Posting this in case someone has the same problem as I did.

Thanks iluvatar for getting me pointed in the right direction.
 
1 members found this post helpful.
Old 01-10-2008, 04:23 PM   #12
ttkkdog
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Can't access webmin website

I,m running Squid Proxy on my Suse Linux box, and I down loaded Webmin so i could more easley configure the proxy. When i first installed it i could login with no problem. I turned the machine off to move it in my lab to a new location, started the machine up and tried again to access the local proxy and got this error

Firefox can't establish a connection to the server at linux-ym0b:10000.

Can anyone help me with this?

John
 
Old 01-10-2008, 04:44 PM   #13
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
You'll probably need to start Webmin again. Look in the /etc/rc.d/init.d directory (I think that's what it is on Suse) and look for a script for webmin. Use that to start Webmin again.

If that works, then add that command into the rc.local file to make Webmin start automatically.
 
Old 01-10-2008, 05:20 PM   #14
ttkkdog
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Can't access webmin website

I went to directory /etc/rc.d but there was know init.d. Is there a command to restart the service? You will have to excuse me I'm new to the Linux world.
 
Old 01-10-2008, 05:31 PM   #15
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
There is a command to restart, but there has to be an init script first. Try the command "service webmin start".
If the installer created the init script, then that should work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not access the Webmin on Linux bal Linux - Networking 4 01-21-2008 12:20 AM
access to webmin via xp tommytomato Linux - Newbie 6 11-28-2004 02:58 AM
Access to webmin tommytomato Linux - General 2 01-04-2004 10:59 PM
How to access Webmin?? wiggywag Linux - Software 4 10-21-2003 05:02 AM
Webmin and localhost esteeven Linux - Software 4 07-03-2003 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration