> hi,all
> I have a question about 'ping' work with netfilter.How can I
> ban the icmp echo message out and still can send icmp request message
> out and can recieve the icmp echo message at the same time.e.g.
> I wish I can ping other computer which don't ban icmp echo,but I
> also want my computer can't respond the 'ping' from others.I use
> iptables.can I?
> Thanks in Advance.
--
Regards
Luke
------
Q: What does FAQ stand for?
A: We are Frequently Asked this Question, and we have no idea.
------
PLEASE NOTE: Spamgard (tm) installed.
------
| iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT
| iptables -A block -m state --state NEW -j DROP
or something like that - which you should really have in the first place :)
~Tim
--
|http://spodzone.org.uk/
> > I have a question about 'ping' work with netfilter.How can I ban the
> > icmp echo message out and still can send icmp request message out and
can
> > recieve the icmp echo message at the same time.e.g. I wish I can ping
> > other computer which don't ban icmp echo,but I also want my computer
> > can't respond the 'ping' from others.I use iptables.can I?
> Works out of the box if you're using connection tracking. A pong is
RELATED
> to an outgoing ping request; OTOH an incoming ping is a NEW thing.
> | iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT
> | iptables -A block -m state --state NEW -j DROP
> or something like that - which you should really have in the first place
:)
> ~Tim
> --
> Gabrielle and Madelene were just dolls.
Quote:> |http://spodzone.org.uk/
>> hi,all
>> I have a question about 'ping' work with netfilter.How can I
>> ban the icmp echo message out and still can send icmp request message
>> out and can recieve the icmp echo message at the same time.e.g.
>> I wish I can ping other computer which don't ban icmp echo,but I
>> also want my computer can't respond the 'ping' from others.I use
>> iptables.can I?
>> Thanks in Advance.
or, with 2.2, you can simply run
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
--
1. Can't ping local host but can ping others
Hi,
System: FreeBSD 3.2 on Pentium platform.
It was working fine until today. Today I installed MySQL and Webmin and
configured NFS. All worked fine except I can't ping localhost (127.0.0.1).
/etc/hosts has the line says 127.0.0.1 localhost. Where should I look at?
Thanks,
Joseph
3. D-link DE220 can PING his own IP, but can't PING others'
5. Can ping linux itself, but can't ping others
7. Ping==nfs==good, telnet+others!=good
8. Where find Solaris 2.6 or 7 iso images?
9. when linux boots, others can't ping me
10. ping (and others) fail above a certain size
11. Gateway machine can't ping others on LAN
12. A pings B, B pings C, C cannot ping A
13. Canned "ping"