iptables v1.8.7 (nf_tables): unknown option "--to-ports"
Try `iptables -h' or 'iptables --help' for more information.
I searched a lot for this issue, but none of them worked for me (in fact there was not any solutions up to now).
I tried --to-port and -to-ports but I still get unknown option.
This is my iptables's version:
config redirect
option target 'DNAT'
option src '*'
option proto 'tcp'
option dest_port '1111'
option src_ip '192.168.1.1/24'
option name 'inna_redirect'
option dest '*'
But when I do fw4 reload to reload firewall, I get the following warning or error:
Section @redirect[0] (inna_redirect) must not have source '*' for dnat target
I changed firewall file to this:
config redirect
option target 'DNAT'
option src 'lan'
option proto 'tcp'
option dest_port '1111'
option src_ip '192.168.1.1/24'
option name 'inna_redirect'
option dest '*'
But after reloading I still get the following error:
/dev/stdin:149:47-50: Error: transport protocol mapping is only valid after transport protocol match
ip saddr 192.168.1.0/24 counter redirect to 1111 comment "!fw4: inna_redirect"
This version doesn't include iptables by default - you should provide all information
I know iptables does not come by default in openwrt, but I installed that: opkg install iptables.
What information do you need?
Correct, I told you it might not work. You would properly configure/edit your firewall rule. I'm unable to guess or assume what the rule's intended function could be, so I wouldn't know how to edit it.
Why?
EDIT: Perhaps also, you could explain the firewall rule's function/purpose so we'd be better able to help you.
(Perhaps a mod can close this duplicate thread now.)
(Since frolic told you exactly how to configure your devices to use the proxy at the router port 1111 - and I sent you links on how to set your mobile devices to use router port 1111, not sure what you mean since the proxy is on the router. I hope the best for your setup.)