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
de:doc:uci [2018/03/04 16:40] – ↷ Links adapted because of a move operation de:docs:guide-user:base-system:uci [2021/01/28 07:55] (current) – [Examples:] feckert
Line 24: Line 24:
 ^ IPv6 ^^ ^ IPv6 ^^
 | [[doc:uci:ahcpd|/etc/config/ahcpd]] | Ad-Hoc Configuration Protocol (AHCP) server and forwarder Konfiguration | | [[doc:uci:ahcpd|/etc/config/ahcpd]] | Ad-Hoc Configuration Protocol (AHCP) server and forwarder Konfiguration |
-| [[docs:guide-user:services:aiccu|/etc/config/aiccu]] | AICCU client Konfiguration |+| [[docs:guide-user:network:ipv6:aiccu|/etc/config/aiccu]] | AICCU client Konfiguration |
 | [[docs:guide-user:network:ipv6:dhcp6c|/etc/config/dhcp6c]] | WIDE-DHCPv6 client | | [[docs:guide-user:network:ipv6:dhcp6c|/etc/config/dhcp6c]] | WIDE-DHCPv6 client |
 | [[doc:uci:dhcp6s|/etc/config/dhcp6s]] | WIDE-DHCPv6 server | | [[doc:uci:dhcp6s|/etc/config/dhcp6s]] | WIDE-DHCPv6 server |
Line 41: Line 41:
 | [[docs:guide-user:services:ntp:client|/etc/config/ntpclient]] | Einstellungen für den ntpclient | | [[docs:guide-user:services:ntp:client|/etc/config/ntpclient]] | Einstellungen für den ntpclient |
 | [[docs:guide-user:services:nas:pure-ftpd|/etc/config/pure-ftpd]] | Pure-FTPd server config | | [[docs:guide-user:services:nas:pure-ftpd|/etc/config/pure-ftpd]] | Pure-FTPd server config |
-| [[docs:guide-user:network:traffic-shaping:qos-tomerge|/etc/config/qos]] | Einstellungen für das "Quality of Service" |+| [[docs:guide-user:network:traffic-shaping:qos|/etc/config/qos]] | Einstellungen für das "Quality of Service" |
 | [[docs:guide-user:services:nas:samba|/etc/config/samba]] | Konfiguration für das Microsoft'sche CIDR-Protokoll (Datei und Druckerfreigabe) | | [[docs:guide-user:services:nas:samba|/etc/config/samba]] | Konfiguration für das Microsoft'sche CIDR-Protokoll (Datei und Druckerfreigabe) |
 | [[docs:guide-user:services:snmp:snmpd|/etc/config/snmpd]] | Einstellungen für den SNMPd | | [[docs:guide-user:services:snmp:snmpd|/etc/config/snmpd]] | Einstellungen für den SNMPd |
Line 51: Line 51:
 | [[docs:guide-user:services:media_server:ushare|/etc/config/ushare]] | Einstellungen für ''uShare'' ein weiter UPnP-Server  | | [[docs:guide-user:services:media_server:ushare|/etc/config/ushare]] | Einstellungen für ''uShare'' ein weiter UPnP-Server  |
 | [[docs:guide-user:services:vblade|/etc/config/vblade]] | vblade userspace AOE target | | [[docs:guide-user:services:vblade|/etc/config/vblade]] | vblade userspace AOE target |
-| [[doc:uci:vnstat|/etc/config/vnstat]] | vnstat downloader Einstellungen | +| [[docs:guide-user:services:network_monitoring:vnstat|/etc/config/vnstat]] | vnstat downloader Einstellungen | 
-| [[docs:guide-user:network:wifi:wifitoggle-tomerge|/etc/config/wifitoogle]] | Script um den WLAN-Funk per Knopf ein- und auszuschlaten  |+| [[docs:guide-user:network:wifi:wifi_toggle|/etc/config/wifitoogle]] | Script um den WLAN-Funk per Knopf ein- und auszuschlaten  |
 | [[docs:guide-user:services:w_o_l:wol|/etc/config/wol]] | Einstellungen für (//wol//)-Paket (Wake on Lan) | | [[docs:guide-user:services:w_o_l:wol|/etc/config/wol]] | Einstellungen für (//wol//)-Paket (Wake on Lan) |
 | [[docs:guide-user:services:proxy:znc|/etc/config/znc]] | ZNC bouncer Konfiguration | | [[docs:guide-user:services:proxy:znc|/etc/config/znc]] | ZNC bouncer Konfiguration |
Line 179: Line 179:
 <code bash>. /lib/functions/network.sh; network_get_device if_wan wan; echo $if_wan</code> <code bash>. /lib/functions/network.sh; network_get_device if_wan wan; echo $if_wan</code>
  
-In r36817 verfügbar sind: <code>network_get_ipaddr network_get_ipaddr6 network_get_subnet network_get_subnet6 network_get_prefix6 network_get_gateway network_get_gateway6 network_get_dnsserver network_get_dnssearch +In r36817 verfügbar sind:  
-network_get_device network_get_physdev</code>+<code> 
 +network_get_ipaddr 
 +network_get_ipaddr6 
 +network_get_subnet 
 +network_get_subnet6 
 +network_get_prefix6 
 +network_get_gateway 
 +network_get_gateway6 
 +network_get_dnsserver 
 +network_get_dnssearch 
 +network_get_device 
 +network_get_physdev 
 +</code>
  
- +<code> 
- +root@OpenWrt:~# uci -P/var/state show network.wan
- +
- +
-''root@OpenWrt:~# **uci -P/var/state show network.wan**+
 network.wan=interface network.wan=interface
 network.wan.ifname=eth0.1 network.wan.ifname=eth0.1
Line 205: Line 214:
 network.wan.lease_lifetime=5400 network.wan.lease_lifetime=5400
 network.wan.lease_hostname=x-10-11-12-13 network.wan.lease_hostname=x-10-11-12-13
-root@OpenWrt:~#'' +root@OpenWrt:~# 
 +</code>
  
 === Add a firewall rule === === Add a firewall rule ===
Line 212: Line 221:
 This is a good example of both adding a firewall rule to forward the TCP SSH port, and of the negative (-1) syntax used with uci. This is a good example of both adding a firewall rule to forward the TCP SSH port, and of the negative (-1) syntax used with uci.
  
-''root@OpenWrt:~# uci add firewall rule+<code> 
 +root@OpenWrt:~# uci add firewall rule
 root@OpenWrt:~# uci set firewall.@rule[-1].src=wan root@OpenWrt:~# uci set firewall.@rule[-1].src=wan
 root@OpenWrt:~# uci set firewall.@rule[-1].target=ACCEPT root@OpenWrt:~# uci set firewall.@rule[-1].target=ACCEPT
Line 218: Line 228:
 root@OpenWrt:~# uci set firewall.@rule[-1].dest_port=22 root@OpenWrt:~# uci set firewall.@rule[-1].dest_port=22
 root@OpenWrt:~# uci commit firewall root@OpenWrt:~# uci commit firewall
-root@OpenWrt:~# /etc/init.d/firewall restart''  +root@OpenWrt:~# /etc/init.d/firewall restart 
 +</code>
  • Last modified: 2021/01/28 07:55
  • by feckert