That's what i did and it worked to me:
### I configured a firewall filter to block echo requests. ####
firewall {
family inet {
filter Block-ping {
term block {
from {
icmp-type echo-request;
}
then {
discard;
}
}
term default {
then accept;
}
}
}
}
#### Then I applied the filter to the interface. ###
ge-0/0/3 {
unit 0 {
family inet {
filter {
input Block-ping;
}
address <my public ip address>/29;
}
}
}