LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-02-2007, 02:06 PM   #1
gandalfrat
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
Centos 4.4 - Webmin: cannot connect (even with firewall exception)


Hi,

trying to get webmin to connect from an external box to my text only install of Centos 4.4


1. I installed the Webmin RPM and /etc/webmin/start seems to work successfully
2. i added the following exception to the /etc/sysconfig/iptables file:

-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT

note: I also tried this format (since most entries in my IPTABLES file had this format):

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

From another machine, I tried this server's ip addr and webmin port (port 10000)

But I get a page cannot be loaded error.

Suggestions on other things I need to do in order to enable Webmin?

Note: this happens with/without httpd running. Do you need to have httpd running for webmin to work? There's nothing about it in the FAQ...
 
Old 04-02-2007, 02:16 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
you don't need apache for webmin, it's got its own webserver built in.
can you establish local connections ?
 
Old 04-02-2007, 02:24 PM   #3
gandalfrat
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtspitz
you don't need apache for webmin, it's got its own webserver built in.
can you establish local connections ?
Hmmm... I just installed lynx and I can locally browse http://localhost:10000 and http://xxx.xxx.x.xxx:10000 where my webmin is installed... but I cannot get to it from a box on the same network...

Thanks for any suggestions you can provide.


GR

Last edited by gandalfrat; 04-02-2007 at 02:33 PM.
 
Old 04-02-2007, 04:05 PM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
If you stop the firewall can you get in from a remote PC? If you can then your firewall rules need to be changed.

To stop the firewall temporarily you can do this:
/etc/init.d/iptables stop

Also after you made edits to the iptables file did you restart the service?
 
Old 04-02-2007, 04:20 PM   #5
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
hmmm.

if your iptables script includes logging of dropped firewall packets have a look at /var/log/messages or equivalent on your system and look for dropped packages with port 10000 as destination.

you said you had another machine on the same net (switch?). if so, just disable your firewall for a sec (maybe unplug internet if you're afraid of hackers) and try again.
 
Old 04-02-2007, 04:27 PM   #6
gandalfrat
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtspitz
hmmm.

if your iptables script includes logging of dropped firewall packets have a look at /var/log/messages or equivalent on your system and look for dropped packages with port 10000 as destination.

you said you had another machine on the same net (switch?). if so, just disable your firewall for a sec (maybe unplug internet if you're afraid of hackers) and try again.
Thanks! Disabling firewall and examing logs allowed me to get right in via Webmin and helped me to get a handle on it... it was very obvious the way that webmin displayed the firewall table what the issue was...

I had

-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

as the entry preceding my exception for port 10000. By re-ordering my entry before this entry, I am able to get in with the firewall on.

Not that I have any idea what this entry is... but I understand now that order mattters to the firewall.

Guess I'll read up on that at some point... or may disable autostart of the firewall for the time being.

Thanks,

GR
 
  


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
How do I connect to Webmin remotely? wslyhbb Linux - Networking 3 11-18-2010 04:03 AM
CentOS with webmin Bassboom Linux - Newbie 7 11-15-2006 11:33 AM
centos - firewall up - ftp no permissions sir-lancealot! Linux - Security 7 08-31-2006 04:40 PM
CentOS 4.3 Outside of Firewall msound Linux - Security 1 08-22-2006 07:58 PM
centos wont install, kernal panic no sync - fatal exception in interrupt Atown Linux - Hardware 1 05-23-2006 06:31 PM


All times are GMT -5. The time now is 07:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration