You are not logged in.

#1 2021-08-01 11:10:23

orbarq
Member
Registered: 2017-02-11
Posts: 13

iptables logging does not logs

Hello,

I try to log all UDP packets that are generated by my machine.
So I used:

   

sudo iptables -w -t nat -A OUTPUT -p udp -j LOG --log-level alert --log-prefix "MYPREFIX"

I then create a udp connection with

 nc -u 192.168.0.254 12345

and send data (I get a refused connection which makes sense since the remote port is closed).

Normally I should have a log right?
However, when I try

sudo journalctl -k | grep MYPREFIX 

or

sudo dmesg | grep MYPREFIX 

, I see nothing.

Did I miss something? The modules xt_LOG, nf_log_syslog and x_tables are well loaded.

Thank you

Offline

Board footer

Powered by FluxBB