Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-16-2008, 06:08 PM   #1
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,042

Rep: Reputation: 70
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, 07:08 PM   #2
john test
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, 08:02 PM   #3
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,459
Blog Entries: 1

Rep: Reputation: 66
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, 10:44 PM   #4
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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.

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 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 10:46 PM.


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

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration