LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-02-2007, 06:03 PM   #1
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
apache server cannot be accessed from other computers in LAN


Hi,
I have installed OpenSuse on my machine and installed apache which is working properly.

I can see the test page from my computer, but I am not able to see that page from other computers connected to the same network. I have scanned my open ports and I can see port 80 open.

Is there anything I am missing in apache configuration file?
 
Old 04-02-2007, 06:18 PM   #2
Doctor22
LQ Newbie
 
Registered: Apr 2007
Distribution: Ubuntu and some others
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by mohtasham1983
Hi,
I have installed OpenSuse on my machine and installed apache which is working properly.

I can see the test page from my computer, but I am not able to see that page from other computers connected to the same network. I have scanned my open ports and I can see port 80 open.

Is there anything I am missing in apache configuration file?
do you have any firwall or something on. chek that out as well

also try to reinstall it see if that will help.
 
Old 04-02-2007, 06:42 PM   #3
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
How can I see if it is behind firewall?
 
Old 04-02-2007, 11:38 PM   #4
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Can you SSH into the machine from elsewhere on the network?
 
Old 04-03-2007, 12:07 AM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Can you show us how you are verifying that port 80 is open? You should see something like this "0.0.0.0:80". Also, run 'iptables -L' to see if your firewall is blocking it.

-twantrd
 
Old 04-03-2007, 01:07 AM   #6
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
i used nmap localhost to see open ports of my machine. But there is no other linux machine in the network to scan my machine open ports.

My guess is that, the network administrator has blocked html and ssh port.

Since it is at work, I have to check it tomorrow.

Thanks for replies.
 
Old 04-03-2007, 01:04 PM   #7
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
iptables -L gives me following result:


Code:
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     0    --  anywhere             anywhere            
ACCEPT     0    --  anywhere             anywhere            state RELATED,ESTABLISHED 
input_ext  0    --  anywhere             anywhere            
input_ext  0    --  anywhere             anywhere            
LOG        0    --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-IN-ILL-TARGET ' 
DROP       0    --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         
LOG        0    --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-FWD-ILL-ROUTING ' 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     0    --  anywhere             anywhere            
ACCEPT     0    --  anywhere             anywhere            state NEW,RELATED,ESTABLISHED 
LOG        0    --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-OUT-ERROR ' 

Chain forward_ext (0 references)
target     prot opt source               destination         

Chain input_ext (2 references)
target     prot opt source               destination         
DROP       0    --  anywhere             anywhere            PKTTYPE = broadcast 
ACCEPT     icmp --  anywhere             anywhere            icmp source-quench 
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp echo-reply 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp destination-unreachable 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp time-exceeded 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp parameter-problem 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp timestamp-reply 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp address-mask-reply 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp protocol-unreachable 
ACCEPT     icmp --  anywhere             anywhere            state RELATED,ESTABLISHED icmp redirect 
LOG        tcp  --  anywhere             anywhere            limit: avg 3/min burst 5 tcp dpt:http flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP ' 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 
reject_func  tcp  --  anywhere             anywhere            tcp dpt:ident state NEW 
LOG        0    --  anywhere             anywhere            limit: avg 3/min burst 5 PKTTYPE = multicast LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT ' 
DROP       0    --  anywhere             anywhere            PKTTYPE = multicast 
LOG        tcp  --  anywhere             anywhere            limit: avg 3/min burst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT ' 
LOG        icmp --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT ' 
LOG        udp  --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT ' 
LOG        0    --  anywhere             anywhere            limit: avg 3/min burst 5 state INVALID LOG level warning tcp-options ip-options prefix `SFW2-INext-DROP-DEFLT-INV ' 
DROP       0    --  anywhere             anywhere            

Chain reject_func (1 references)
target     prot opt source               destination         
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset 
REJECT     udp  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     0    --  anywhere             anywhere            reject-with icmp-proto-unreachable
 
Old 04-03-2007, 01:38 PM   #8
mcupples
Member
 
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57

Rep: Reputation: 15
This may sound stupid, but which ip are you using to connect to your computer? Does it start with 192.168? Are you using the external ip? If you're using the external ip you have to forward port 80 to the router.
 
Old 04-03-2007, 02:42 PM   #9
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
i am using 130.65.42.234
 
Old 04-03-2007, 02:56 PM   #10
mcupples
Member
 
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57

Rep: Reputation: 15
Ah, okay that's the problem. You need to find out the local ip of your box. Pop open a shell and hit "ip addr". That should bring up your network ip address. You want the one that starts with "192.168.x.x". If you direct other computers in your network to that ip it should work smoothly.

The only thing is, this will not work outside of your network. To do that, you'll need to forward some ports. Let me know if you need to do that and I can help with that.

And if this isn't the problem... my bad?
 
  


Reply



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
internal LAN IPs to get accessed from Internet ( not through port forwarding ) edywas Linux - Networking 4 10-26-2007 03:30 PM
apache server not reachable from out of lan huntermix *BSD 6 08-04-2006 02:40 PM
How can i broadcast a message to computers connected with Telnet to an Apache server? samy.navab Linux - Newbie 1 08-21-2005 02:08 PM
KDE Lan Browser doesn't display available LAN computers dance2die Linux - Newbie 2 01-16-2005 08:14 PM
I cannot see my own server from computers on my LAN proroer Linux - Networking 2 09-07-2003 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:42 AM.

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