View Single Post
  #1   (View Single Post)  
Old 27th October 2018
mateusrico mateusrico is offline
New User
 
Join Date: May 2008
Posts: 5
Default Help with script

Hello friends
I need help, I have three files with thousands of subnets, sometimes I need to unlock an ip that is connected to some or some subnets.
I need a script that typing the IP look for these three files showing the subnets attached to that IP, removing the subnet automatically remove the block for the IP. the method I use currently allows me to find in which file the subnet is, but finding the subnet is not so easy.
I use linux ubuntu and the files are in "ipset" format, the script can be in bash, perl, python, etc ...
Thanks for the help.
Reply With Quote