Announcement

Collapse
No announcement yet.

How to set Friewall to stop pings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to set Friewall to stop pings

    I've just installed Kubuntu and enabled the Firewall. When I check my system on Shields Up it fails the ping test. See image at: https://jameskbtestdomain.com/pingFailed.png

    What setting do I need to use to fix this issue?

    Thank you for your time.

    #2
    Edit /etc/ufw/before.rules​ and look at # ok icmp codes for INPUT and # ok icmp code for FORWARD

    changes :

    -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT for -A ufw-before-input -p icmp --icmp-type echo-request -j DROP for both

    after editing the file make sudo ufw reload​

    The other way is to disable icmp request on router.

    Comment


      #3
      Originally posted by Virginio Miranda View Post
      The other way is to disable icmp request on router.
      This would be the main way, if behind a router. Being able to ping a system on your home/local network is not a bad thing.

      Comment


        #4
        Originally posted by claydoh View Post
        This would be the main way, if behind a router. Being able to ping a system on your home/local network is not a bad thing.
        I agree totally.

        Comment


          #5
          Thanks for the tips. I will look into it.
          Have a good day,

          Comment

          Working...
          X