Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

iptables string match

Empfohlene Antworten

Veröffentlicht

Hello agin,

ich habe mich kürzlich in iptables eingearbeitet und einen patch eingespielt. Und zwar wollte ich gern den "String-Match" verwenden.

Nach zahlreichen Schwierigkeiten das gute C-Script zu kompilieren, ist er nun im Kernel drin (als Modul) und IPTables kann es verwenden.

ABER folgendes ist geschehen.

Ich habe eine Regel erstellt, die Pakete mit einem bestimmten String aus dem ICMP Protokoll von einem definierten Host droppen soll:

iptabels -I INPUT -p icmp -s 172.22.1.85 -m string --string "suselinux" -j DROP

(das ist jetzt nur ein Beispiel)

Sende ich von dem Host aus nun einen Ping, der genau diesen String enthält, schmiert der Rechner ab (die Firewall) und gibt nen Kernel-Panic aus.

"Unable to handle NULL Pointer" usw.

Und zwar ist das ipt_string Modul und die anderen zusätzlichen IPTables Module eingeladen und der Kernel PANIC tritt auf bei "ipt_do_table"

(so steht's im Call Trace vom Kernel PANIC).

ipt_do_table ist eine Funktion aus ip_tables.c

Nun weiß ich aber leider trotzdem nicht, wo der Fehler liegt, und wieso mir das Ding mit nem lauten Knall um die Ohren fliegt.

Also was kann da verkehrt sein, dass die Kiste plötzlich so gaar nix mehr sagt :rolleyes:

Man könnte das natürlich als "Feature" abtun: Ping of Death :cool: Aber die Lösung gefällt mir nicht so ganz

Gruß,

Florian

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.