LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-21-2003, 05:10 AM   #1
lindab_tsp
LQ Newbie
 
Registered: Mar 2002
Location: IRELAND
Posts: 11

Rep: Reputation: 0
Disable ping on RedHat 9 DNS box


How do you disable ping on RedHat 9 DNS box?

Thanks,
L.
 
Old 07-21-2003, 05:28 AM   #2
jarod
LQ Newbie
 
Registered: Jul 2003
Location: .ro
Posts: 10

Rep: Reputation: 0
If you don't want the box to respond to ping from others:
/bin/echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
/bin/echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
I hope i got this right

Last edited by jarod; 07-21-2003 at 05:52 AM.
 
Old 07-21-2003, 05:32 AM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
i just put this in iptables:

#Deny Pinging
iptables -INPUT -p icmp -j REJECT
 
Old 07-21-2003, 06:45 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
or in /etc/sysctl.conf

net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1

and do a sysctl -p
 
Old 07-21-2003, 08:14 AM   #5
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
Quote:
Originally posted by DrOzz
i just put this in iptables:

#Deny Pinging
iptables -INPUT -p icmp -j REJECT
a better (correct) line would be ...

Code:
itpables -A INPUT -p icmp --icmp-type echo-request -j DROP
 
  


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
How to disable ping? sdat1333 Fedora 4 12-11-2004 10:23 AM
XP Box won't connect to internet thru RH9 Box (firewall/dhcpd), it can only ping fire Rhapsodic Linux - Networking 4 07-10-2004 03:02 PM
Can ping box to box thru router - good sign? toastermaker Linux - Networking 15 12-07-2003 12:00 AM
how to disable ping ? juanb Linux - Security 7 07-23-2003 12:07 PM
RedHat 8.0 with DHCPCD: no DNS but can ping dominijannir Linux - Distributions 2 10-25-2002 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:15 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