@@ -1,14 +1,22 @@
1==========================
4==========================
2How to protect an instance
5How to protect an instance
3==========================
6==========================
8+.. sidebar:: further reading
5.. _filtron: https://github.com/asciimoo/filtron
12.. _filtron: https://github.com/asciimoo/filtron
7Searx depens on external search services. To avoid the abuse of these services
14Searx depens on external search services. To avoid the abuse of these services
8it is advised to limit the number of requests processed by searx.
15it is advised to limit the number of requests processed by searx.
10An application firewall, filtron_ solves exactly this problem. Filtron is just
17An application firewall, filtron_ solves exactly this problem. Filtron is just
11−a middleware between your web server (nginx, apache, ...) and searx.
18+a middleware between your web server (nginx, apache, ...) and searx, we describe
19+such infratructures in chapter: :ref:`architecture`.
14filtron & go
22filtron & go
@@ -17,32 +25,10 @@ filtron & go
17.. _Go: https://golang.org/
25.. _Go: https://golang.org/
18.. _filtron README: https://github.com/asciimoo/filtron/blob/master/README.md
26.. _filtron README: https://github.com/asciimoo/filtron/blob/master/README.md
21−.. sidebar:: init system
23− ATM the ``filtron.sh`` supports only systemd init process used by debian,
24− ubuntu and many other dists. If you have a working init.d file to start/stop
25− filtron service, please contribute.
27Filtron needs Go_ installed. If Go_ is preinstalled, filtron_ is simply
28Filtron needs Go_ installed. If Go_ is preinstalled, filtron_ is simply
28installed by ``go get`` package management (see `filtron README`_). If you use
29installed by ``go get`` package management (see `filtron README`_). If you use
29−filtron as middleware, a more isolated setup is recommended.
30+filtron as middleware, a more isolated setup is recommended. To simplify such
31−#. Create a separated user account (``filtron``).
32−#. Download and install Go_ binary in users $HOME (``~filtron``).
33−#. Install filtron with the package management of Go_ (``go get -v -u
34− github.com/asciimoo/filtron``)
35−#. Setup a proper rule configuration :origin:`[ref]
36− <utils/templates/etc/filtron/rules.json>` (``/etc/filtron/rules.json``).
37−#. Setup a systemd service unit :origin:`[ref]
38− <utils/templates/lib/systemd/system/filtron.service>`
39− (``/lib/systemd/system/filtron.service``).
41−To simplify such a installation and the maintenance of; use our script
31+an installation and the maintenance of, use our script :ref:`filtron.sh`.
44−.. program-output:: ../utils/filtron.sh --help
48Sample configuration of filtron
34Sample configuration of filtron