lavinir / npm-geoaccesslists Goto Github PK
View Code? Open in Web Editor NEWCountry IP Access list support to nginx proxy manager
License: MIT License
Country IP Access list support to nginx proxy manager
License: MIT License
I get this error when is adding the access list
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?
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.