We have a sudden failure of VoIP which is unable to connect. I can see UDP 5060 packets entering the router by the line :
add rule ip filter FORWARD udp dport 5060 log prefix "=======> FORWARD 5060"
But I didn't find the trick to log output, to be sure the packets are sent to the ADSL Box. The two following lines give a packet from time to time (around 1 over 100).
add rule ip filter OUTPUT udp dport 5060 log prefix "~~~~~~~> OUTPUT 5060"
add rule ip nat POSTROUTING udp dport 5060 log prefix "++++++> POSTROUTING 5060"
add rule ip nat OUTPUT udp dport 5060 log prefix " ******> OUTPUT 5060"
I have tested with tcp port 80 (Internet is working fine), and this gives teh same result, so this does not mean that the 5060 packets are lost, but only that the log is not well written.
I know that I could do that with wireshark or tcpdump, as indicated in this post : Analyse packets going out of my computer but it would be easier for me to have a continuous log inside nftables