LinuxQuestions.org
Review your favorite Linux distribution.
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 12-02-2004, 11:29 PM   #1
jammy3
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
can't ping linux box


This is getting frustrating. How can I enable my box to reply to the ping command???

hosts.deny contains...

ALL:ALL EXCEPT 192.168.0. ENY
ALL:ALL EXCEPT 127.0.0.1ENY

hosts.allow contains....

ALL: 192.168.0.


Both contain CR after the last entry.

I have other services working (web, ftp, ssh), but can't get a simple ping to work!

TIA.
 
Old 12-03-2004, 12:20 AM   #2
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Have you allowed ping in your firewall configuration?

iptables-save
 
Old 12-03-2004, 04:03 AM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Check iptables, for the icmp protocol. See if it is Accepted, or rejected.
 
Old 12-03-2004, 11:33 AM   #4
jammy3
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Original Poster
Rep: Reputation: 0
I had the f/w installed, but it wasn't "turned on". I have now enabled it, which all by itself allowed mysql connections. Ping still didn't work. I've added the following rule (after much research) but it didn't help.

*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:allow-ping - [0:0]
# allow-ping
-A allow-ping -p icmp -m icmp --icmp-type any -j ACCEPT
COMMIT

I realize this isn't secure, but for testing, I wanted to make it as basic as possible. The box (mandrake 10.2) is behind a h/w firewall. I don't even care to have the firewall on this box enabled if not necessary.

Thanks again.
 
  


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
Cannot ping linux box from XP box antare Linux - Networking 10 03-10-2005 10:48 AM
canīt ping my linux box by its name :( pavalosv Linux - Networking 3 01-13-2005 11:03 PM
Cannot ping the linux box amirbhai Linux - Networking 4 06-25-2004 04:43 PM
cant ping my linux box tommytomato Linux - Networking 56 05-18-2004 11:27 AM
Can't ping linux box Zero Linux - Networking 4 05-11-2002 01:26 AM


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