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 Thumbnails
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 Thumbnails