PDA

View Full Version : [ubuntu] Block Pinging with GUFW



Silvertones
January 25th, 2010, 01:33 PM
I did one of the recommended port scans and all ports passed but failed on pinging. How do you turn pinging on & off with GFUW?

cdenley
January 25th, 2010, 02:40 PM
https://answers.launchpad.net/ufw/+question/26585

Silvertones
January 25th, 2010, 04:51 PM
Info not clear to me as what to do.

CharlesA
January 25th, 2010, 04:55 PM
Open a terminal window and type:


gksudo gedit /etc/ufw/before.rules

Find the string that says "-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT" and put a # in front of it. Save and restart UFW.

EDIT: If you don't want your network to respond to pings, and you are behind a router, you would need to set the router to not respond to ping requests.

bodhi.zazen
January 25th, 2010, 05:14 PM
See also :

https://help.ubuntu.com/community/UFW

There is an entire section on ping on the wiki page.

cdenley
January 25th, 2010, 05:16 PM
gksu gedit /etc/ufw/before.rules


Add the red "#":


# 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


Save, close, reboot.

Silvertones
January 25th, 2010, 05:24 PM
Thanks. It's very clear however it doesn't appear that there's anything to gain by disabling pinging.

bodhi.zazen
January 25th, 2010, 06:14 PM
Thanks. It's very clear however it doesn't appear that there's anything to gain by disabling pinging.

With modern cracking techniques , not much benefit at all.

dogdo
January 26th, 2010, 08:50 AM
With modern cracking techniques , not much benefit at all.

Elaborate-what techniques?

I have connect via wireless- i have the router set to not to respond to pings but the gufw firewall does respond to pings-do i have anything to gain from disabling gufw pinging?

CharlesA
January 26th, 2010, 02:43 PM
Google can probably give you the answer, as I am not sure we are allowed to talk about it here.

bodhi.zazen
January 26th, 2010, 04:47 PM
Elaborate-what techniques?

I have connect via wireless- i have the router set to not to respond to pings but the gufw firewall does respond to pings-do i have anything to gain from disabling gufw pinging?

This site is for Ubuntu support and we strongly discourage cracking on these forums, even as "proof of concept" discussions.

If you are interested, google will help you find various sites, white hat, grey hat, and black hat.

You could also look at DVL

http://www.damnvulnerablelinux.org/