LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-21-2005, 12:12 PM   #1
aw_wolfe
Member
 
Registered: Apr 2005
Posts: 50

Rep: Reputation: 15
Question apache setup problem


I've seen several posts that seem similiar to my problem, however, I haven't found any with solutions. So here is the problem....

[Internet]->[Cable Modem dhcp client]->[Router dhcp server, port 80 forward to static IP]->[wlan0]->computer[apache- Fedora 3, configured on install to allow http through firewall]

Ok, internet works from webserver computer (out). I can hit the apache with internal ip (http://192.1681.2 with Mozilla), but doesn't work if use registered name (using no-ip.com service). I can also ping my machine using xxxx.no-ip.com (so I know that the registered mapping works). Using http://xxxx.no-ip.com causes a time out error in Mozilla (locally as well as from the outside).

Also, machine was windows server webserver that worked and I have not changed anything on the router, so don't think the problem is there. Right now assuming it is being blocked by the internal firewall on the server (just a guess), but not sure how to fix.

Thanks,

Tony
 
Old 04-21-2005, 05:11 PM   #2
Ateo
Member
 
Registered: Sep 2004
Location: http://longbeach.ca.u$
Distribution: Ubuntu,Gentoo, OSX
Posts: 136

Rep: Reputation: 15
Router's do not route packets out the same interface as it came in. A routers job is to pass packets from one network to another. In other words, destination network and source network must be different.

Ping is a different protocol. A router will always respond if the pinged IP is configured to one of it's ports AND that port is up.

How are you testing this from the internet?

Last edited by Ateo; 04-21-2005 at 05:14 PM.
 
Old 04-21-2005, 05:22 PM   #3
aw_wolfe
Member
 
Registered: Apr 2005
Posts: 50

Original Poster
Rep: Reputation: 15
friend is trying to hit it from outside.

ping was really just to ensure name->ip registration working, since it woulde be pinging cble modem/router, not webserver computer. but not sure why webserver isn't working with myname.com. Seems configured to allow any 80 in via httpd config with fedora.

[root@localhost src]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:http
LOG all -- anywhere anywhere LOG level warning prefix `INPUT_DROP: '

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
 
Old 04-21-2005, 06:27 PM   #4
aw_wolfe
Member
 
Registered: Apr 2005
Posts: 50

Original Poster
Rep: Reputation: 15
I've used the iptables command to manually insert input, output, forward. so now it gives the following (note that it still does not work.) This seems to be a fairly common problem, having a hard time believing it is so difficult to get a solution for (not finding any help via searching, but finding other postings with similar problem)

iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:http
LOG all -- anywhere anywhere LOG level warning prefix `INPUT_DROP: '
ACCEPT tcp -- anywhere 192.168.1.2 tcp dpt:http

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
ACCEPT tcp -- anywhere 192.168.1.2 tcp dpt:http

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere 192.168.1.2 tcp dpt:http

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
 
  


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 or php setup problem caged Linux - Software 2 10-28-2004 06:29 PM
Apache setup aeruzcar Linux - Networking 10 05-22-2004 06:07 PM
Apache setup help? TechSonic Linux - Newbie 7 02-23-2004 11:51 AM
Apache 2 setup fredws Mandriva 2 11-13-2003 05:47 AM
Apache setup problem ne0mesis Linux - Software 0 07-13-2003 07:29 PM


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