Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Bro,I think u didn't go through my question,I mentioned there what I had done,I used port 5813 for ICMP protocol there.
Be careful who you "bro" ;-p
I don't know how to break it to you nicely but it seems you don't understand ICMP. Please see http://www.faqs.org/rfcs/rfc792.html. Note that blocking all ICMP types breaks networking RFC compliance, makes troubleshooting harder and if blocking ICMP is done for achieving "stealth" it's just misperception. Instead allow some Types and rate-limit them and log and block others.
iptables -A INPUT -p icmp -m icmp --icmp-type echo-request -j DROP
or
Code:
echo 1>/proc/sys/net/ipv4/icmp_echo_ignore_all
repo, thanks a lot.Ur iptable helped me,but I want to know wheather any mistake in my iptables as I did.I taught to do like this for blocking different types of services with their ports.
As Sasha already told you,
Pings use the ICMP protocol and doesn't use ports like TCP or UDP.
Actually I know that,but in case of opertaion with ftp/ssh/pop/imap/squid protocols I use the same type of rules using tcp and udp with --dport <port-used-by-protocol> and all works fine .
I am newer to iptables and I do as I am guided .So not gone deep.
Anyway thanks a lot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.