Results 1 to 2 of 2

Thread: block ip

  1. #1

    Default block ip


    I have series or ip address in a file one per line, if i run a shell script all ip should be denied. please help.

  2. #2
    Join Date
    Jul 2008

    Default Re: block ip


    Not sure to understand what exactly you are after.

    Do you want to write a script that reads every IP address from the data file and configure a rule in the ipfilter/iptables subsystem so that the kernel rejects/drop every packet having anyone of them as the origin IP address?

    Is that your concern?
    If yes, you will do better if you edit the /etc/sysconfig/SuSEfirewall2.

    You can do it by hand, or better yet, via Yast, module firewall.

    By the way, the right place for network kind of problems is
    Network/Internet forum.

    Hope this helps.


Posting Permissions

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