Git Product home page Git Product logo

ipfilter's People

Contributors

fonic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ipfilter's Issues

Errors running ipfilter.sh on macOS

Hi, I'm getting the following errors, on macOS:

./ipfilter.sh: line 33: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
(..)/ipfilter/ipfilter.conf: line 20: level1: unbound variable

Add -f (--force) to gzip option

I cannot think of any reason why the --force flag would not be desired when using the gzip option. Since the file is being re-created each time, it just makes sense that the compressed file would also be re-created.

Without the --force flag, the script will not run without user input (it will ask permission each time.)

I can do a pull request if you like. I've made the change locally.

Errors running ipfilter.sh on FreeBSD

Same result as rcollie.

Versions

  • ipfilter.sh commit 497237d
  • FreeNAS 11.2-STABLE (based on FreeBSD)
  • Bash 4.4.19(0)-release

Output

--== IP Filter Updater & Generator ==--

Creating temporary folder...
mktemp: illegal option -- -
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
An error occured, aborting.

Originally posted by @SethWilliamson in #1 (comment)

On windows cp: cannot create regular file '//ipfilter.p2p': File exists

i have w10 1809 and use the portablegit to compile the list
The download is successful but there is a problem to get the final file

MINGW64 /
$ ./ipfilter.sh

--==[ IP Filter Updater & Generator ]==--

Creating temporary folder...
Downloading I-BlockList blocklists...
Downloading I-BlockList blocklist 'level2'...
Downloading I-BlockList blocklist 'level3'...
Downloading I-BlockList blocklist 'level1'...
Decompressing I-BlockList blocklists...
Decompressing I-BlockList blocklist 'level2'...
Decompressing I-BlockList blocklist 'level3'...
Decompressing I-BlockList blocklist 'level1'...
Merging I-BlockList blocklists...
Merging I-BlockList and GeoLite2 blocklists...
Installing final IP filter file...
cp: cannot create regular file '//ipfilter.p2p': File exists
An error occured, aborting.
Removing temporary folder...

I go to C:\Users\XXXX\AppData\Local\Temp\ and I see a folder Ipfilter.Randomstuff created, with all the lists appearing from iblocklist, then a file ipfilter.p2p appears, 17MB, then the whole folder is deleted when the error appears on the console.

In the conf file, i selected the DST path like this

# Path final output file shall be installed to (folder + file name)
# (NOTE: ${SCRIPT_DIR}: path to location of ipfilter script, ${SCRIPT_NAME}: filename of ipfilter script without extension)
# Format:  String
# Example: INSTALL_DST="/tmp/blocklist.p2p"
# Default: INSTALL_DST="${SCRIPT_DIR}/${SCRIPT_NAME}.p2p"
INSTALL_DST="D:\XXXXX\PortableGit\ipfilteriblocklist.p2p"

it fails also with the conf file being 100% original.

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.