LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-16-2008, 07:08 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
How do you enable your computer to allow icmp requests?


I ping my fedora box and it times out. What do I need to change in the terminal on the fedora box?
 
Old 08-16-2008, 08:08 PM   #2
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Don't know the name of the file you need to edit, but this is normally associated with a firewall configuration and that is iptables so you need to edit iptables to allow icmp requests "ping"
 
Old 08-16-2008, 09:02 PM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
Go to firewall configuration tool: on gnome menu system, System/Administration/Firewall.
On the window "Firewall Configuration", on left panel, select "ICMP Filter".
On the right panel, select under "ICMP type" the entry "Echo reply (pong)".
that's it !
 
Old 08-16-2008, 11:44 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Quote:
Originally Posted by trist007 View Post
I ping my fedora box and it times out. What do I need to change in the terminal on the fedora box?
I'll try to answer this for a terminal method to do this...

This is likely to be that an imcp rule is missing from iptables. Do

/etc/init.d/iptables status
(alternatively if you are directly logged in as root, "service iptables status" in RHEL based distros)

This should tell you if iptables is running if it is, if this works then it may display a list of your current rules with addresses and traffic types, if not do the following in code. If your firewall is not running then I do not know what your problem is.

Code:
iptables -nvL

this will output on to the terminal your firewall settings, the type of traffic and the source/destination ports they are applied too.
You want to check your input chain for a rule that accepts IMCP traffic on source and destination addresses of 0.0.0.0/0 with an imcp-type of 8 (I believe 255 would also work but not certain on this). I believe this does not exist, if this is the case run the following command.

iptables -A <inputchain> -p icmp --icmp-type 8 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

switch <inputchain> for the actual name of your input chain.

Once done, try to ping your server, if this works then just do the following.

/etc/init.d/iptables save
(if you are logged in as root you should be able to do "service iptables save" in RHEL based distros)

Last edited by r3sistance; 08-16-2008 at 11:46 PM.
 
  


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
ICMP requests from Content Delivery Network jlarsen Linux - Networking 1 07-17-2008 10:34 PM
routing requests to internal computer anthill Linux - Server 6 10-08-2007 04:09 AM
icmp broadcast requests and martian source ~=gr3p=~ Linux - Networking 0 07-24-2007 06:27 AM
Blocking ICMP requests metallica1973 Linux - Security 4 04-02-2006 01:48 PM
ICMP packet requests Ch@meleon Linux - General 0 11-29-2001 01:03 PM


All times are GMT -5. The time now is 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration