How does openwrt route record the access log after port mapping?

if you want to record the log of access to the specified port, such as which IP has accessed this port. In our office environment, we need to log in to the account to access the Internet, so we use a router to access the Internet and port mapping to access the devices under the router (such as printers)

The port mapping of

openwrt can be accessed, but it cannot be logged. I thought about using the log function record of iptables, but failed. It seems that iptables is not running, which is probably the reason for the simplified version. I know that nginx software can implement tcp agents and log, but there doesn"t seem to be a compiled nginx under openwrt. I don"t know if there are any ready-made tools to achieve this function. Please give advice to all the great gods

Menu