Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-24-2006, 02:26 PM
|
#1
|
Member
Registered: Aug 2004
Location: Gainesville, FL
Distribution: Linux Mint 12, Win7, iOS
Posts: 208
Rep:
|
Block ICMP ping in Redhat 9
Hi,
I am setting up an HTTP server on Redhat 9. How do I set my system to block ICMP pings? I would like to be able to set this option as I have been a hacking victim a few times already and would like to add as much security as possible.
Thanks,
Derek
|
|
|
07-24-2006, 03:40 PM
|
#2
|
Member
Registered: Jan 2006
Distribution: Various versions of Red Hat Fedora Core and Ubuntu
Posts: 40
Rep:
|
iptables -A INPUT -p ICMP -j DROP
This is easily defeated with a syn scan with nmap. You still need to continue to read security bulletins. Most basic script kiddies will still find your system if they want to.
Last edited by cachemonet; 07-24-2006 at 03:41 PM.
|
|
|
07-24-2006, 03:54 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep:
|
It's true that disabling ping doesn't stop people finding your box. For all I know you have a good reason, so another way to do it is to edit /etc/sysctl.conf and add the following line, then re-read the settings with sysctl -p /etc/sysctl.conf
Code:
net.ipv4.icmp_echo_ignore_all = 1
|
|
|
07-24-2006, 04:40 PM
|
#4
|
Member
Registered: Aug 2004
Location: Gainesville, FL
Distribution: Linux Mint 12, Win7, iOS
Posts: 208
Original Poster
Rep:
|
Thanks very much!
-Derek
|
|
|
07-24-2006, 05:21 PM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
if you have your INPUT policy set to DROP (you should), then you wouldn't need to take any of these measures to block PINGs... if your box is exclusively an HTTP/HTTPS server, then really you only need to accept TCP packets to ports 80 and 443 - no ICMP at all...
|
|
|
All times are GMT -5. The time now is 12:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|