Score:-2

How to see IPTABLES LOGS?

ma flag

i want to see some logs from an specific IPTABLES rules, i didnt set any path previously, so i think it may be the default path. The report below is the log im seeking. Iptables report

24601 avatar
in flag
version/distro of Ubuntu?
Score:0
gn flag

For the iptables listing shown, there were no logging rules and therefore there would not be any log entries. From the packet counter you can observe that 269 packets have taken the RETURN path from the SYN_FLOOD chain and 0 packets have been dropped. If you wanted to log packets that were going to be dropped, you would need to insert a LOG rule before the DROP rule.

Tekomo Nakama avatar
ma flag
so this should look like this? `-N SYN_FLOOD` && `-A SYN_FLOOD -m limit --limit 2/sec --limit-burst 6 -j RETURN` && `-A SYN_FLOOD -j LOG` && `-A SYN_FLOOD -j DROP`
Doug Smythies avatar
gn flag
Yes, but if it were me I would use a unique log prefix for each and every LOG rule so as to make it easier to parse the information out of the `/var/log/syslog` file. For example `sudo iptables -A SYN_FLOOD -j LOG --log-prefix "SYN_FLOOD_DROP:" --log-level info`
Tekomo Nakama avatar
ma flag
thanks im gonna try
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.