Answer the question
In order to leave comments, you need to log in
Script to optimize and fix?
The scripts are located in the home directory
ipset.start
Script for creating a database where ip addresses will be written and also adding a rule to iptables
ipset -N addips iphash
sleep 10
iptables -I INPUT 6 -i eth1 -m set --match-set addips src -j ACCEPT
cat /home/host.su/address.txt | (
while read ip;
do
ipset -A addips $ip
done);
while true; do ./ipset-read-ip.start;
done;
iptables next
ipset.start next
install-while-ipset
, i.e. the second, third, fourth, etc., then ipset gets into the base ( addips ).
192.168.1.1
192.168.1.1
In general, I noticed that when ip is written once in the list "in a text file", then it is not included in the ipset sheet, when there are two identical ip in the list, then it is entered.
I think there is some kind of jamb with the cycle
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question