Linux

//Tag:Linux

SNMP (v3) Monitoring with Debian & Ubuntu

With Version 3 of the SNMP Protocol Security comes to SNMP which makes a lot of things smarter but also a bit more complicate to configure. That is why I would like to give a small introduction How-To setup SNMP v3 within this blog article for all Debian and Ubuntu Linux Environments. Installing SNMP (daemon and agent) First at all we need to installing SNMP (daemon and agent) packages on the server: apt-get install snmp snmpd After the successful installation we could start to define SNMPv3 users, authentication and encryption parameters. The following NEW security levels could be used with SNMPv3: noAuthNoPriv – No authorisation and no encryption authNoPriv – Authorisation is required but collected data sent over the network is not encrypted. authPriv – Authorisation required and everything sent over the network is encrypted. Let’s start with the configuration: Open the file /etc/snmp/snmpd.conf with an editor of your choice.  Be [...]

By | 2016-10-29T13:48:58+00:00 September 24th, 2016|Debian, Linux|Comments Off on SNMP (v3) Monitoring with Debian & Ubuntu

Finding spam sending PHP scripts on a linux server

Sometimes there are users on a server that may have installed old PHP scripts with known security gaps this can cause that this PHP scripts will spam senders. Finding these PHP scripts could be very difficult. With the release of of PHP 5.3 they have added new functionality to make it easier to handel the tracking of spammers or exploited web forms. The new functions are affected by settings in the server php.ini, you should have a more detailed look on the offical documentation (http://php.net/manual/en/mail.configuration.php). If we open the server php.ini file we should find the following 3 settings: mail.add_x_header (Add X-PHP-Originating-Script that will include UID of the script followed by the filename.) mail.log (The path to a log file that will log all mail() calls. Log entries include the full path of the script, line number, To address and headers.) mail.force_extra_parameters (Force the addition of the specified parameters to be passed as extra parameters [...]

By | 2016-10-29T13:50:15+00:00 May 24th, 2016|Allgemein, Debian, Linux|Comments Off on Finding spam sending PHP scripts on a linux server

Debian suPHP & Confixx

Im nachfolgendem HOWTO wird die Installation / Migration (von mod_php) von suPHP auf einem Debian Linux System mit bereits installiertem Confixx beschrieben. Bitte beachten Sie vor der Installation: suPHP wird von Confixx erst ab Version 3.2 unterstützt. Installiern von suPHP auf dem Debian System: apt-get install libapache2-mod-suphp suphp-common Konfiguration von suPHP: Jetzt muss die Datei /etc/suphp/suphp.conf angepasst werden. Einstellung logfile Wert /var/log/apache2/suphp.log Beschreibung - Einstellung allow_file_group_writeable allow_file_others_writeable allow_directory_group_writeable allow_directory_others_writeable Wert true Beschreibung - Einstellung errors_to_browser Wert false Beschreibung Wert: false wird Fehlercode 500 ausgeliefert Einstellung umask Wert 0022 Beschreibung Wenn dieser Wert auf 0077 (default) steht kann der Webserver Dateien die von PHP angelegt wurden nicht lesen Einstellung x-httpd-php Wert php:/srv/www/cgi-bin/php5 Beschreibung Hier muss der Pafd zum php-cgi Binary passen Falls mod_php noch im Apache 2 aktiviert ist dieses deaktivieren: a2dismod php5 Nun können wir suphp im Apache 2 einbinden: a2enmod suphp Confixx über die admin.pl auf [...]

By | 2016-10-22T11:39:41+00:00 April 9th, 2010|Debian, Linux|3 Comments