Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. ip_filtering() { service_ip_list=("192.168.1.1" "192.168.1.2" "10.0.0.1" "10.0.0.2" "192.168.0.2" "192.168.0.1")
  2. grepcidr "$service_ip_list" <(echo "$1") >/dev/null &&
  3. echo "$1 is a Service IP" ||
  4. echo $1 >> live_ser_list && echo "$1 was written"
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement