Saturday, July 19, 2014

JS, Jquery How to get IPs from text or linux log and prepare them for iptables drop (block)

So guys i have struggled for a bit while trying to block a lot of IPs and manual labor sucks so i have made a crude js to quickly get IPs from logs and prepare them for drop


here is the html just save it under any html file start it, paste your log into the textarea and press the button :)

CODE IN PASTEBIN

http://pastebin.com/kMcjXpVv

and in google docs

https://docs.google.com/document/d/1Vp6tU__FOL69aGAnGpn1zmA-EmsPaiocUKVv_u1EHkk/edit?usp=sharing

1 comment:

Unknown said...

Hah it seams ther eis a bug for some type of logs will resolve it and will psot the updated code with a working link :)

Търсене