LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2004, 11:30 PM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
how to disable ping


hi

i know this has something to do wtih the router, but what i want to do is not allow people to ping my ip is that possible?

my router is a linksys wrtg54g

i looked through the whole router config menu but i cant find anything that says "disable ping"

thanks for the help
 
Old 08-24-2004, 12:00 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
On your linux boxes, you can disable ping by

iptables -A INPUT -p icmp -i <external interface> --icmp-type echo-request -j REJECT

OR

edit /etc/sysctl.conf and set the parameter
net.ipv4.icmp_echo_ignore_all = 1
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
disable ping romel Linux - Newbie 7 01-01-2005 11:22 AM
How to disable ping? sdat1333 Fedora 4 12-11-2004 10:23 AM
how to disable ping ? juanb Linux - Security 7 07-23-2003 12:07 PM
Disable ping on RedHat 9 DNS box lindab_tsp Linux - Security 4 07-21-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration