[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables: REJECT loggen



Hallo nochmal,

wo ist hier das Problem:

# iptables --append INPUT --source $IP -j LOG --log-prefix \\ "ips-ssh: "
iptables: No chain/target/match by that name

# iptables --append INPUT --source $IP -j REJECT


Ich blick leider bei iptables (noch) nicht so ganz durch - irgendwas essentielles fehlt mir wohl noch :-))

Danke!

Andreas

Wolf Wiegand schrieb:
Hallo,

Andreas Brandl wrote:

Oder bietet iptables eine Moeglichkeit, REJECTs zu loggen?

Das müsste eigentlich durch zweimaliges Aufführen der Regel, einmal mit
Ziel LOG und einmal REJECT, funktionieren:

$IPT -A icmp_packets --fragment -p ICMP -j LOG --log-prefix "ICMP Frag.: "
$IPT -A icmp_packets --fragment -p ICMP -j REJECT

hth, Wolf



Reply to: