Results 1 to 2 of 2

Thread: UFW can use text.txt file add to my black ip list ??

  1. #1
    Join Date
    Jun 2018
    Beans
    2

    UFW can use text.txt file add to my black ip list ??

    Hello ,

    I have many black list ip , but if i can only one by one to add the ip address i will add very long time.
    How about can easy to add my text file list ?

    Thank

  2. #2

    Re: UFW can use text.txt file add to my black ip list ??

    I don't think ufw can "read" a list of Ips.txt.

    How are you adding a single IP?
    Each line in file is single IP?

    Simple "for i" loop in terminal can do the job.

    something like
    Code:
    for i in `cat file`; do ufw deny from $i ; done
    Please have a gander at https://help.ubuntu.com/community/UFW and
    https://help.ubuntu.com/community/Ip...aving_iptables for reference.

    Good luck
    Windows assumes the user is an idiot.
    Linux demands proof.

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
  •