LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-01-2006, 10:45 PM   #1
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Rep: Reputation: 15
able to ping, but can't access the server from another computer


I have installed apache2 so I can visit a test page test.html by typing http://localhost/test.html or http://128.xxx.xxx.xxx/test.html without any problem.
However, if I try to access the test page from the other computer, then it says no page is found. I can ping that 128.xxx.xxx.xxx ip address from other computer, but I just cann't access http://128.xxx.xxx.xxx/test.html.

Any body has idea?
 
Old 06-02-2006, 03:05 AM   #2
huanvnn
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
you have to modify your firewall to fix this problem because your firewall may drop all packet from another computer to your webserver
 
Old 06-02-2006, 03:40 AM   #3
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
I am using Ubuntu, I don't know how to disable firewall.
 
Old 06-02-2006, 05:21 AM   #4
withjigs
LQ Newbie
 
Registered: Mar 2005
Location: india
Distribution: fc1/fc3
Posts: 6

Rep: Reputation: 0
run
#iptables -F
on console... thats it
 
Old 06-02-2006, 05:40 AM   #5
huanvnn
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
it's better to run followed commands :
service iptables stop
to disable firewall
 
Old 06-02-2006, 02:53 PM   #6
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
I tried it, and still not work!
 
Old 06-03-2006, 01:02 AM   #7
huanvnn
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
can you tell more about the errors ? and what happened when you typed the command
service iptables stop
try a gain!!!!!!
and if it is still unsuccessful you add the command
chmod 755 /...../index.html
 
Old 06-03-2006, 01:03 AM   #8
huanvnn
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
sorry you add the command chmod 755 /..../test.html instead of chmod 755 /.../index.html
 
Old 06-03-2006, 01:15 AM   #9
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
I guess I know what you mean. You're afraid that the other computer not have permission to read the test.html file?
Let me try it again.
By the way, what's 755 means?
How can I change the permission to the whole folder?
 
Old 06-03-2006, 01:26 AM   #10
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
for the
#service iptables stop
it says: command not found!

for the
#iptables -F

it just executes, and nothing is displayed. and didn't return any error message or nothing.
 
Old 06-03-2006, 12:54 PM   #11
huanvnn
LQ Newbie
 
Registered: May 2006
Posts: 20

Rep: Reputation: 0
please try to get the command /sbin/iptables stop
the number 755 is means user can read change and execute the file
you can use it with folder
 
Old 06-03-2006, 02:13 PM   #12
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
permission has now changed to allow read/write/execute
but still not work.

and for the iptables stop, I execute it and says the following:

kei@oca:~$ /sbin/iptables stop
Bad argument `stop'
Try `iptables -h' or 'iptables --help' for more information.
kei@oca:~$ iptables -h
iptables v1.3.1

Usage: iptables -[AD] chain rule-specification [options]
iptables -[RI] chain rulenum rule-specification [options]
iptables -D chain rulenum [options]
iptables -[LFZ] [chain] [options]
iptables -[NX] chain
iptables -E old-chain-name new-chain-name
iptables -P chain target [options]
iptables -h (print this help information)

Commands:
Either long or short options are allowed.
--append -A chain Append to chain
--delete -D chain Delete matching rule from chain
--delete -D chain rulenum
Delete rule rulenum (1 = first) from chain
--insert -I chain [rulenum]
Insert in chain as rulenum (default 1=first)
--replace -R chain rulenum
Replace rule rulenum (1 = first) in chain
--list -L [chain] List the rules in a chain or all chains
--flush -F [chain] Delete all rules in chain or all chains
--zero -Z [chain] Zero counters in chain or all chains
--new -N chain Create a new user-defined chain
--delete-chain
-X [chain] Delete a user-defined chain
--policy -P chain target
Change policy on chain to target
--rename-chain
-E old-chain new-chain
Change chain name, (moving any references)
Options:
--proto -p [!] proto protocol: by number or name, eg. `tcp'
--source -s [!] address[/mask]
source specification
--destination -d [!] address[/mask]
destination specification
--in-interface -i [!] input name[+]
network interface name ([+] for wildcard)
--jump -j target
target for rule (may load target extension)
--goto -g chain
jump to chain with no return
--match -m match
extended match (may load extension)
--numeric -n numeric output of addresses and ports
--out-interface -o [!] output name[+]
network interface name ([+] for wildcard)
--table -t table table to manipulate (default: `filter')
--verbose -v verbose mode
--line-numbers print line numbers when listing
--exact -x expand numbers (display exact values)
[!] --fragment -f match second or further fragments only
--modprobe=<command> try to insert modules using this command
--set-counters PKTS BYTES set the counter during insert/append
[!] --version -V print package version.
kei@oca:~$
 
  


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
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 12:55 PM
my computer(FC4 linux) can't ping other computer? oimm Linux - Networking 1 03-24-2006 08:20 AM
How to link windows xp and linux and access server from outside computer Kkfrink Linux - General 1 12-12-2005 05:53 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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