Disable ping responses

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
technocar2
Posts: 12
Joined: Fri Nov 12, 2010 10:29 pm

Disable ping responses

Post by technocar2 »

Is there a way to disable ping response if someone tries to ping me. I remember on d-link's firmware there was a setting that allowed you to enable/disable response to a ping requests from the WAN side. Is there a similar setting in gargoyle?

Edit:
Ya so I'm referring to WAN PING settings on d-link's firmware
You can look at the emulator here. Just found it.
http://support.dlink.ca/Emulators/dir65 ... twork.html

mix
Posts: 292
Joined: Sun Feb 27, 2011 11:18 am

Re: Disable ping responses

Post by mix »

You need to edit the ping rule in /etc/config/firewall

I think that the ability to enable/disable ping replies should be included in the web interface as well. I think changing port request replies from REJECT to DROP and hence creating what many refer to as a "stealth" firewall should also be configurable. Neither of these are currently in the web inteface, sorry.
WRT54GL v1.1
Gargoyle 1.4.7

technocar2
Posts: 12
Joined: Fri Nov 12, 2010 10:29 pm

Re: Disable ping responses

Post by technocar2 »

So you want me to edit firewall text file in backup.tar.gz or do you want me to ssh to the router and edit the file from there and what exactly do I need to change?

Piotr
Posts: 2
Joined: Tue Sep 06, 2011 5:36 am

Re: Disable ping responses

Post by Piotr »

Open /etc/config/firewall and find something like (or exact):

Code: Select all

config 'rule'                    
        option 'src' 'wan'       
        option 'proto' 'icmp'
        option 'icmp_type' 'echo-request'
        option 'family' 'ipv4' 
        option 'target' 'ACCEPT' 
and change ACCEPT to 'DROP'.

Then reboot router or run /etc/init.d/firewall restart

Post Reply