Iptables v1.8.7 (nf_tables): unknown option "--to-ports"

With or without option dest '*', the rule will be created in the dstnat_lan chain, redirecting all tcp traffic originating from the lan to port 1111 on the router.

table inet fw4 {
        chain dstnat_lan {
                meta nfproto ipv4 tcp dport 0-65535 counter packets 0 bytes 0 redirect to :1111 comment "!fw4: inna_redirect"
        }
}

EDIT:

Sorry, I overlooked that

I meant this to be cleared

1 Like

(My bad, was still thinking iptables).

1 Like

you can opkg iptables-mod-nat-extra like this:

1 Like

Thanks so much, I fixed by install it.