-   Ubuntu (
-   -   Can't ping my Ubuntu! (

keiwu 06-12-2006 01:15 AM

Can't ping my Ubuntu!
Just fresh install my Ubuntu.
However, I can't ping this machine from my other computer.

nadroj 06-12-2006 01:32 AM

is the network configured properly? whats the exact output? can the target computer ping the computer your testing from? was there a firewall set up? router?

keiwu 06-12-2006 01:42 AM

this Ubuntu machine can ping other machine.
It just other machine can't ping the ubuntu machine.
It says: request timed out.
the ubuntu machine uses wireless connection.
not sure how to check if the firewall is up or not.

we need to disable firewall if it is up?

nadroj 06-12-2006 01:43 AM

you could check something like 'iptables -L' as root.. or whatever software ubuntu uses as firewall. look around in your GUI for a network/security section for firewall. or on ubuntuforums website.

keiwu 06-12-2006 01:59 AM

by reading more infos, I think ubuntu doesn't come with a firewall.

keiwu 06-12-2006 02:17 AM

by reading more, I found out that Ubuntu by default leaves 0 port open (this means no port is open then you can not ping it?)
read this:

"As a matter of fact, Ubuntu has a "no open ports" policy by default. If you don't believe me, try running this on a fresh install of Ubuntu 5.10 (Breezy Badger Release):
nmap -sV -O

If you notice, nmap will tell you that 0 ports are open.

The reason Ubuntu doesn't ship with a firewall is because 0 ports are open."

keiwu 06-12-2006 02:58 AM

My iptables rule now:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www

And still can not ping this ubuntu machine

bit128_linux 06-12-2006 03:09 AM

Please post the output of(executed as root, of course):


from both machines.
Maybe there is your problem :confused:...

keiwu 06-12-2006 02:48 PM

Link encap:Ethernet HWaddr 00:0D:02:58:75:36
inet addr: Bcast: Mask:
inet6 addr: fe80::20d:2ff:fe58:7536/64 Scope:Link
RX packets:197 errors:175 dropped:0 overruns:0 frame:175
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:72101 (70.4 KiB) TX bytes:4917 (4.8 KiB)
Interrupt:11 Memory:d4b40000-d4b50000

The other is a Windows XP machine.

nadroj 06-12-2006 02:59 PM

the windows command would be something like 'ipconfig /all'

try, as root, 'iptables -F' to clear all rules for the firewall.. then try pinging again, if that works then its the iptables rules and we'll have to fix those.

manishsingh4u 06-12-2006 03:23 PM

Sorry, I missunderstood the problem. Sorry folks.

keiwu 06-12-2006 06:09 PM

after exectuing #iptables -F, now I can ping.
But I still can't visit my apache test page from other computer

fragos 06-12-2006 06:33 PM

ping by IP should work but ping by host name will require that you configure a route. For Ubuntu in System - Administration - Networking - Hosts tab - Add - IP address & Alias. For example on my local network of two boxes the other box is host "x86" and IP and this box is host "Geo" and IP I configured the routes in both boxes so I could go in either direction with alias x86 or Geo.

nadroj 06-12-2006 06:42 PM

keiwu the 'iptables -F' command that i told you is used to 'flush' (ie remove) all the rules in the iptables firewall. since you flushed the rules, your computer is now unprotected with a firewall and if you have software on your computer that is subject to remote attacks then you should be careful.

look into iptables basics to setup a firewall that is good for you. or we can help you set it up if you tell us what services the computer will be serving.

for the apache test page, it is not a firewall problem as there is no firewall configured after you ran the command. meaning its a configuration problem with the apache software. double check the setup process/documentation to make sure you didnt miss anything.

keiwu 06-12-2006 09:03 PM

I only want to host my site using Ubuntu.

the instructions for setting up Apache2 are from my Professor, and it works on the school lab machine. But I tried it in my home computers and none of them work.
(If machine A is my Ubuntu machine, and I can visit the test page using machine A by typing: http://localhost/test.html or http://192.x.x.x/test.html. It is only that I can't visit the test page using the other machine say B by typing: http://192.x.x.x/test.html)

All times are GMT -5. The time now is 11:37 AM.