@FrancYescO sul primo comando gia' mi da'
uci add firewall.redirect
root@modemtim:/etc/config# uci add firewall.redirect
Usage: uci [<options>] <command> [<arguments>]
Commands:
batch
export [<config>]
import [<config>]
changes [<config>]
commit [<config>]
add <config> <section-type>
add_list <config>.<section>.<option>=<string>
del_list <config>.<section>.<option>=<string>
show [<config>[.<section>[.<option>]]]
get <config>.<section>[.<option>]
set <config>.<section>[.<option>]=<value>
delete <config>[.<section>[[.<option>][=<id>]]]
rename <config>.<section>[.<option>]=<name>
revert <config>[.<section>[.<option>]]
reorder <config>.<section>=<position>
Options:
-c <path> set the search path for config files (default: /etc/config)
-d <str> set the delimiter for list values in uci show
-f <file> use <file> as input instead of stdin
-m when importing, merge data into an existing package
-n name unnamed sections on export (default)
-N don't name unnamed sections
-p <path> add a search path for config change files
-P <path> add a search path for config change files and use as default
-q quiet mode (don't print error messages)
-s force strict mode (stop on parser errors, default)
-S disable strict mode
-X do not use extended syntax on 'show'
al posto di 8081 metto la porta interna , 4569 ??
uci set firewall.@redirect[-1].src_dport='8081'
al posto di 443 metto la porta esterna 4569 o una a piacere ??
uci set firewall.@redirect[-1].dest_port='443'
la destinazione 192.168.1.1 o 127.0.0.1 me la da quel ...
uci set firewall.@redirect[-1].dest='lan'
qui cambio da tcp a udp ?
uci set firewall.@redirect[-1].proto='tcp'
per farlo funzionare che comando do ?
devo riavviare il router o va in funzione da solo ?
Grazie.