Difference between revisions of "Iptables: deteksi via log"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (Created page with " iptables –A INPUT –j LOG iptables –A INPUT –j LOG –log-level 4 cat /var/log/kern.log") |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Deteksi serangan dengan cara mencatat (LOG) paket yang masuk. | ||
+ | iptables -A INPUT -j LOG | ||
+ | iptables -A INPUT -j LOG --log-level 4 | ||
− | + | Catatan tersebut bisa di baca di | |
− | |||
cat /var/log/kern.log | cat /var/log/kern.log | ||
+ | |||
+ | Atau | ||
+ | |||
+ | watch -n 3 tail /var/log/kern.log | ||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[IDS]] |
Latest revision as of 08:55, 3 August 2020
Deteksi serangan dengan cara mencatat (LOG) paket yang masuk.
iptables -A INPUT -j LOG iptables -A INPUT -j LOG --log-level 4
Catatan tersebut bisa di baca di
cat /var/log/kern.log
Atau
watch -n 3 tail /var/log/kern.log