LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-06-2003, 07:29 AM   #1
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Rep: Reputation: 15
icmp_echo_ignore_all override for 1 IP


I have using icmp_echo_ignore_all set to 1 and i would like to override it for a single IP address that should be allowed to get back ICMP echos. Is it possible to do it with iptables ?
 
Old 03-06-2003, 08:27 AM   #2
Kostko
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 57

Original Poster
Rep: Reputation: 15
Re: icmp_echo_ignore_all override for 1 IP

ok, i have done it first i have to set icmp_echo_ignore_all to 0. then i have added this to my firewall script:
Code:
$IPTABLES -N ICMP_STUFF
$IPTABLES -A INPUT -i $EXTIF -p icmp -j ICMP_STUFF
$IPTABLES -A ICMP_STUFF -p icmp --icmp-type echo-request -s XXX.XXX.XXX.XXX -j ACCEPT
$IPTABLES -A ICMP_STUFF -p icmp --icmp-type echo-request -j DROP
where XXX.XXX.XXX.XXX is the IP address that can send icmp echo requests
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
override defines alaios Programming 1 09-14-2005 10:40 AM
irq(num) used by override kpachopoulos Linux - Hardware 0 05-27-2005 02:51 PM
do profiles override each other? nightfox02 Linux - Newbie 3 08-21-2003 03:20 PM
how to override Yenta? twolf Linux - Newbie 0 05-20-2003 11:54 PM
How to override /etc/fstab? concoran Linux - General 3 10-04-2001 01:55 AM

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

All times are GMT -5. The time now is 10:25 AM.

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