Code Monkey home page Code Monkey logo

npm-geoaccesslists's People

Contributors

adriadam10 avatar lavinir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

adriadam10 shawti

npm-geoaccesslists's Issues

How can I implement this script?

Hi, how can I implement this script?

I have downloaded the file 'npm-geoaccesslists-0.1.zip', unzipped it and run from this directory:

python add-npm-geofilter.py --npm-host 192.168.x.x --npm-port 81 --npm-email [email protected] --npm-password Pxxxxxxp --npm-accesslist-name Test --allowed-countries ES

Error:
~/Temp/npm-geoaccesslists-0.1 $ python add-npm-geofilter.py --npm-host 192.168.x.x --npm-port 81 --npm-email [email protected] --npm-password Pxxxxxxp --npm-accesslist-name Test --allowed-countries ES

Traceback (most recent call last): File "/Temp/npm-geoaccesslists-0.1/add-npm-geofilter.py", line 4, in <module> import pandas as pd ModuleNotFoundError: No module named 'pandas'

Any indication?

ip_range_to_cidr converts all ranges to /1 CIDR

This problem was found while looking for a workaround for issue #1, as I just wanted to one-time copy the list to my npm config.

The function "ip_range_to_cidr" is transforming any IP range to a 1 bit subnet mask, which is ... kinda bad, for obvious reasons.

some examples:

CSV Input should be CIDR generated CIDR resulting range
2.16.12.0,2.16.13.255,CH 2.16.12.0/23 2.16.12.0/1 0.0.0.0-127.255.255.255
2.16.92.0,2.16.92.255,CH 2.16.92.0/24 2.16.92.0/1 0.0.0.0-127.255.255.255
217.193.203.8,217.193.203.239,CH 217.193.203.8/24(?) 217.193.203.8/1 128.0.0.0-255.255.255.255

Working on a fix atm.

Error adding access list. (500)

Hi there, thanks for this awesome script. Just trying to understand why i might be getting an error 500 while trying to create the access list. it looks like i have 1435 entries for NZ, but less than 490 (number changes every time i run the script) in the access list, and then the 500 error appears.

thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.