Trace target in OpenWrt 21.02

Hello,

I’m running OpenWrt 21.02-SNAPSHOT (on a Gl-iNet Flink 2) and am trying to set a trace rules in the raw PREROUTING and OUTPUT chains to see what happens with some traffic. The trace target wasn’t available out of the box so I installed iptables-mod-trace and after that I could add the a rule with trace as target in iptables.

But, I can’t see any log records being added. I think I’m supposed to use logreader to get the logs. But alas no traces show up there. Not sure if I need to to anything else to get it to work or if there’s something off with my rule.

Any input appreciated?

It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

Hello, yes I guess it’s custom firmware from the router provider.

Thanks!

you can always install the real thing, if you'd like, it's supported.

Thanks, I think I might do that. To get the latest version and to actually get things working the way I want.

I bought it primarily becuase it runs OpenWRT and handles the updates for me. Updating OpenWRT was always a chore I dreaded but maybe it’s time to bite the bullet and find a smooth way to do it.

that's kind of false advertising, it runs a vendor SDK, as most routers do ...

look into owut, it really simplifies things ...

2 Likes

Thanks, owut looks promising. Might be worth a new try.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.