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

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

entry = ( "message" """ text """ { """ text """ }<br />

| "syslog"<br />

| "report"<br />

| "mail" [ """ mailaddress(es) """ ]<br />

| "spy"<br />

| "exec" """ command """<br />

| "relevel" value<br />

| "call" value<br />

| "if" ( variable | value ) ( "" | "!=" )<br />

( variable | value ) "then"<br />

{ entry ";" } "endif"<br />

| "let" variable ":="<br />

( value | "destport" | variable<br />

[ ( "+" | "-" ) ( value | variable ) ] )<br />

[ "timeout" seconds ]<br />

| dynamic_rule [ "timeout" seconds ]<br />

).<br />

variable = name [ ":" qualifier ].<br />

qualifier = ( "sourcehost" | "desthost" ).<br />

[ special keywords allowed in dynamic_rule:<br />

"currentprotocol" uses protocol of actual packet<br />

"sourcehost" uses source host address<br />

"sourcenet" uses source net address<br />

"desthost" uses destination host address<br />

"destnet" uses destination net address ]<br />

Hier nun einige Beispiele die zeigen, wie leistungsfähig diese Programmiersprache ist.<br />

Zuerst sollte man sorgfältig die Syntax studieren. In diesem Abschnitt wird ein praktisches,<br />

funktionierendes Beispiel einer Konfiguration beschrieben. Es ist als Konfigurationsfile in<br />

der Distribution unter samples/ zu finden.<br />

setup<br />

internalnets 193.194.195.0;<br />

mail_default "adm@x.y.z";<br />

rules<br />

# Some simple alarming rules to detect hackers<br />

block tcp to port 87, /* link */<br />

port 95 /* supdup */<br />

notification_level 99;<br />

block options loose_source_route, strict_source_route all<br />

notification_level 13;<br />

# ...omit some more RIP statements<br />

# detect secondary routes to the internet<br />

block rip from inside notification_level 12;<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!