Iptables log

Is there a way to get the log of the iptables on the FX30s?

I’ve tried the “iptables -A INPUT -i usb0 -j LOG” but I’ve got a “iptables: No chain/target/match by that name”.

Somebody can help me?

Hi, please check this document: https://source.sierrawireless.com/resources/airlink/application_notes_and_code_samples/airlink_appnote_network_interfaces_and_firewall_rules/#sthash.HApzBpZA.dpbs
After adding rules by command, you need to save by iptables-save then restart iptables service.

Please help to tick “Solution” if it answers your question.

Thanks but nothing about logging in the appnote.


Hi, I was too quick. I double checked and FX30 yocto does not have module for iptables LOG. That’s why you can’t add rules for this target.

If mandatory, you may try to rebuild Yocto with CONFIG_IP_NF_TARGET_LOG?