Der IIS-Webserver lauscht auf beiden NICs – intern auf 192.168.100.10 (INTRANET)
und extern auf der INTERNET-IP. In dieser Übung wird der Zugriff auf das INTRANET
und die Sicherheit über die Windows-Firewall umgesetzt.
Install-WindowsFeature Web-Server -IncludeManagementTools
http://localhost
inetmgr)192.168.100.1080www.firma.localNew-WebBinding -Name "Default Web Site" -IPAddress "192.168.100.10" -Port 80 -HostHeader "www.firma.local"
C:\inetpub\wwwroot\index.html
<!DOCTYPE html>
<html>
<head>
<title>INTRANET</title>
</head>
<body>
<h1>Willkommen im Intranet</h1>
<p>Server läuft erfolgreich.</p>
</body>
</html>
New-NetFirewallRule -DisplayName "HTTP INTRANET erlaubt" `
-Direction Inbound -Protocol TCP -LocalPort 80 `
-RemoteAddress 192.168.100.0/24 -Action Allow
New-NetFirewallRule -DisplayName "HTTP extern blockieren" `
-Direction Inbound -Protocol TCP -LocalPort 80 `
-RemoteAddress Any -Action Block
| Zugriff | Ergebnis |
|---|---|
| http://www.firma.local (Client) | OK |
| http://192.168.100.10 (Client) | OK |
| http://localhost (Server) | OK |
| http://10.0.0.10 (extern) | BLOCKIERT |
Du hast einen IIS-Webserver installiert, gezielt an das INTRANET gebunden und den Zugriff über die Firewall abgesichert. Das Ergebnis ist ein sauber segmentierter Webdienst – intern erreichbar, extern unsichtbar. Genau so mag es die IT-Sicherheit. 🔐