Jump to content

Webmin, Cannot get it to work.!


Recommended Posts

Posted (edited)

I wanted to try 'CentOS' for my home NAS & Backup-server, So I downloaded the net install iso and finally installed CentOS 6.3 with minimum server install.

I then installed 'X Window System' And 'Gnome Desktop', That all went well, I then created a 'User' account, logged out of root and into user, then updated it.

I have used 'Webmin' before on 'PCLinuxOS' so I wanted to try it on this distro and followed this to install it ...

Install Webmin on CentOS 6.3 | Zwiegnet Blog 2012

 

But I cannot get it to run in firefox !. http://file-server.localdomain:10000 ............ I just get 'Server not found'

 

# service webmin status

Webmin (pid 1724) is running

 

# uname -a

Linux file-server.localdomain 2.6.32-279.9.1.el6.i686

 

 

There is no firewall on this test machine.

 

Any idea's what I can try please.

Edited by tickmike
Posted

OR it could be the firewall is blocking http or https.

 

run this command:

 

system-config-firewall-tui

 

BEAWARE though system-config may not be install so you may need to run 'yum install system-config-firewall-tui'

 

Once into system-config edit the firewall - scroll down the list and enable http and https and then go forward until you go to the end and apply it.

 

This is done through CLI - I've never done it through Gnome Desktop - Ive never installed CentOS with a Desktop.

Posted

The one that worked was "http://localhost:10000" by ragbuster Thanks, I did not have to do anything else because I do not think that I installed / set up 'iptables'

# service iptables status

Table: filter

Chain INPUT (policy ACCEPT)

num target prot opt source destination

1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED

2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0

3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22

5 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

 

Chain FORWARD (policy ACCEPT)

num target prot opt source destination

1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

 

Chain OUTPUT (policy ACCEPT)

num target prot opt source destination

 

 

 

Does that mean it's not running ?.

The ' cli ' takes some getting used too !.

Posted

If iptables is running it will be listed as running under the services application.

Your rules from above show rejecting all forwarding and for your incoming you reject all initially and then allow all via all those rules.

Well thats how it would be interpreted in webmin but not sure if cli mode shows it reversed, if so you are enabling all ports and then finally rejecting everything.

Posted

@ ragbuster

In webmin it says

 

-----------------------------------------------------------------------------------------------------------------------------------------

Linux Firewall

Rules file /etc/sysconfig/iptables Search Docs..

 

 

Incoming packets (INPUT) - Only applies to packets addressed to this host

Select all. | Invert selection.

Action Condition Move Add

Accept If state of connection is ESTABLISHED,RELATED

Accept If protocol is ICMP

Accept If input interface is lo

Accept If protocol is TCP and destination port is 22 and state of connection is NEW

Reject Always

Select all. | Invert selection.

 

Forwarded packets (FORWARD) - Only applies to packets passed through this host

Select all. | Invert selection.

Action Condition Move Add

Reject Always

Select all. | Invert selection.

 

Outgoing packets (OUTPUT) - Only applies to packets originated by this host

There are no rules defined for this chain.

 

Click this button to make the firewall configuration listed above active. Any firewall rules currently in effect will be flushed and replaced

Click this button to reset the configuration listed above to the one that is currently active.

Yes No Change this option to control whether your firewall is activated at boot time or not.

Click this button to clear all existing firewall rules and set up new rules for a basic initial configuration.

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

This is from 'Boot up and shutdown'

iptables Starts, stops and saves iptables firewall Yes (start at boot) Unknown status

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

I will just use port 22xx for ssh to the server and block the rest if I dicide to use Centos for my NAS.

once I have found my way around I will install raid 1 on it and do more tests.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...