akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
941 stars 104 forks source link

How can I add a wildcard or range of addresses to the whitelist? #4

Closed codejockey68 closed 4 years ago

codejockey68 commented 5 years ago

Is there/needs to be a way to add a wildcard for a range of IP whitelist addresses such as:

1.2.3.* so that the entire 1.2.3 network can access the pages.

If there is already a way please point me to the docs. Thanks.

codejockey68 commented 5 years ago

Accepting a wildcard mask such as 1.2.3.0/24 may be a working alternative.

codejockey68 commented 5 years ago

To be clear, nothing of the above seems to work currently to specify a network range of addresses.

denisdulici commented 4 years ago

Such a feature is not available atm but any PR is welcome.

denisdulici commented 4 years ago

This has been added to 1.2.4 version.

alihastam commented 4 years ago

I tested it but unfortunately it did not work for me 127.0.*.*