Commit ed3e62d5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

set more max element

parent a117214b
......@@ -3,6 +3,7 @@
cd $(dirname "$(readlink "$0")") || exit #"
SETNAME=rkz
MAXELEM=300000
IFACE=breth0
if [ "$1" = "--show" ] ; then
......@@ -10,15 +11,17 @@ if [ "$1" = "--show" ] ; then
exit
fi
ipset -exist create $SETNAME hash:ip maxelem $MAXELEM
# something like clean
ipset destroy $SETNAME.tmp
ipset create $SETNAME hash:ip 2>/dev/null
ipset create $SETNAME.tmp hash:ip || exit
ipset create $SETNAME.tmp hash:ip maxelem $MAXELEM || exit
#ip rule show | grep "lookup openroute" | sed -e "s|.*:||g" | sed -e "s|lookup|table|g" | while read str ; do
#done
#ssh -q 192.168.1.217 -l xoxo| grep -v "Last login"| sed $'s/\r//' | while read ip ; do
./get_ips_z-i.sh | while read ip ; do
./get_ips_z-i.sh | sort -u | while read ip ; do
#cat z | while read ip ; do
#ip rule add to $ip table openroute
ipset add $SETNAME.tmp $ip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment