LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-12-2006, 01:15 AM   #1
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Rep: Reputation: 15
Can't ping my Ubuntu!


Just fresh install my Ubuntu.
However, I can't ping this machine from my other computer.
 
Old 06-12-2006, 01:32 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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?
 
Old 06-12-2006, 01:42 AM   #3
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
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?
how?
 
Old 06-12-2006, 01:43 AM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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.
 
Old 06-12-2006, 01:59 AM   #5
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
by reading more infos, I think ubuntu doesn't come with a firewall.
 
Old 06-12-2006, 02:17 AM   #6
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
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."
 
Old 06-12-2006, 02:58 AM   #7
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
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
 
Old 06-12-2006, 03:09 AM   #8
bit128_linux
Member
 
Registered: Dec 2005
Location: Brasov, Romania
Distribution: Slackware, Bluewhite64
Posts: 49

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

ifconfig

from both machines.
Maybe there is your problem ...
 
Old 06-12-2006, 02:48 PM   #9
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
Link encap:Ethernet HWaddr 00:0D:02:58:75:36
inet addr:192.168.0.106 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20d:2ff:fe58:7536/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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.
 
Old 06-12-2006, 02:59 PM   #10
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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.
 
Old 06-12-2006, 03:23 PM   #11
manishsingh4u
Member
 
Registered: Oct 2005
Location: Bhopal, India
Distribution: RHEL 6
Posts: 422

Rep: Reputation: 30
Sorry, I missunderstood the problem. Sorry folks.

Last edited by manishsingh4u; 06-12-2006 at 03:26 PM.
 
Old 06-12-2006, 06:09 PM   #12
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
after exectuing #iptables -F, now I can ping.
But I still can't visit my apache test page from other computer
 
Old 06-12-2006, 06:33 PM   #13
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
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 192.168.0.3 and this box is host "Geo" and IP 192.168.0.2. I configured the routes in both boxes so I could go in either direction with alias x86 or Geo.
 
Old 06-12-2006, 06:42 PM   #14
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
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.
 
Old 06-12-2006, 09:03 PM   #15
keiwu
Member
 
Registered: Feb 2005
Posts: 77

Original Poster
Rep: Reputation: 15
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)
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Unable to access internet sites without keepalive ping running (wired card, Ubuntu 5) rebthor Linux - Networking 2 05-18-2006 12:58 PM
Cannot connect to internet or ping router in Ubuntu 5.04 chrisjs162216 Linux - Networking 12 02-26-2006 12:04 PM
PING works, but no Internet in Ubuntu only bond00 Linux - Networking 2 01-22-2006 04:41 PM
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 - Distributions > Ubuntu

All times are GMT -5. The time now is 06:35 PM.

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