PHPKnock – Web-Frontend für den Port-Knocking-Dienst fwknop

PHPKnock ist ein Web-Frontend für den Port-Knocking-Dienst fwknop. Es ermöglicht Ihnen, eine Single Packet Authorization (SPA) oder eine Port-Knocking-Anfrage an jeden von Ihnen konfigurierten Server zu schicken und diesen Server zu bitten, einen bestimmten Port für Sie oder eine beliebige IP-Adresse zu öffnen.
Wofür ist dieses Web-Frontend gut? Sie können damit jedes Betriebssystem und jede Plattform unterstützen, die über einen Browser verfügt. Sie können es z. B. auf einem Intranet-Server installieren, um andere Server in Ihrem Extranet oder im Internet zu öffnen. Ein weiterer Anwendungsfall wäre die Installation in Ihrem Extranet, damit Ihre Support-Mitarbeiter SPA- oder Port-Knocking-Anfragen von zu Hause oder von unterwegs senden können, ohne fwknop auf ihrem Rechner installieren zu müssen.
Wenn Sie mehr über Port Knocking oder Single Packet Authorization erfahren möchten, schauen Sie bei Wikipedia vorbei.
Voraussetzungen
- Webserver wie Apache, Nginx, IIS oder ähnliche
- PHP > 5.3.2 als SAPI, FastCGI oder CGI
- fwknop-Client 2.x
Installation
Laden Sie PHPKnock herunter oder klonen Sie es auf Ihren Webserver. Sie können PHPKnock in Ihr Document-Root legen, aus Sicherheitsgründen ist es jedoch KEINE gute Idee, das gesamte Knock-Verzeichnis in das Document-Root Ihres Webservers zu legen. Stattdessen sollten Sie es an einem anderen Ort ablegen und einen Alias auf den htdocs-Ordner von PHPKnock verwenden.
Beispiel für Ihre Apache-Konfiguration:
"Alias /phpknock /opt/phpknock/htdocs"Weitere Informationen finden Sie in der Dokumentation zu Apaches mod_alias.
Kopieren Sie die Konfigurationsvorlage und passen Sie die Konfiguration nach Bedarf an:
# cp phpknock/local_config.php.dist phpknock/local_config.php
# vi phpknock/local_config.phpMachen Sie das temporäre Verzeichnis für den Webserver-Benutzer beschreibbar:
# chown www-data:www-data phpknock/tmp
# chmod 770 phpknock/tmpNun sollten Sie PHPKnock über Ihren Webbrowser nutzen können. Geben Sie etwas ein wie
https://your-domain.com/path-to/phpknock/
Mitmachen
Nutzen Sie gerne das Git-Issue-Tracking, um Probleme oder Fehler zu melden. Wenn Sie sich aktiv an der Weiterentwicklung der Bibliothek beteiligen möchten, klonen Sie das Repository und senden Sie uns Pull Requests.
Aktuelle Version
0.1.0 Projektseite
Lizenz
Copyright © 2011 by TEQneers GmbH & Co. KG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.