template:howto_tpl

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Howto-Template ====== Just an empty template for new howto's. ===== Overview ===== ==== Use-case ==== If someone wants to add a new howto, this might safe some work. ==== Level of difficulty === Easy ==== Related topics ==== * [[documentation:configuration:uci|UCI]] * [[documentation:configuration:config_files:config_firewall|/etc/config/firewall]] ===== Instructions ===== ==== GUI ==== Not available, yet ==== UCI Config System ==== * **Add redirect to firewall** <code> uci add firewall rule uci set firewall.@rule[-1].name='some awsome game' uci set firewall.@rule[-1].src=wan uci set firewall.@rule[-1].proto=tcp uci set firewall.@rule[-1].src_dport=2222 uci set firewall.@rule[-1].dest_ip=192.168.1.100 uci set firewall.@rule[-1].target=DNAT uci set firewall.@rule[-1].dest=lan </code> * **Store changes** <code> uci commit firewall </code> * **Apply changes** <code> /etc/init.d/firewall restart </code> ==== UCI config files (native) ==== Redirects are defined in [[documentation:configuration:config_files:config_firewall|/etc/config/firewall]] * **New redirect** <code> config 'redirect' option 'name' 'some awesome game' option 'src' 'wan' option 'proto' 'tcp' option 'src_dport' '2222' option 'dest_ip' '192.168.1.100' option 'target' 'DNAT' option 'dest' 'lan' </code> ===== Troubleshooting ===== Not available, yet

template/howto_tpl.1431347681.txt.gz · Last modified: 2018/05/24 09:05 (external edit)