Article 6QX5B IPSET

IPSET

by
maddy0
from LinuxQuestions.org on (#6QX5B)
Hello, according to the site
https://blog.ip2location.com/knowled...y-using-ipset/
i downloaded the file to my Desktop, than i unziped and renamed the file (firewall.txt) as blockcountry.sh.
Then i tried:
Code:sed -i '/^#/d' blockcountry.sh
sed -i 's/^/ipset add countryblocker /g' blockcountry.sh
sed -i '1i ipset create countryblocker nethash' blockcountry.shbut something went wrong :D

sed: can't read blockcountry.sh: No such file or directory
sed: can't read blockcountry.sh: No such file or directory
sed: can't read blockcountry.sh: No such file or directory
Did i have to move the file to another directory?
Attached Thumbnailsattachment.php?attachmentid=43665&stc=1&thumb=1&d=1726909229attachment.php?attachmentid=43666&stc=1&thumb=1&d=1726909488
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments