Results 1 to 3 of 3

Thread: Blocking IP

  1. #1
    Join Date
    Mar 2003
    Posts
    345

    Blocking IP

    I am using RedHat 9.0.

    How to block IP or networks from reaching my server using iptables ?

    Blocking means any access.

    Please help,

    Thanks.

  2. #2
    Join Date
    Mar 2004
    Location
    Vancouver Island, BC
    Posts
    173
    /sbin/iptables -A INPUT -s [ipaddress] -j DROP

    That will drop everything from the -s (source) address.
    Dynanet Network Services - 206-607-9075
    We Do Hosting - Established May 2001
    http://www.dynanet.ca/

  3. #3
    Join Date
    Jan 2002
    Location
    Home, chair
    Posts
    723
    /sbin/iptables -I INPUT 1 -s [ipaddress] -j DROP

    will put the rule first.

Posting Permissions

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