05.02.2013 Aufrufe

Firewall Handbuch für LINUX 2.0 und 2.2 - zurück

Firewall Handbuch für LINUX 2.0 und 2.2 - zurück

Firewall Handbuch für LINUX 2.0 und 2.2 - zurück

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

# ...omit some more statements having notification level 0<br />

# Permit incoming FTP requests to our FTP server only<br />

accept tcp to 130.59.4.16 port 21 notification_level 1;<br />

# Permit incoming Telnet requests to our Telnet/Login Server only<br />

accept tcp to 130.59.4.16 port 23 notification_level 2;<br />

accept all from 127.0.0.1 to 127.0.0.1 notification_level 0;<br />

# block all other TCP connection requests and trigger the alarm<br />

block tcp notification_level 99;<br />

notification level 1: /* log all permitted incoming FTP connection requests */<br />

message "FTP connection request.";<br />

level 2: /* log all permitted incoming Telnet connection requests */<br />

message "Telnet connection request.";<br />

level 3: /* log all permitted incoming WWW connection requests */<br />

message "WWW connection request.";<br />

level 11:<br />

message "ICMP redirect received.";<br />

level 12:<br />

message "There may be a secondary route to the internet.";<br />

level 13:<br />

message "IP packet with source route option detected";<br />

let sr:sourcehost := sr:sourcehost + 1 timeout 300;<br />

if sr:sourcehost = 1 then<br />

message "IP packet with source route option detected";<br />

spy;<br />

endif;<br />

level 99:<br />

message "Illegal TCP connection.";<br />

syslog;<br />

let illtcp:sourcehost := illtcp:sourcehost + 1 timeout 600;<br />

if illtcp:sourcehost = 1 then<br />

message "Illegal TCP connection.";<br />

mail;<br />

spy;<br />

endif;<br />

end.<br />

Diese Beispiele zeigen alle Möglichkeiten der Benutzung der Schlüsselwortes notification.<br />

Der Einsatz der Befehle ist einfach, z.B. exec /sbin/ifconfig eth0 down sorgt da<strong>für</strong>, daß<br />

die Netzwerkkarte deaktiviert wird.<br />

Im Gegensatz zu den nur zeitweise aktiven, dynamischen Regeln, die statische Regeln<br />

vorübergehend ersetzen, ist die Regel relevel permanent, also von Dauer.<br />

Erstellt von Doc Gonzo - http://kickme.to/plugins

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!