LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-28-2006, 12:40 AM   #1
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Rep: Reputation: 15
Apache / Webmin Not Working


Hello,

I just installed a fresh copy of Fedora 5 and installed a program called Webmin. I started the hpttd service and I can access the Apache test page and Webmin using my Fedora box. I am unable to access the webserver/webmin from any other computer. I am using a wireless Linksys WRT54G and I have ports 80 and 10000 open on it bound to the IP of the Fedora box. I had the same setup when running Fedora 3 without any problems. Does anyone have any ideas?

Thanks
 
Old 09-28-2006, 02:47 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
can you access webmin from the fc5 box using it's lan ip rather than localhost?
can you access webmin from a remote computer thru a ssh tunnel?
 
Old 09-28-2006, 02:52 AM   #3
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
I can access from the FC5 box via:

http://linux
http://127.0.0.1
http://192.168.1.102 (Static IP)

I cannot access from the FC5 box via:

http://MYWANIP (Router/ISP IP 24.x.x.x)
http://MYDOMAIN (Masked to my ISP IP 24.x.x.x)

I am not sure how to setup a ssh tunnel so I am unable to try point number 2.

Thanks
 
Old 09-28-2006, 04:21 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
on your remote computer (if it is a windows system you can install sshwindows.sf.net)

ssh user@host -L 80:localhost:80
this will establish a tunnel so that you then can open firefox for example and browse to localhost
 
Old 09-28-2006, 02:24 PM   #5
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks for the tip but this defeats the purpose of people being able to access my webspace...........People outside my LAN are unable to access..........I am so stuck!
 
Old 09-28-2006, 05:33 PM   #6
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
check your firewall!!
on the linux box (iptables)
 
Old 09-28-2006, 05:58 PM   #7
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
Quote:
Originally Posted by email from Verbal_Kint
Hey Nathan,

Thank you for the answer but I am very new to all of this. Can you please tell me what I am looking for in the firewall/ip tables......Thanks.
1. this is a thread specific q. so post it to the thread
this enables everybody to help and also helps those you might just be searching via google or LQ
for thread content.

2. please note my sig: it's Nathanael!

3. there is no shame in stating one is a noob or unfamiliar with something. if it belongs to the thread post it to the thread.

4. it is generally not adviseable to continue a thread via email to somebody who helped before in the thread, as people might want to opt out, or might wait for other users responses. members dont hog threads like bug-tickets :-) other members might be a bit faster too
some members also get emails from LQ as soon as there has been an update to a subscribed thread (as you might have gathered yourself)

5. run iptables-save and post the output here

6. it's midnight here - that means bed time for me + a long weekend, that means 'no Nathanael for the next 4 days' for you :-P

Last edited by Nathanael; 09-28-2006 at 06:00 PM.
 
Old 09-28-2006, 09:31 PM   #8
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Thank you for all the point outs.

[root@Linux ~]# iptables-save
# Generated by iptables-save v1.3.5 on Thu Sep 28 21:30:10 2006
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [11441:4231441]
: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 -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p ipv6-crypt -j ACCEPT
-A RH-Firewall-1-INPUT -p ipv6-auth -j ACCEPT
-A RH-Firewall-1-INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state --state NEW -m udp --dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m state --state NEW -m udp --dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 445 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 23 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Sep 28 21:30:10 2006
 
Old 09-28-2006, 09:59 PM   #9
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Yes!

Okay I checked through the firewall settings and sure enough http was disabled by default. I enabled this and added port 10000 for the webmin program and I can access with no problems. Thank you for all the help Nathanael.

Last edited by Verbal Kint; 09-29-2006 at 02:13 AM.
 
  


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
Apache+Webmin HELP madogfreeman Linux - Software 1 05-23-2006 02:28 AM
webmin apache 2 dienerk Suse/Novell 3 10-26-2004 08:18 AM
webmin/apache artistik Linux - Software 15 08-19-2003 09:29 PM
Apache 2 and Webmin bogomip_bandit Linux - Software 1 05-21-2003 08:10 PM
webmin and apache SSBN Linux - Networking 3 05-02-2003 10:59 AM


All times are GMT -5. The time now is 05:13 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