2017 © Pedro Peláez
 

library firewall

simple, configuration based firewall for laravel

image

overflowsith/firewall

simple, configuration based firewall for laravel

  • Monday, February 9, 2015
  • by overflowsith
  • Repository
  • 1 Watchers
  • 3 Stars
  • 95 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Installation

Add the package to your composer.json file and run composer update:, (*1)

{
    "require": {
        "overflowsith/firewall": "dev-master"
    }
}

Add Overflowsith\Firewall\FirewallServiceProvider to your app/config/app.php file, inside the providers array., (*2)

Publish the package's config with php artisan config:publish overflowsith/firewall, so you can easily modify it in: app/config/packages/overflowsith/firewall/config.php, (*3)

Usage

This firewall package can be use in the App::before filter, (*4)

App::before(function($request)
{
    if (Firewall::isNotAllowed($request->ip())) {
        return Firewall::renderAccessDenied();
    }
});

Configuration

Firewall status

  • disabled: every IP is allowed
  • permissive: only IP addresses that are not in the blacklist are allowed
  • enforcing: an IP must be in the whitelist and not in the blacklist

Whitelist and blacklist

You can set an array of IP addresses with or without wildcards, for example, (*5)

   '127.0.0.1',
   '192.168.*',

The Versions

09/02 2015

dev-master

9999999-dev

simple, configuration based firewall for laravel

  Sources   Download

The Requires

 

laravel firewall blacklist whitelist

09/02 2015

v0.1.1

0.1.1.0

simple, configuration based firewall for laravel

  Sources   Download

The Requires

 

laravel firewall blacklist whitelist

05/02 2015

v0.1.0

0.1.0.0

simple, configuration based firewall for laravel

  Sources   Download

The Requires

 

laravel firewall blacklist whitelist