Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
ed3e62d5
Commit
ed3e62d5
authored
Dec 05, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set more max element
parent
a117214b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
update_z-i.sh
router/update_z-i.sh
+6
-3
No files found.
router/update_z-i.sh
View file @
ed3e62d5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment