Banner Grabbing verhindern: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „kk“)
 
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
kk
+
=Apache=
 +
==install modsecurity==
 +
*apt-get install libapache2-modsecurity
 +
==enable moduls==
 +
*a2enmod headers
 +
*a2enmod security2
 +
==modsecurity.conf kopieren==
 +
*cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
 +
==modsecurity.conf anfügen==
 +
SecRuleEngine on
 +
ServerTokens Full
 +
SecServerSignature "Microsoft-IIS/6.0"
 +
==apache neustarten==
 +
*service apache2 restart
 +
oder
 +
*systemctl restart apache2
 +
 
 +
=IIS=
 +
*https://technet.microsoft.com/en-us/library/dd450372%28v=ws.10%29.aspx?tduid=%282f57eccbcc1bd47803ae8b34d0325d76%29%28256380%29%282459594%29%28XdSn0e3h3.k-txgSlnbZwhVJnLly.nlLOw%29%28%29

Aktuelle Version vom 31. August 2016, 16:36 Uhr

Apache

install modsecurity

  • apt-get install libapache2-modsecurity

enable moduls

  • a2enmod headers
  • a2enmod security2

modsecurity.conf kopieren

  • cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf

modsecurity.conf anfügen

SecRuleEngine on
ServerTokens Full
SecServerSignature "Microsoft-IIS/6.0"

apache neustarten

  • service apache2 restart

oder

  • systemctl restart apache2

IIS