Results 1 to 4 of 4

Thread: IPTables

Hybrid View

  1. #1

    IPTables

    Is it possible to write a rule that doesn't even allow your machine to be pinged by the outside world? So that the machine doesn't even appear to exist on the WWW?

  2. #2

    Re: IPTables

    Yeah just drop or deny all traffic on the input chain, this wont stop you getting anything, but if you use drop (iirc) then you can't be seen from the net.

    If you just want to stop people pinging you then you'll need to drop/deny icmp packets, but I've compleatly forgoten what port that is sorry. (This won't stop people finding youother ways, nmap for example)

    hth

  3. #3

    Re: IPTables

    if you only want to disable pinging you can do

    echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

  4. #4

    Re: IPTables

    This is my personal favorite:

    Code:
    iptables -A INPUT -p icmp --icmp-type 8 -m limit --limit 1/m -j ACCEPT
    iptables -A INPUT -p icmp --icmp-type 8 -j DROP
    iptables -A INPUT -p icmp -j ACCEPT
    The first rule only accepts a limited number of pings (1 per minute, with a burst of about 10 I believe (default)), the second rule drops all pings that exceed this, and then I accept all other types of ICMP traffic (which is important to have).

    This is good because it allows you to ping your own box remotely for diagnostic reasons, but prevents people from pingbombing you

Similar Threads

  1. iptables configuration for BIND
    By bkesting in forum Security
    Replies: 3
    Last Post: 01-27-2006, 01:21 PM
  2. LAN clients get connection denied by Apache
    By rhonneil in forum Linux - Hardware, Networking & Security
    Replies: 14
    Last Post: 11-12-2003, 10:28 AM
  3. Router not routing/masquerading. Why?
    By Anubis in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 03-21-2003, 11:05 PM
  4. Will masq work?
    By airhead in forum Linux - Hardware, Networking & Security
    Replies: 8
    Last Post: 09-17-2002, 08:50 PM
  5. iptables script...
    By Mor_gath in forum Programming
    Replies: 5
    Last Post: 12-24-2001, 03:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •