OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • nginx plugin
« previous next »
  • Print
Pages: 1 ... 3 4 [5] 6

Author Topic: nginx plugin  (Read 8534 times)

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #60 on: November 11, 2018, 09:39:47 pm »
I've requested a build for logrotate: https://github.com/opnsense/tools/issues/104
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 9036
  • Karma: 619
    • View Profile
Re: nginx plugin
« Reply #61 on: November 12, 2018, 08:35:52 am »
Why not use https://www.freebsd.org/cgi/man.cgi?newsyslog


Cheers,
Franco
Logged

Oxima69

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
    • View Profile
Re: nginx plugin
« Reply #62 on: November 12, 2018, 12:43:46 pm »
Hi guys, hi @Fabian,
I am looking for a way to block or unblock IP´s /IP-ranges in the location block.

like
Code: [Select]
location / {
  # block one workstation
  deny    192.168.1.1;
  # allow anyone in 192.168.1.0/24
  allow   192.168.1.0/24;
  # drop rest of the world
  deny    all;
}

Is it already possible or is there another solution?

Best regards,
Andreas
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #63 on: November 12, 2018, 07:39:19 pm »
There is already a pull request open waiting for approval. This is for 1.4. How long you have to wait for the feature depends on how long my pull request is stuck in the review process and when it passes it, to the next OPNsense update.
Logged

Oxima69

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
    • View Profile
Re: nginx plugin
« Reply #64 on: November 13, 2018, 09:03:01 am »
@Fabian Great, thanks a lot. I have found it

https://github.com/opnsense/plugins/pull/930

Great work

regards
Andreas
Logged

juliocbc

  • Full Member
  • ***
  • Posts: 135
  • Karma: 8
    • View Profile
    • Cloudfence
Re: nginx plugin
« Reply #65 on: November 14, 2018, 05:10:22 am »
Quote from: fabian on November 11, 2018, 09:39:47 pm
I've requested a build for logrotate: https://github.com/opnsense/tools/issues/104

@Franco Your wish is our command.  ::)

https://github.com/opnsense/plugins/pull/982
Logged
Cloudfence Open Source Team

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #66 on: November 15, 2018, 05:50:31 pm »
merged
Logged

mrpsycho

  • Newbie
  • *
  • Posts: 24
  • Karma: 1
    • View Profile
Re: nginx plugin
« Reply #67 on: February 03, 2019, 05:59:46 pm »
how to delete all banned ip's by nginx?
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #68 on: February 03, 2019, 10:51:32 pm »
You can go to the banned page via the menu and unlock it again. Please note that it will unlock immediately and block again on the next violation. A button to delete all does not exist. You can script it if you want since it is fully API capable.

Is there any problem behind?
Logged

mrpsycho

  • Newbie
  • *
  • Posts: 24
  • Karma: 1
    • View Profile
Re: nginx plugin
« Reply #69 on: February 04, 2019, 08:33:29 pm »
yep (

it is hard to write this script... and i want to ban this "banning" system... just to turn it off
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #70 on: February 05, 2019, 06:59:11 am »
That's easy: Just don't use the firewall alias as it does not hook into the firewall automatically.
Logged

mrpsycho

  • Newbie
  • *
  • Posts: 24
  • Karma: 1
    • View Profile
Re: nginx plugin
« Reply #71 on: February 06, 2019, 05:44:16 pm »
ok, how to remove blocking rules?

i don't want to use it.
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #72 on: February 06, 2019, 11:07:09 pm »
If you mean the function in the plugin which blocks the request, there is a advanced checkbox "Disable Bot Protection"
Logged

visualstation

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: nginx plugin
« Reply #73 on: February 12, 2019, 11:23:24 am »
Should it be possible to add websocket support ?

The plugin is really cool, but a lot of application are using WebSocket.
Or could it be possible to add our own configuration ?
Logged
Soekris net6501-70, APU 2C4, Soekris net5501-70, ...

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2053
  • Karma: 155
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: nginx plugin
« Reply #74 on: February 12, 2019, 06:41:25 pm »
It's already there for a long time. It is a checkbox but I don't remember if I added it in the upstream or the location block.
Logged

  • Print
Pages: 1 ... 3 4 [5] 6
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • nginx plugin
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2019 All rights reserved
  • SMF 2.0.15 | SMF © 2017, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2