Author Topic: How to enable ICMP requests  (Read 2797 times)

TonyBryan

  • Regular Poster
  • **
  • Posts: 26
    • View Profile
How to enable ICMP requests
« on: January 18, 2012, 04:12:25 pm »
I have all the connectivity working between my external and internal networks - yay!  Except ping.  So I can live without it, but it aggravates me.  How is this configured?

As a test, I ran:
sudo iptables -A INPUT -p icmp -j ACCEPT

Now ping works.  But where do I place the configuration to allow ping at boot up?

Ubuntu forums suggest it is ufw.  I checked /etc/ufw/ufw.conf:

Code: [Select]
# /etc/ufw/ufw.conf
#

# set to yes to start on boot
ENABLED=no

So I'm not even sure its running.  Even so, the /etc/ufw/before.rules file contains the correct iptable rule so far as I can tell:

Code: [Select]
# ok icmp codes
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT