Forum Discussion
Vishal_96707
Nimbostratus
May 18, 2009Block ICMP for Virtual Server
How do I block ICMP request to a Virtual Server?
Thanks in advance.
The_Bhattman
Nimbostratus
May 18, 2009Here is an untested iRule way
when CLIENT_ACCEPTED {
if { [IP::protocol] == 1 } { reject }
}
There is also another way which I have done on Linux only, but it applies to all addresses
As superuser, add the following lines to /etc/sysctl.conf:
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
Then run the following command to cause it take effect immediately
sysctl -p
This change will persist through a reboot. But would need to be reset after an upgrade.
Hope this helps
CB
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects