template:howto_tpl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
template:howto_tpl [2015/05/19 11:17]
admin [UCI config files (native)]
template:howto_tpl [2018/05/24 09:05] (current)
Line 33: Line 33:
   * **Add something**   * **Add something**
 <​code>​ <​code>​
-...+uci add network rule                                          
 +uci set network.@rule[-1].interface=wan ​                      
 +uci set network.@rule[-1].target=84.141.4.210 ​                
 +uci set network.@rule[-1].netmask=255.255.255.255 ​            
 +uci set network.@rule[-1].gateway=172.27.0.1 ​                
 </​code> ​       ​ </​code> ​       ​
  
   * **Store changes**   * **Store changes**
 <​code>​ <​code>​
-uci commit ​xxx+uci commit ​network
 </​code>​ </​code>​
  
   * **Apply changes**   * **Apply changes**
 <​code>​ <​code>​
-/​etc/​init.d/​xxx restart+/​etc/​init.d/​network ​restart
 </​code>​ </​code>​
  
 ==== UCI config files (native) ==== ==== UCI config files (native) ====
  
-[[documentation:​configuration:​config_files:​config_file_network|/​etc/​config/​config_network]]+Routes are defined in [[documentation:​configuration:​config_files:​config_network|/​etc/​config/​network]]
  
    * **Add new rule-section**    * **Add new rule-section**
template/howto_tpl.1432034239.txt.gz · Last modified: 2018/05/24 09:05 (external edit)