Merge commit 'origin/VLAN-GUI' into tomato-shibby
[tomato.git] / release / src / router / nvram / defaults.c
blob6aa0f2c6808ad6fe7888972ee54c51c1a4b94133
1 /*
3 Copyright 2003, CyberTAN Inc.
4 All Rights Reserved.
6 This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
7 the contents of this file may not be disclosed to third parties,
8 copied or duplicated in any form without the prior written
9 permission of CyberTAN Inc.
11 This software should be used as a reference only, and it not
12 intended for production use!
14 THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
15 KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. CYBERTAN
16 SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
17 FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
22 Copyright 2005, Broadcom Corporation
23 All Rights Reserved.
25 THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
26 KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
27 SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
28 FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
32 #include <string.h>
33 #include <bcmnvram.h>
35 #include <tomato_config.h> //!!TB
36 #include "tomato_profile.h"
37 #include "defaults.h"
39 //! = see restore_main()
41 const defaults_t defaults[] = {
42 { "restore_defaults", "0" }, // Set to 0 to not restore defaults on boot
44 // LAN H/W parameters
45 //! { "lan_ifname", "" }, // LAN interface name
46 //! { "lan_ifnames", "" }, // Enslaved LAN interfaces
47 { "lan_hwnames", "" }, // LAN driver names (e.g. et0)
48 { "lan_hwaddr", "" }, // LAN interface MAC address
50 // LAN TCP/IP parameters
51 { "lan_dhcp", "0" }, // DHCP client [static|dhcp]
52 { "lan_proto", "dhcp" }, // DHCP server [static|dhcp] //Barry add 2004 09 16
53 { "lan_ipaddr", "192.168.1.1" }, // LAN IP address
54 { "lan_netmask", "255.255.255.0" }, // LAN netmask
55 { "lan_wins", "" }, // x.x.x.x x.x.x.x ...
56 { "lan_domain", "" }, // LAN domain name
57 { "lan_lease", "86400" }, // LAN lease time in seconds
58 { "lan_stp", "0" }, // LAN spanning tree protocol
59 { "lan_route", "" }, // Static routes (ipaddr:netmask:gateway:metric:ifname ...)
61 { "lan_gateway", "0.0.0.0" }, // LAN Gateway
62 { "wl_wds_enable", "0" }, // WDS Enable (0|1)
64 { "lan1_ipaddr", "" },
65 { "lan1_netmask", "" },
66 { "lan1_stp", "0" },
67 { "lan2_ipaddr", "" },
68 { "lan2_netmask", "" },
69 { "lan2_stp", "0" },
70 { "lan3_ipaddr", "" },
71 { "lan3_netmask", "" },
72 { "lan3_stp", "0" },
74 // WAN H/W parameters
75 //! { "wan_ifname", "" }, // WAN interface name
76 //! { "wan_ifnames", "" }, // WAN interface names
77 { "wan_hwname", "" }, // WAN driver name (e.g. et1)
78 { "wan_hwaddr", "" }, // WAN interface MAC address
79 { "wan_ifnameX", NULL }, // real wan if; see wan.c:start_wan
81 // WAN TCP/IP parameters
82 { "wan_proto", "dhcp" }, // [static|dhcp|pppoe|disabled]
83 { "wan_ipaddr", "0.0.0.0" }, // WAN IP address
84 { "wan_netmask", "0.0.0.0" }, // WAN netmask
85 { "wan_gateway", "0.0.0.0" }, // WAN gateway
86 { "wan_gateway_get", "0.0.0.0" }, // default gateway for PPP
87 { "wan_dns", "" }, // x.x.x.x x.x.x.x ...
88 #ifdef TCONFIG_DNSCRYPT
89 { "dnscrypt_proxy", "" },
90 #endif
91 { "wan_wins", "" }, // x.x.x.x x.x.x.x ...
92 { "wan_lease", "86400" }, // WAN lease time in seconds
93 { "wan_islan", "0" },
94 { "modem_ipaddr", "0.0.0.0" }, // modem IP address (i.e. PPPoE bridged modem)
96 { "wan_primary", "1" }, // Primary wan connection
97 { "wan_unit", "0" }, // Last configured connection
98 /* --- obsolete ---
99 // Filters
100 { "filter_maclist", "" }, // xx:xx:xx:xx:xx:xx ...
101 { "filter_macmode", "deny" }, // "allow" only, "deny" only, or "disabled" (allow all)
102 { "filter_client0", "" }, // [lan_ipaddr0-lan_ipaddr1|*]:lan_port0-lan_port1,proto,enable,day_start-day_end,sec_start-sec_end,desc
104 { "filter", "on" }, // [on | off] Firewall Protection
106 // Port forwards
107 { "autofw_port0", "" }, // out_proto:out_port,in_proto:in_port0-in_port1>to_port0-to_port1,enable,desc
109 // DHCP server parameters
110 { "dhcp_start", "2" }, //
111 { "dhcp_num", "50" }, //
112 { "dhcpd_startip", "" }, // if empty, tomato will use dhcp_start/dchp_num for better compatibility
113 { "dhcpd_endip", "" }, // "
114 { "dhcp_lease", "1440" }, // LAN lease time in minutes
115 { "dhcp_domain", "wan" }, // Use WAN domain name first if available (wan|lan)
116 { "wan_get_dns", "" }, // DNS IP address which get by dhcpc // Add
117 { "wan_routes", "" },
118 { "wan_msroutes", "" },
120 { "dhcp1_start", "" },
121 { "dhcp1_num", "" },
122 { "dhcpd1_startip", "" },
123 { "dhcpd1_endip", "" },
124 { "dhcp1_lease", "1440" },
125 { "dhcp2_start", "" },
126 { "dhcp2_num", "" },
127 { "dhcpd2_startip", "" },
128 { "dhcpd2_endip", "" },
129 { "dhcp2_lease", "1440" },
130 { "dhcp3_start", "" },
131 { "dhcp3_num", "" },
132 { "dhcpd3_startip", "" },
133 { "dhcpd3_endip", "" },
134 { "dhcp3_lease", "1440" },
136 // 3G Modem
137 { "modem_pin", "" },
138 { "modem_dev", "ttyUSB0" },
139 { "modem_init", "*99#" },
140 { "modem_apn", "internet" },
142 // PPPoE parameters
143 { "pppoe_ifname", "" }, // PPPoE enslaved interface
144 { "ppp_username", "" }, // PPP username
145 { "ppp_passwd", "" }, // PPP password
146 { "ppp_idletime", "5" }, // Dial on demand max idle time (mins)
147 { "ppp_keepalive", "0" }, // Restore link automatically
148 { "ppp_demand", "0" }, // Dial on demand
149 { "ppp_redialperiod", "10" }, // Redial Period (seconds)*/
150 { "ppp_mru", "1500" }, // Negotiate MRU to this value
151 { "ppp_mtu", "1500" }, // Negotiate MTU to the smaller of this value or the peer MRU
152 { "ppp_service", "" }, // PPPoE service name
153 { "ppp_ac", "" }, // PPPoE access concentrator name
154 { "ppp_static", "0" }, // Enable / Disable Static IP
155 { "ppp_static_ip", "" }, // PPPoE Static IP
156 { "ppp_get_ac", "" }, // PPPoE Server ac name
157 { "ppp_get_srv", "" }, // PPPoE Server service name
158 { "ppp_custom", "" }, // PPPD additional options
159 { "ppp_mlppp", "0" }, // PPPoE single line MLPPP
161 { "pppoe_lei", "" },
162 { "pppoe_lef", "" },
164 #ifdef TCONFIG_IPV6
165 // IPv6 parameters
166 { "ipv6_service", "" }, // [''|native|native-pd|6to4|sit|other]
167 { "ipv6_prefix", "" }, // The global-scope IPv6 prefix to route/advertise
168 { "ipv6_prefix_length", "64" }, // The bit length of the prefix. Used by dhcp6c. For radvd, /64 is always assumed.
169 { "ipv6_rtr_addr", "" }, // defaults to $ipv6_prefix::1
170 { "ipv6_radvd", "1" }, // Enable Router Advertisement (radvd)
171 { "ipv6_accept_ra", "0" }, // Accept RA on WAN and/or LAN interfaces
172 { "ipv6_ifname", "six0" }, // The interface facing the rest of the IPv6 world
173 { "ipv6_tun_v4end", "0.0.0.0" }, // Foreign IPv4 endpoint of SIT tunnel
174 { "ipv6_relay", "1" }, // Foreign IPv4 endpoint host of SIT tunnel 192.88.99.?
175 { "ipv6_tun_addr", "" }, // IPv6 address to assign to local tunnel endpoint
176 { "ipv6_tun_addrlen", "64" }, // CIDR prefix length for tunnel's IPv6 address
177 { "ipv6_tun_mtu", "0" }, // Tunnel MTU, 0 for default
178 { "ipv6_tun_ttl", "255" }, // Tunnel TTL
179 { "ipv6_dns", "" }, // DNS server(s) IPs
180 { "ipv6_get_dns", "" }, // DNS IP address which get by dhcp6c
181 #endif
183 // Wireless parameters
184 { "wl_ifname", "" }, // Interface name
185 { "wl_hwaddr", "" }, // MAC address
186 { "wl_phytype", "b" }, // Current wireless band ("a" (5 GHz), "b" (2.4 GHz), or "g" (2.4 GHz)) // Modify
187 { "wl_corerev", "" }, // Current core revision
188 { "wl_phytypes", "" }, // List of supported wireless bands (e.g. "ga")
189 { "wl_radioids", "" }, // List of radio IDs
190 { "wl_ssid", "Tomato24" }, // Service set ID (network name)
191 { "wl1_ssid", "Tomato50" },
192 { "wl_country_code", "" }, // Country (default obtained from driver)
193 { "wl_radio", "1" }, // Enable (1) or disable (0) radio
194 { "wl1_radio", "1" }, // Enable (1) or disable (0) radio
195 { "wl_closed", "0" }, // Closed (hidden) network
196 { "wl_ap_isolate", "0" }, // AP isolate mode
197 { "wl_mode", "ap" }, // AP mode (ap|sta|wds)
198 { "wl_lazywds", "1" }, // Enable "lazy" WDS mode (0|1)
199 { "wl_wds", "" }, // xx:xx:xx:xx:xx:xx ...
200 { "wl_wds_timeout", "1" }, // WDS link detection interval defualt 1 sec*/
201 { "wl_wep", "disabled" }, // WEP data encryption (enabled|disabled)
202 { "wl_auth", "0" }, // Shared key authentication optional (0) or required (1)
203 { "wl_key", "1" }, // Current WEP key
204 { "wl_key1", "" }, // 5/13 char ASCII or 10/26 char hex
205 { "wl_key2", "" }, // 5/13 char ASCII or 10/26 char hex
206 { "wl_key3", "" }, // 5/13 char ASCII or 10/26 char hex
207 { "wl_key4", "" }, // 5/13 char ASCII or 10/26 char hex
208 { "wl_channel", "6" }, // Channel number
209 { "wl1_channel", "0" },
210 { "wl_rate", "0" }, // Rate (bps, 0 for auto)
211 { "wl_mrate", "0" }, // Mcast Rate (bps, 0 for auto)
212 { "wl_rateset", "default" }, // "default" or "all" or "12"
213 { "wl_frag", "2346" }, // Fragmentation threshold
214 { "wl_rts", "2347" }, // RTS threshold
215 { "wl_dtim", "1" }, // DTIM period (3.11.5)*/ // It is best value for WiFi test
216 { "wl_bcn", "100" }, // Beacon interval
217 { "wl_plcphdr", "long" }, // 802.11b PLCP preamble type
218 { "wl_net_mode", "mixed" }, // Wireless mode (mixed|g-only|b-only|disable)
219 { "wl_gmode", "1" }, // 54g mode
220 { "wl_gmode_protection","off" }, // 802.11g RTS/CTS protection (off|auto)
221 { "wl_afterburner", "off" }, // AfterBurner
222 { "wl_frameburst", "off" }, // BRCM Frambursting mode (off|on)
223 { "wl_wme", "auto" }, // WME mode (auto|off|on)
224 { "wl1_wme", "auto" }, // WME mode (auto|off|on)
225 { "wl_antdiv", "-1" }, // Antenna Diversity (-1|0|1|3)
226 { "wl_infra", "1" }, // Network Type (BSS/IBSS)
227 { "wl_btc_mode", "0" }, // !!TB - BT Coexistence Mode
228 { "wl_sta_retry_time", "5" }, // !!TB - Seconds between association attempts (0 to disable retries)
229 { "wl_mitigation", "3" }, // Interference Mitigation Mode (0|1|2|3)
231 { "wl_passphrase", "" }, // Passphrase // Add
232 { "wl_wep_bit", "128" }, // WEP encryption [64 | 128] // Add
233 { "wl_wep_buf", "" }, // save all settings for web // Add
234 { "wl_wep_gen", "" }, // save all settings for generate button // Add
235 { "wl_wep_last", "" }, // Save last wl_wep mode // Add
237 { "wl_vifs", "" }, // multiple/virtual BSSIDs
239 // WPA parameters
240 { "wl_security_mode", "disabled" }, // WPA mode (disabled|radius|wpa_personal|wpa_enterprise|wep|wpa2_personal|wpa2_enterprise) for WEB // Add
241 { "wl_auth_mode", "none" }, // Network authentication mode (radius|none)
242 { "wl_wpa_psk", "" }, // WPA pre-shared key
243 { "wl_wpa_gtk_rekey", "3600" }, // WPA GTK rekey interval // Modify
244 { "wl_radius_ipaddr", "" }, // RADIUS server IP address
245 { "wl_radius_key", "" }, // RADIUS shared secret
246 { "wl_radius_port", "1812" }, // RADIUS server UDP port
247 { "wl_crypto", "aes" }, // WPA data encryption
248 { "wl_net_reauth", "36000" }, // Network Re-auth/PMK caching duration
249 { "wl_akm", "" }, // WPA akm list
251 // WME parameters (cwmin cwmax aifsn txop_b txop_ag adm_control oldest_first)
252 // EDCA parameters for STA
253 { "wl_wme_sta_bk", "15 1023 7 0 0 off off" }, // WME STA AC_BK paramters
254 { "wl_wme_sta_be", "15 1023 3 0 0 off off" }, // WME STA AC_BE paramters
255 { "wl_wme_sta_vi", "7 15 2 6016 3008 off off" }, // WME STA AC_VI paramters
256 { "wl_wme_sta_vo", "3 7 2 3264 1504 off off" }, // WME STA AC_VO paramters
258 // EDCA parameters for AP
259 { "wl_wme_ap_bk", "15 1023 7 0 0 off off" }, // WME AP AC_BK paramters
260 { "wl_wme_ap_be", "15 63 3 0 0 off off" }, // WME AP AC_BE paramters
261 { "wl_wme_ap_vi", "7 15 1 6016 3008 off off" }, // WME AP AC_VI paramters
262 { "wl_wme_ap_vo", "3 7 1 3264 1504 off off" }, // WME AP AC_VO paramters
264 { "wl_wme_no_ack", "off" }, // WME No-Acknowledgmen mode
265 { "wl_wme_apsd", "on" }, // WME APSD mode
266 { "wl_wme_bss_disable", "0" }, // WME BSS disable advertising (off|on)
268 /* Per AC Tx parameters */
269 { "wl_wme_txp_be", "7 3 4 2 0" }, /* WME AC_BE Tx parameters */
270 { "wl_wme_txp_bk", "7 3 4 2 0" }, /* WME AC_BK Tx parameters */
271 { "wl_wme_txp_vi", "7 3 4 2 0" }, /* WME AC_VI Tx parameters */
272 { "wl_wme_txp_vo", "7 3 4 2 0" }, /* WME AC_VO Tx parameters */
274 { "wl_unit", "0" }, // Last configured interface
275 { "wl_mac_deny", "" }, // filter MAC // Add
277 { "wl_leddc", "0x640000" }, // !!TB - 100% duty cycle for LED on router (WLAN LED fix for some routers)
278 { "wl_bss_enabled", "1" }, // !!TB - If not present the new versions of wlconf may not bring up wlan
279 { "wl_reg_mode", "off" }, // !!TB - Regulatory: 802.11H(h)/802.11D(d)/off(off)
281 // !!TB: n-mode
282 { "wl_nmode", "-1" }, // N-mode
283 { "wl_nband", "2" }, // 2 - 2.4GHz, 1 - 5GHz, 0 - Auto
284 { "wl1_nband", "1" },
285 { "wl_nmcsidx", "-1" }, // MCS Index for N - rate
286 { "wl_nreqd", "0" }, // Require 802.11n support
287 { "wl_nbw", "40" }, // BW: 20 / 40 MHz
288 { "wl_nbw_cap", "1" }, // BW: def 20inB and 40inA
289 { "wl_mimo_preamble", "mm" }, // 802.11n Preamble: mm/gf/auto/gfbcm
290 { "wl_nctrlsb", "upper" }, // N-CTRL SB (none/lower/upper)
291 { "wl_nmode_protection", "off" }, // 802.11n RTS/CTS protection (off|auto)
292 { "wl_rxstreams", "0" }, // 802.11n Rx Streams, 0 is invalid, WLCONF will change it to a radio appropriate default
293 { "wl_txstreams", "0" }, // 802.11n Tx Streams 0, 0 is invalid, WLCONF will change it to a radio appropriate default
294 { "wl_dfs_preism", "60" }, // 802.11H pre network CAC time
295 { "wl_dfs_postism", "60" }, // 802.11H In Service Monitoring CAC time
296 { "wl_radarthrs", "1 0x6c0 0x6e0 0x6bc 0x6e0 0x6ac 0x6cc 0x6bc 0x6e0" }, // Radar thrs params format: version thresh0_20 thresh1_20 thresh0_40 thresh1_40
297 { "wl_bcn_rotate", "1" }, // Beacon rotation
298 { "wl_vlan_prio_mode", "off" }, // VLAN Priority support
299 { "wl_obss_coex", "0" }, // OBSS Coexistence (0|1): when enabled, channel width is forced to 20MHz
301 #ifdef TCONFIG_EMF
302 { "emf_entry", "" }, // Static MFDB entry (mgrp:if)
303 { "emf_uffp_entry", "" }, // Unreg frames forwarding ports
304 { "emf_rtport_entry", "" }, // IGMP frames forwarding ports
305 { "emf_enable", "0" }, // Disable EMF by default
306 #endif
307 #ifdef CONFIG_BCMWL5
308 // AMPDU
309 { "wl_ampdu", "auto" }, // Default AMPDU setting
310 { "wl_ampdu_rtylimit_tid", "5 5 5 5 5 5 5 5" }, // Default AMPDU retry limit per-tid setting
311 { "wl_ampdu_rr_rtylimit_tid", "2 2 2 2 2 2 2 2" }, // Default AMPDU regular rate retry limit per-tid setting
312 { "wl_amsdu", "auto" }, // Default AMSDU setting
313 // power save
314 { "wl_rxchain_pwrsave_enable", "1" }, // Rxchain powersave enable
315 { "wl_rxchain_pwrsave_quiet_time","1800" }, // Quiet time for power save
316 { "wl_rxchain_pwrsave_pps", "10" }, // Packets per second threshold for power save
317 { "wl_radio_pwrsave_enable", "0" }, // Radio powersave enable
318 { "wl_radio_pwrsave_quiet_time","1800" }, // Quiet time for power save
319 { "wl_radio_pwrsave_pps", "10" }, // Packets per second threshold for power save
320 { "wl_radio_pwrsave_on_time", "50" }, // Radio on time for power save
321 // misc
322 { "wl_wmf_bss_enable", "0" }, // Wireless Multicast Forwarding Enable/Disable
323 { "wl_rifs_advert", "auto" }, // RIFS mode advertisement
324 { "wl_stbc_tx", "auto" }, // Default STBC TX setting
325 { "wl_mcast_regen_bss_enable", "1" }, // MCAST REGEN Enable/Disable
326 #endif
328 { "pptp_server_ip", "" }, // as same as WAN gateway
329 { "ppp_get_ip", "" }, // IP Address assigned by PPTP/L2TP server
330 { "pptp_dhcp", "1" },
332 // for firewall
333 { "mtu_enable", "0" }, // WAN MTU [1|0]
334 { "wan_mtu", "1500" }, // Negotiate MTU to the smaller of this value or the peer MRU
336 { "l2tp_server_ip", "" }, // L2TP auth server (IP Address)
337 // hbobs { "hb_server_ip", "" }, // heartbeat auth server (IP Address)
338 // hbobs { "hb_server_domain", "" }, // heartbeat auth server (domain name)
340 // misc
341 { "wl_tnoise", "-99" },
342 { "led_override", "" },
343 { "btn_override", "" },
344 { "btn_reset", "" },
345 { "env_path", "" },
346 { "manual_boot_nv", "0" },
347 // { "wlx_hpamp", "" },
348 // { "wlx_hperx", "" }, // see init.c
349 { "t_fix1", "" },
351 // basic-ddns
352 { "ddnsx0", "" },
353 { "ddnsx1", "" },
354 { "ddnsx0_cache", "" },
355 { "ddnsx1_cache", "" },
356 { "ddnsx_save", "1" },
357 { "ddnsx_refresh", "28" },
359 // basic-ident
360 { "router_name", "TomatoUSB" },
361 { "wan_hostname", "unknown" },
362 { "wan_domain", "" },
364 // basic-time
365 { "tm_sel", "CET-1CEST,M3.5.0/2,M10.5.0/3" },
366 { "tm_tz", "CET-1CEST,M3.5.0/2,M10.5.0/3" },
367 { "tm_dst", "1", },
368 { "ntp_updates", "4" },
369 { "ntp_tdod", "0" },
370 { "ntp_server", "0.europe.pool.ntp.org 1.europe.pool.ntp.org 2.europe.pool.ntp.org" },
371 #ifdef TCONFIG_DNSCRYPT
372 { "ntp_server_ip", "209.114.111.1 184.105.192.247 205.233.73.201" }, // shibby - if dnscrypt-proxy is enabled we have to use ip addresses
373 #endif
374 { "ntp_kiss", "" },
375 { "ntp_kiss_ignore", "" },
377 // basic-static
378 { "dhcpd_static", "" },
379 { "dhcpd_static_only", "0" },
380 // basic-wfilter
381 { "wl_maclist", "" }, // xx:xx:xx:xx:xx:xx ...
382 { "wl_macmode", "disabled" },
383 { "macnames", "" },
385 // advanced-ctnf
386 { "ct_tcp_timeout", "" },
387 { "ct_udp_timeout", "" },
388 { "ct_timeout", "" },
389 { "ct_max", "" },
390 { "nf_ttl", "0" },
391 { "nf_l7in", "1" },
392 #ifdef LINUX26
393 { "nf_sip", "1" },
394 { "ct_hashsize", "2048" },
395 #endif
396 #ifdef LINUX26
397 { "nf_rtsp", "0" },
398 #else
399 { "nf_rtsp", "1" },
400 #endif
401 { "nf_pptp", "1" },
402 { "nf_h323", "1" },
403 { "nf_ftp", "1" },
405 // advanced-mac
406 { "mac_wan", "" },
407 { "wl_macaddr", "" },
409 // advanced-misc
410 { "boot_wait", "on" },
411 { "wait_time", "5" },
412 { "wan_speed", "4" }, // 0=10 Mb Full, 1=10 Mb Half, 2=100 Mb Full, 3=100 Mb Half, 4=Auto
413 { "jumbo_frame_enable", "0" }, // Jumbo Frames support (for RT-N16/WNR3500L)
414 { "jumbo_frame_size", "2000" },
415 #ifdef CONFIG_BCMWL5
416 { "ctf_disable", "1" },
417 #endif
419 // advanced-dhcpdns
420 { "dhcpd_dmdns", "1" },
421 { "dhcpd_slt", "0" },
422 { "dhcpd_gwmode", "" },
423 { "dhcpd_lmax", "" },
424 { "dns_addget", "0" },
425 { "dns_intcpt", "0" },
426 { "dhcpc_minpkt", "1" },
427 { "dhcpc_custom", "" },
428 { "dns_norebind", "1" },
429 { "dnsmasq_custom", "" },
430 { "dnsmasq_static_only", "0" },
431 // { "dnsmasq_norw", "0" },
433 // advanced-firewall
434 // { "block_loopback", "0" }, // nat loopback
435 { "nf_loopback", "0" },
436 { "block_wan", "1" }, // block inbound icmp
437 { "multicast_pass", "0" }, // enable multicast proxy
438 { "multicast_lan", "0" }, // on LAN (br0)
439 { "multicast_lan1", "0" }, // on LAN1 (br1)
440 { "multicast_lan2", "0" }, // on LAN2 (br2)
441 { "multicast_lan3", "0" }, // on LAN3 (br3)
442 { "udpxy_enable", "0" },
443 { "udpxy_stats", "0" },
444 { "udpxy_clients", "3" },
445 { "udpxy_port", "4022" },
446 { "ne_syncookies", "0" }, // tcp_syncookies
447 { "dhcp_pass", "1" }, // allow DHCP responses
448 { "ne_shlimit", "1,3,60" }, //shibby - enable limit connection attempts for sshd
450 // advanced-routing
451 { "routes_static", "" },
452 { "dhcp_routes", "1" },
453 { "wk_mode", "gateway" }, // Network mode [gateway|router]
454 #ifdef TCONFIG_ZEBRA
455 { "dr_setting", "0" }, // [ Disable | WAN | LAN | Both ]
456 { "dr_lan_tx", "0" }, // Dynamic-Routing LAN out
457 { "dr_lan_rx", "0" }, // Dynamic-Routing LAN in
458 { "dr_lan1_tx", "0" }, // Dynamic-Routing LAN out
459 { "dr_lan1_rx", "0" }, // Dynamic-Routing LAN in
460 { "dr_lan2_tx", "0" }, // Dynamic-Routing LAN out
461 { "dr_lan2_rx", "0" }, // Dynamic-Routing LAN in
462 { "dr_lan3_tx", "0" }, // Dynamic-Routing LAN out
463 { "dr_lan3_rx", "0" }, // Dynamic-Routing LAN in
464 { "dr_wan_tx", "0" }, // Dynamic-Routing WAN out
465 { "dr_wan_rx", "0" }, // Dynamic-Routing WAN in
466 #endif
468 // advanced-vlan
469 { "trunk_vlan_so", "0" }, // VLAN trunk support override
471 // advanced-wireless
472 { "wl_txant", "3" },
473 { "wl_txpwr", "42" },
474 { "wl_maxassoc", "128" }, // Max associations driver could support
475 { "wl_bss_maxassoc", "128" },
476 { "wl_distance", "" },
478 // forward-*
479 { "portforward", "0<3<1.1.1.0/24<1000:2000<<192.168.1.2<ex: 1000 to 2000, restricted>0<2<<1000,2000<<192.168.1.2<ex: 1000 and 2000>0<1<<1000<2000<192.168.1.2<ex: different internal port>0<3<<1000:2000,3000<<192.168.1.2<ex: 1000 to 2000, and 3000>" },
480 #ifdef TCONFIG_IPV6
481 { "ipv6_portforward", ""},
482 #endif
483 { "trigforward", "0<1<3000:4000<5000:6000<ex: open 5000-6000 if 3000-4000>" },
484 { "dmz_enable", "0" },
485 { "dmz_ipaddr", "0" },
486 { "dmz_sip", "" },
487 { "dmz_ifname", "br0" },
489 // forward-upnp
490 { "upnp_enable", "0" },
491 { "upnp_secure", "1" },
492 { "upnp_port", "0" },
493 { "upnp_ssdp_interval", "60" }, // SSDP interval
494 { "upnp_mnp", "0" },
496 { "upnp_clean", "1" }, /* 0:Disable 1:Enable */
497 { "upnp_clean_interval", "600" }, /* Cleaning interval in seconds */
498 { "upnp_clean_threshold", "20" }, /* Threshold for cleaning unused rules */
499 #if 0 // disabled for miniupnpd
500 { "upnp_max_age", "180" }, // Max age
501 { "upnp_config", "0" },
502 #endif
504 // qos
505 { "qos_enable", "0" },
506 { "qos_ack", "0" },
507 { "qos_syn", "1" },
508 { "qos_fin", "1" },
509 { "qos_rst", "1" },
510 { "qos_icmp", "0" },
511 { "qos_reset", "1" },
512 { "qos_obw", "230" },
513 { "qos_ibw", "1000" },
514 { "qos_orules", "0<<-1<d<53<0<<0:10<<0<DNS>0<<-1<d<37<0<<0:10<<0<Time>0<<-1<d<123<0<<0:10<<0<Network Time (NTP)>0<<-1<d<3455<0<<0:10<<0<RSVP>0<<-1<x<9<0<<<<0<SCTP, Discard>0<<-1<x<135,2101,2103,2105<0<<<<0<RPC (Microsoft)>0<<6<x<23,992<0<<<<0<Telnet>0<<-1<d<22<0<<<<3<SSH>0<<17<x<3544<0<<<<3<Teredo port>0<<6<s<80,8080<0<<<<3<Remote Router Access>0<<6<x<3389<0<<<<3<Remote Assistance>0<<-1<a<<0<flash<<<2<Flash Video, (Youtube)>0<<-1<a<<0<httpvideo<<<2<HTTP Video, (Youtube)>0<<-1<a<<0<shoutcast<<<2<Shoutcast>0<<-1<s<6970:7170,8554<0<<<<2<Quicktime/RealAudio>0<<-1<d<1220,7070<0<<<<2<Quicktime/RealAudio>0<<6<x<6005<0<<<<2<Camfrog>0<<-1<d<1220,1234,5100,6005,6970<0<<<<-1<VLC>0<<-1<x<554,5004,5005<0<<<<2<RTP/RTSP>0<<-1<x<1755<0<<<<2<MMS (Microsoft)>0<<-1<x<1935<0<<<<2<RTMP>0<<-1<d<3478,3479,5060:5063<0<<<<1<SIP, Sipgate Stun Services>0<<-1<d<1718:1720<0<<<<1<H323>0<<-1<a<<0<skypetoskype<<<1<Skype>0<<-1<a<<0<skypeout<<<1<Skypeout>0<<-1<d<80<0<<0:512<<4<HTTP>0<<-1<d<443<0<<0:512<<4<HTTPS>0<<6<d<8080<0<<0:512<<4<HTTP Proxy / Alternate>0<<-1<d<25,587,465<0<<<<5<SMTP, Submission>0<<-1<d<110,995<0<<<<5<POP3 Mail>0<<-1<d<119,563<0<<<<5<NNTP>0<<-1<d<143,220,585,993<0<<<<5<IMAP Mail>0<<-1<a<<0<irc<<<6<IRC>0<<-1<d<1493,1502,1503,1542,1863,1963,3389,5061,5190:5193,7001<0<<<<6<Windows Live>0<<-1<d<1071:1074,1455,1638,1644,5000:5010,5050,5100,5101,5150,8000:8002<0<<<<6<Yahoo Messenger>0<<-1<d<194,1720,1730:1732,5220:5223,5298,6660:6669,22555<0<<<<6<Other Chat Services>0<<6<d<20,21,989,990<0<<<<7<FTP>0<<-1<x<6571,6891:6901<0<<<<7<WLM File/Webcam>0<<6<d<80,443,8080<0<<512:<<7<HTTP,SSL File Transfers>0<<17<x<1:65535<0<<<<-1<P2P (uTP, UDP)" },
515 { "qos_burst0", "" },
516 { "qos_burst1", "" },
517 { "qos_default", "8" },
518 { "qos_orates", "5-20,5-20,5-25,5-70,20-100,5-80,5-80,5-80,5-50,0-0" },
519 { "qos_irates", "10,60,60,70,0,60,60,80,30,1" },
520 { "qos_classnames", "Service VOIP/Game Media Remote WWW Mail Messenger Download P2P/Bulk Crawl" },
522 { "ne_vegas", "0" }, // TCP Vegas
523 { "ne_valpha", "2" }, // "
524 { "ne_vbeta", "6" }, // "
525 { "ne_vgamma", "2" }, // "
527 // access restrictions
528 { "rruleN", "0" },
529 { "rrule0", "0|1320|300|31|||word text\n^begins-with.domain.\n.ends-with.net$\n^www.exact-domain.net$|0|example" },
530 //* { "rrule##", "" },
531 { "rrulewp", "80,8080" },
533 #if TOMATO_SL
534 // samba
535 { "smbd_on", "0" },
536 { "nmbd_on", "0" },
537 { "smbd_wgroup", "WORKGROUP" },
538 { "smbd_nbname", "TOMATO" },
539 { "smbd_adminpass", "admin" },
540 #endif
542 // admin-access
543 { "http_username", "" }, // Username
544 { "http_passwd", "admin" }, // Password
545 { "remote_management", "0" }, // Remote Management [1|0]
546 { "remote_mgt_https", "0" }, // Remote Management use https [1|0]
547 { "http_wanport", "8080" }, // WAN port to listen on
548 { "http_lanport", "80" }, // LAN port to listen on
549 { "https_lanport", "443" }, // LAN port to listen on
550 { "http_enable", "1" }, // HTTP server enable/disable
551 { "https_enable", "0" }, // HTTPS server enable/disable
552 { "https_crt_save", "0" },
553 { "https_crt_cn", "" },
554 { "https_crt_file", "" },
555 { "https_crt", "" },
556 { "web_wl_filter", "0" }, // Allow/Deny Wireless Access Web
557 { "web_css", "usbblue" },
558 { "web_svg", "1" },
559 { "telnetd_eas", "1" },
560 { "telnetd_port", "23" },
561 { "sshd_eas", "1" }, //shibby - enable sshd by default
562 { "sshd_pass", "1" },
563 { "sshd_port", "22" },
564 { "sshd_remote", "0" },
565 { "sshd_rport", "22" },
566 { "sshd_authkeys", "" },
567 { "sshd_hostkey", "" },
568 { "sshd_dsskey", "" },
569 { "sshd_forwarding", "1" },
570 { "rmgt_sip", "" }, // remote management: source ip address
572 { "http_id", "" },
573 { "web_mx", "status,bwm" },
574 { "web_pb", "" },
576 // admin-bwm
577 { "rstats_enable", "1" },
578 { "rstats_path", "" },
579 { "rstats_stime", "48" },
580 { "rstats_offset", "1" },
581 { "rstats_data", "" },
582 { "rstats_colors", "" },
583 { "rstats_exclude", "" },
584 { "rstats_sshut", "1" },
585 { "rstats_bak", "0" },
587 // admin-ipt
588 { "cstats_enable", "1" },
589 { "cstats_path", "" },
590 { "cstats_stime", "48" },
591 { "cstats_offset", "1" },
592 { "cstats_labels", "0" },
593 { "cstats_exclude", "" },
594 { "cstats_include", "" },
595 { "cstats_all", "1" },
596 { "cstats_sshut", "1" },
597 { "cstats_bak", "0" },
599 // advanced-buttons
600 { "sesx_led", "0" },
601 { "sesx_b0", "1" },
602 { "sesx_b1", "4" },
603 { "sesx_b2", "4" },
604 { "sesx_b3", "4" },
605 { "sesx_script",
606 "[ $1 -ge 20 ] && telnetd -p 233 -l /bin/sh\n"
608 { "script_brau",
609 "if [ ! -e /tmp/switch-start ]; then\n"
610 " # do something at startup\n"
611 " echo position at startup was $1 >/tmp/switch-start\n"
612 " exit\n"
613 "fi\n"
614 "if [ $1 = \"bridge\" ]; then\n"
615 " # do something\n"
616 " led bridge on\n"
617 "elif [ $1 = \"auto\" ]; then\n"
618 " # do something\n"
619 " led bridge off\n"
620 "fi\n"
623 // admin-log
624 { "log_remote", "0" },
625 { "log_remoteip", "" },
626 { "log_remoteport", "514" },
627 { "log_file", "1" },
628 { "log_file_custom", "0" },
629 { "log_file_path", "/var/log/messages" },
630 { "log_file_size", "50" },
631 { "log_file_keep", "1" },
632 { "log_limit", "60" },
633 { "log_in", "0" },
634 { "log_out", "0" },
635 { "log_mark", "60" },
636 { "log_events", "" },
638 // admin-log-webmonitor
639 { "log_wm", "0" },
640 { "log_wmtype", "0" },
641 { "log_wmip", "" },
642 { "log_wmdmax", "300" },
643 { "log_wmsmax", "300" },
645 // admin-debugging
646 { "debug_nocommit", "0" },
647 { "debug_cprintf", "0" },
648 { "debug_cprintf_file", "0" },
649 // { "debug_keepfiles", "0" },
650 { "console_loglevel", "1" },
651 { "t_cafree", "1" },
652 { "t_hidelr", "0" },
653 { "debug_clkfix", "1" },
654 { "debug_ddns", "0" },
656 // admin-cifs
657 { "cifs1", "" },
658 { "cifs2", "" },
660 // admin-jffs2
661 { "jffs2_on", "0" },
662 { "jffs2_exec", "" },
664 #ifdef TCONFIG_USB
665 // nas-usb - !!TB
666 { "usb_enable", "0" },
667 { "usb_uhci", "0" },
668 { "usb_ohci", "0" },
669 { "usb_usb2", "1" },
670 { "usb_irq_thresh", "0" },
671 { "usb_storage", "1" },
672 { "usb_printer", "1" },
673 { "usb_printer_bidirect", "0" },
674 { "usb_ext_opt", "" },
675 { "usb_fat_opt", "" },
676 { "usb_ntfs_opt", "" },
677 { "usb_fs_ext3", "1" },
678 { "usb_fs_fat", "1" },
679 #ifdef TCONFIG_NTFS
680 { "usb_fs_ntfs", "1" },
681 #endif
682 #ifdef TCONFIG_HFS
683 { "usb_fs_hfs", "0" }, //!Victek
684 #endif
685 { "usb_automount", "1" },
686 #if 0
687 { "usb_bdflush", "30 500 0 0 100 100 60 0 0" },
688 #endif
689 { "script_usbhotplug", "" },
690 { "script_usbmount", "" },
691 { "script_usbumount", "" },
692 { "idle_enable", "0" },
693 { "usb_3g", "1" },
694 #endif
696 #ifdef TCONFIG_FTP
697 // nas-ftp - !!TB
698 { "ftp_enable", "0" },
699 { "ftp_super", "0" },
700 { "ftp_anonymous", "0" },
701 { "ftp_dirlist", "0" },
702 { "ftp_port", "21" },
703 { "ftp_max", "0" },
704 { "ftp_ipmax", "0" },
705 { "ftp_staytimeout", "300" },
706 { "ftp_rate", "0" },
707 { "ftp_anonrate", "0" },
708 { "ftp_anonroot", "" },
709 { "ftp_pubroot", "" },
710 { "ftp_pvtroot", "" },
711 { "ftp_users", "" },
712 { "ftp_custom", "" },
713 { "ftp_sip", "" }, // wan ftp access: source ip address(es)
714 { "ftp_limit", "0,3,60" },
715 { "log_ftp", "0" },
716 #endif
718 #ifdef TCONFIG_SNMP
719 { "snmp_enable", "0" },
720 { "snmp_port", "161" },
721 { "snmp_remote", "0" },
722 { "snmp_remote_sip", "" },
723 { "snmp_location", "router" },
724 { "snmp_contact", "admin@tomato" },
725 { "snmp_ro", "rocommunity" },
726 #endif
728 #ifdef TCONFIG_SAMBASRV
729 // nas-samba - !!TB
730 { "smbd_enable", "0" },
731 { "smbd_wgroup", "WORKGROUP" },
732 { "smbd_master", "1" },
733 { "smbd_wins", "1" },
734 { "smbd_cpage", "" },
735 { "smbd_cset", "utf8" },
736 { "smbd_custom", "" },
737 { "smbd_autoshare", "2" },
738 { "smbd_shares",
739 "jffs</jffs<JFFS<1<0>root$</<Hidden Root<0<1"
741 { "smbd_user", "nas" },
742 { "smbd_passwd", "" },
743 #endif
745 #ifdef TCONFIG_MEDIA_SERVER
746 // nas-media
747 { "ms_enable", "0" }, /* 0:Disable 1:Enable 2:Enable&Rescan */
748 { "ms_dirs", "/mnt<" },
749 { "ms_port", "0" },
750 { "ms_dbdir", "" },
751 { "ms_tivo", "0" },
752 { "ms_stdlna", "0" },
753 { "ms_sas", "0" },
754 #endif
756 #ifdef TCONFIG_SDHC
757 // admin-sdhc
758 { "mmc_on", "0" },
759 { "mmc_cs", "7" },
760 { "mmc_clk", "3" },
761 { "mmc_din", "2" },
762 { "mmc_dout", "4" },
763 { "mmc_fs_partition", "1" },
764 { "mmc_fs_type", "ext2" },
765 { "mmc_exec_mount", "" },
766 { "mmc_exec_umount", "" },
767 #endif
769 // admin-sch
770 { "sch_rboot", "" },
771 { "sch_rcon", "" },
772 { "sch_c1", "" },
773 { "sch_c2", "" },
774 { "sch_c3", "" },
775 { "sch_c4", "" },
776 { "sch_c5", "" },
777 { "sch_c1_cmd", "" },
778 { "sch_c2_cmd", "" },
779 { "sch_c3_cmd", "" },
780 { "sch_c4_cmd", "" },
781 { "sch_c5_cmd", "" },
783 // admin-script
784 { "script_init", "" },
785 { "script_shut", "" },
786 { "script_fire", "" },
787 { "script_wanup", "" },
789 #ifdef TCONFIG_NFS
790 { "nfs_enable", "0" },
791 { "nfs_exports", "" },
792 #endif
794 //#ifdef TCONFIG_UPS
795 // { "ups_enable", "0" },
796 //#endif
798 #ifdef TCONFIG_OPENVPN
799 // vpn
800 { "vpn_debug", "0" },
801 { "vpn_server_eas", "" },
802 { "vpn_server_dns", "" },
803 { "vpn_server1_poll", "0" },
804 { "vpn_server1_if", "tun" },
805 { "vpn_server1_proto", "udp" },
806 { "vpn_server1_port", "1194" },
807 { "vpn_server1_firewall", "auto" },
808 { "vpn_server1_crypt", "tls" },
809 { "vpn_server1_comp", "adaptive" },
810 { "vpn_server1_cipher", "default" },
811 { "vpn_server1_dhcp", "1" },
812 { "vpn_server1_r1", "192.168.1.50" },
813 { "vpn_server1_r2", "192.168.1.55" },
814 { "vpn_server1_sn", "10.8.0.0" },
815 { "vpn_server1_nm", "255.255.255.0" },
816 { "vpn_server1_local", "10.8.0.1" },
817 { "vpn_server1_remote", "10.8.0.2" },
818 { "vpn_server1_reneg", "-1" },
819 { "vpn_server1_hmac", "-1" },
820 { "vpn_server1_plan", "1" },
821 { "vpn_server1_ccd", "0" },
822 { "vpn_server1_c2c", "0" },
823 { "vpn_server1_ccd_excl", "0" },
824 { "vpn_server1_ccd_val", "" },
825 { "vpn_server1_pdns", "0" },
826 { "vpn_server1_rgw", "0" },
827 { "vpn_server1_custom", "" },
828 { "vpn_server1_static", "" },
829 { "vpn_server1_ca", "" },
830 { "vpn_server1_crt", "" },
831 { "vpn_server1_key", "" },
832 { "vpn_server1_dh", "" },
833 { "vpn_server2_poll", "0" },
834 { "vpn_server2_if", "tun" },
835 { "vpn_server2_proto", "udp" },
836 { "vpn_server2_port", "1194" },
837 { "vpn_server2_firewall", "auto" },
838 { "vpn_server2_crypt", "tls" },
839 { "vpn_server2_comp", "adaptive" },
840 { "vpn_server2_cipher", "default" },
841 { "vpn_server2_dhcp", "1" },
842 { "vpn_server2_r1", "192.168.1.50" },
843 { "vpn_server2_r2", "192.168.1.55" },
844 { "vpn_server2_sn", "10.8.0.0" },
845 { "vpn_server2_nm", "255.255.255.0" },
846 { "vpn_server2_local", "10.8.0.1" },
847 { "vpn_server2_remote", "10.8.0.2" },
848 { "vpn_server2_reneg", "-1" },
849 { "vpn_server2_hmac", "-1" },
850 { "vpn_server2_plan", "1" },
851 { "vpn_server2_ccd", "0" },
852 { "vpn_server2_c2c", "0" },
853 { "vpn_server2_ccd_excl", "0" },
854 { "vpn_server2_ccd_val", "" },
855 { "vpn_server2_pdns", "0" },
856 { "vpn_server2_rgw", "0" },
857 { "vpn_server2_custom", "" },
858 { "vpn_server2_static", "" },
859 { "vpn_server2_ca", "" },
860 { "vpn_server2_crt", "" },
861 { "vpn_server2_key", "" },
862 { "vpn_server2_dh", "" },
863 { "vpn_client_eas", "" },
864 { "vpn_client1_poll", "0" },
865 { "vpn_client1_if", "tun" },
866 { "vpn_client1_bridge", "1" },
867 { "vpn_client1_nat", "1" },
868 { "vpn_client1_proto", "udp" },
869 { "vpn_client1_addr", "" },
870 { "vpn_client1_port", "1194" },
871 { "vpn_client1_retry", "30" },
872 { "vpn_client1_rg", "0" },
873 { "vpn_client1_firewall", "auto" },
874 { "vpn_client1_crypt", "tls" },
875 { "vpn_client1_comp", "adaptive" },
876 { "vpn_client1_cipher", "default" },
877 { "vpn_client1_local", "10.8.0.2" },
878 { "vpn_client1_remote", "10.8.0.1" },
879 { "vpn_client1_nm", "255.255.255.0" },
880 { "vpn_client1_reneg", "-1" },
881 { "vpn_client1_hmac", "-1" },
882 { "vpn_client1_adns", "0" },
883 { "vpn_client1_rgw", "0" },
884 { "vpn_client1_gw", "" },
885 { "vpn_client1_custom", "" },
886 { "vpn_client1_static", "" },
887 { "vpn_client1_ca", "" },
888 { "vpn_client1_crt", "" },
889 { "vpn_client1_key", "" },
890 { "vpn_client2_poll", "0" },
891 { "vpn_client2_if", "tun" },
892 { "vpn_client2_bridge", "1" },
893 { "vpn_client2_nat", "1" },
894 { "vpn_client2_proto", "udp" },
895 { "vpn_client2_addr", "" },
896 { "vpn_client2_port", "1194" },
897 { "vpn_client2_retry", "30" },
898 { "vpn_client2_rg", "0" },
899 { "vpn_client2_firewall", "auto" },
900 { "vpn_client2_crypt", "tls" },
901 { "vpn_client2_comp", "adaptive" },
902 { "vpn_client2_cipher", "default" },
903 { "vpn_client2_local", "10.8.0.2" },
904 { "vpn_client2_remote", "10.8.0.1" },
905 { "vpn_client2_nm", "255.255.255.0" },
906 { "vpn_client2_reneg", "-1" },
907 { "vpn_client2_hmac", "-1" },
908 { "vpn_client2_adns", "0" },
909 { "vpn_client2_rgw", "0" },
910 { "vpn_client2_gw", "" },
911 { "vpn_client2_custom", "" },
912 { "vpn_client2_static", "" },
913 { "vpn_client2_ca", "" },
914 { "vpn_client2_crt", "" },
915 { "vpn_client2_key", "" },
916 #endif // vpn
918 #ifdef TCONFIG_BT
919 // nas-transmission
920 { "bt_enable", "0" },
921 #ifdef TCONFIG_BBT
922 { "bt_binary", "internal" },
923 #else
924 { "bt_binary", "optware" },
925 #endif
926 { "bt_binary_custom", "/path/to/binaries/directory" },
927 { "bt_custom", "" },
928 { "bt_port", "51515" },
929 { "bt_dir", "/mnt" },
930 { "bt_incomplete", "1" },
931 { "bt_settings", "down_dir" },
932 { "bt_settings_custom", "/tmp/btclient" },
933 { "bt_rpc_enable", "1" },
934 { "bt_rpc_wan", "0" },
935 { "bt_auth", "1" },
936 { "bt_login", "admin" },
937 { "bt_password", "admin11" },
938 { "bt_port_gui", "9091" },
939 { "bt_dl_enable", "0" },
940 { "bt_ul_enable", "0" },
941 { "bt_dl", "248" },
942 { "bt_ul", "64" },
943 { "bt_peer_limit_global", "150" },
944 { "bt_peer_limit_per_torrent", "30" },
945 { "bt_ul_slot_per_torrent", "10" },
946 { "bt_ratio_enable", "0" },
947 { "bt_ratio", "1.0000" },
948 { "bt_ratio_idle_enable", "0" },
949 { "bt_ratio_idle", "30" },
950 { "bt_dht", "0" },
951 { "bt_pex", "0" },
952 { "bt_lpd", "0" },
953 { "bt_utp", "1" },
954 { "bt_blocklist", "0" },
955 { "bt_blocklist_url", "http://list.iblocklist.com/?list=bt_level1" },
956 { "bt_sleep", "10" },
957 { "bt_check", "1" },
958 { "bt_check_time", "15" },
959 { "bt_dl_queue_enable", "0" },
960 { "bt_dl_queue_size", "5" },
961 { "bt_ul_queue_enable", "0" },
962 { "bt_ul_queue_size", "5" },
963 { "bt_message", "2" },
964 #endif
966 #if 0
967 // safe to remove?
968 { "QoS", "0" },
970 { "ses_enable", "0" }, // enable ses
971 { "ses_event", "2" }, // initial ses event
972 { "ses_led_assertlvl", "0" }, // For SES II
973 { "ses_client_join", "0" }, // For SES II
974 { "ses_sw_btn_status", "DEFAULTS" }, // Barry Adds 20050309 for SW SES BTN
975 { "ses_count", "0" },
976 { "eou_configured", "0" },
978 { "port_priority_1", "0" }, // port 1 priority; 1:high, 0:low
979 { "port_flow_control_1", "1" }, // port 1 flow control; 1:enable, 0:disable
980 { "port_rate_limit_1", "0" }, // port 1 rate limit: 256k,512k,1M,2M,5M,10M,20M,50M
981 { "port_priority_2", "0" }, // port 2 priority; 1:high, 0:low
982 { "port_flow_control_2", "1" }, // port 2 flow control; 1:enable, 0:disable
983 { "port_rate_limit_2", "0" }, // port 2 rate limit: 256k,512k,1M,2M,5M,10M,20M,50M
984 { "port_priority_3", "0" }, // port 3 priority; 1:high, 0:low
985 { "port_flow_control_3", "1" }, // port 3 flow control; 1:enable, 0:disable
986 { "port_rate_limit_3", "0" }, // port 3 rate limit: 256k,512k,1M,2M,5M,10M,20M,50M
987 { "port_priority_4", "0" }, // port 4 priority; 1:high, 0:low
988 { "port_flow_control_4", "1" }, // port 4 flow control; 1:enable, 0:disable
989 { "port_rate_limit_4", "0" }, // port 4 rate limit: 256k,512k,1M,2M,5M,10M,20M,50M
991 //obs zzz { "http_method", "post" }, // HTTP method
993 // { "wl_macmode1", "disabled" },
995 /* obsolete
996 { "filter", "on" }, // Firewall Protection [on|off]
997 { "ipsec_pass", "1" }, // IPSec Pass Through [1|0]
998 { "pptp_pass", "1" }, // PPTP Pass Through [1|0]
999 { "l2tp_pass", "1" }, // L2TP Pass Through [1|0]
1000 { "block_cookie", "0" }, // Block Cookie [1|0]
1001 { "ident_pass", "0" }, // IDENT passthrough [1|0]
1002 { "block_proxy", "0" }, // Block Proxy [1|0]
1005 /* --- obsolete ---
1006 { "forward_port", "" }, // name:[on|off]:[tcp|udp|both]:wan_port>lan_ipaddr:lan_port0
1007 { "port_trigger", "" }, // name:[on|off]:[tcp|udp|both]:wan_port0-wan_port1>lan_port0-lan_port1
1009 // for mac clone
1010 { "mac_clone_enable", "0" }, // User define WAN interface MAC address
1011 { "def_hwaddr", "00:00:00:00:00:00" }, // User define WAN interface MAC address
1013 { "public_ip", "" }, // public ip
1016 //forced in rc.c { "os_name", "" }, // OS name string
1017 //forced in rc.c { "os_version", EPI_VERSION_STR }, // OS revision
1018 //forced in rc.c { "os_date", __DATE__ }, // OS date
1019 //not used { "ct_modules", "" }, // CyberTAN kernel modules
1020 //obs { "timer_interval", "3600" }, // Timer interval in seconds
1021 //obs { "ezc_enable", "1" }, // Enable EZConfig updates
1022 //obs { "ezc_version", EZC_VERSION_STR }, // EZConfig version
1023 //obs { "is_default", "1" }, // is it default setting: 1:yes 0:no*/
1024 //obs { "os_server", "" }, // URL for getting upgrades
1025 //obs { "stats_server", "" }, // URL for posting stats -- used by httpd/stats.c
1026 //obs { "router_disable", "0" }, // lan_proto=static lan_stp=0 wan_proto=disabled
1027 //obs { "fw_disable", "0" }, // Disable firewall (allow new connections from the WAN)
1028 //obs { "static_route", "" }, // Static routes (ipaddr:netmask:gateway:metric:ifname ...)
1029 //obs { "static_route_name", "" }, // Static routes name ($NAME:name)
1030 // { "filter_port", "" }, // [lan_ipaddr|*]:lan_port0-lan_port1
1031 //{ "dhcp_end", "150" }, // Last assignable DHCP address // Remove
1032 //zzz not used { "dhcp_wins", "wan" }, // Use WAN WINS first if available (wan|lan)
1033 //{ "eou_device_id", "" },
1034 //{ "eou_public_key", "" },
1035 //{ "eou_private_key", "" },
1036 //{ "eou_public", "b49b5ec6866f5b166cc058110b20551d4fe7a5c96a9b5f01a3929f40015e4248359732b7467bae4948d6bb62f96996a7122c6834311c1ea276b35d12c37895501c0f5bd215499cf443d580b999830ac620ac2bf3b7f912741f54fea17627d13a92f44d014030d5c8d3249df385f500ffc90311563e89aa290e7c6f06ef9a6ec311" },
1037 //{ "eou_private", "1fdf2ed7bd5ef1f4e603d34e4d41f0e70e19d1f65e1b6b1e6828eeed2d6afca354c0543e75d9973a1be9a898fed665e13f713f90bd5f50b3421fa7034fabde1ce63c44d01a5489765dc4dc3486521163bf6288db6c5e99c44bbb0ad7494fef20148ad862662dabcbff8dae7b466fad087d9f4754e9a6c84bc9adcbda7bc22e59" },
1038 { "eou_expired_hour", "72" }, //The expired time is 72 hours, and this value = 72 * 10*/
1039 // { "ntp_enable", "1" }, // replaced with ntp_updates
1040 // { "ntp_mode", "auto" }, // auto, manual
1043 // for AOL
1044 { "aol_block_traffic", "0" }, // 0:Disable 1:Enable for global
1045 { "aol_block_traffic1", "0" }, // 0:Disable 1:Enable for "ppp_username"
1046 { "aol_block_traffic2", "0" }, // 0:Disable 1:Enable for "Parental control"
1047 { "skip_amd_check", "0" }, // 0:Disable 1:Enable
1048 { "skip_intel_check", "0" }, // 0:Disable 1:Enable
1050 // advanced-watchdog
1051 { "wd_en", "" },
1052 { "wd_atp0", "" },
1053 { "wd_atp1", "" },
1054 { "wd_atp2", "" },
1055 { "wd_atp3", "" },
1056 { "wd_atp4", "" },
1057 { "wd_mxr", "3" },
1058 { "wd_rdy", "15" },
1059 { "wd_cki", "300" },
1060 { "wd_fdm", "" },
1061 { "wd_aof", "" },
1063 #endif // 0
1065 // new_qoslimit
1066 { "new_qoslimit_enable", "0" },
1067 { "new_qoslimit_obw", "" },
1068 { "new_qoslimit_ibw", "" },
1069 { "new_qoslimit_rules", "" },
1070 { "qosl_enable", "0" },
1071 { "qosl_tcp", "0" },//unlimited
1072 { "qosl_udp", "0" },//unlimited
1073 { "qosl_dlc", "" },
1074 { "qosl_ulc", "" },
1075 { "qosl_dlr", "" },
1076 { "qosl_ulr", "" },
1077 { "limit_br1_enable", "0" },
1078 { "limit_br1_dlc", "" },
1079 { "limit_br1_ulc", "" },
1080 { "limit_br1_dlr", "" },
1081 { "limit_br1_ulr", "" },
1082 { "limit_br1_prio", "2" },
1083 { "limit_br2_enable", "0" },
1084 { "limit_br2_dlc", "" },
1085 { "limit_br2_ulc", "" },
1086 { "limit_br2_dlr", "" },
1087 { "limit_br2_ulr", "" },
1088 { "limit_br2_prio", "2" },
1089 { "limit_br3_enable", "0" },
1090 { "limit_br3_dlc", "" },
1091 { "limit_br3_ulc", "" },
1092 { "limit_br3_dlr", "" },
1093 { "limit_br3_ulr", "" },
1094 { "limit_br3_prio", "2" },
1097 // NoCatSplash. !!Victek
1098 #ifdef TCONFIG_NOCAT
1099 { "NC_enable", "0" }, // enable NoCatSplash
1100 { "NC_Verbosity", "2" },
1101 { "NC_GatewayName", "Tomato Captive Portal" },
1102 { "NC_GatewayPort", "5280" },
1103 { "NC_GatewayMode", "Open" },
1104 { "NC_DocumentRoot", "/tmp/splashd" },
1105 { "NC_ExcludePorts", "1863" },
1106 { "NC_HomePage", "http://google.com" },
1107 { "NC_ForcedRedirect", "0" },
1108 { "NC_IdleTimeout", "0" },
1109 { "NC_MaxMissedARP", "5" },
1110 { "NC_PeerChecktimeout", "0" },
1111 { "NC_LoginTimeout", "3600" },
1112 { "NC_RenewTimeout", "0" },
1113 { "NC_AllowedWebHosts", "" },
1114 { "NC_BridgeLAN", "br0" },
1115 #endif
1116 { NULL, NULL }
1119 const defaults_t if_generic[] = {
1120 { "lan_ifname", "br0" },
1121 { "lan_ifnames", "eth0 eth2 eth3 eth4" },
1122 { "wan_ifname", "eth1" },
1123 { "wan_ifnames", "eth1" },
1124 { NULL, NULL }
1127 const defaults_t if_vlan[] = {
1128 { "lan_ifname", "br0" },
1129 { "lan_ifnames", "vlan0 eth1 eth2 eth3" },
1130 { "lan1_ifname", "" },
1131 { "lan1_ifnames", "" },
1132 { "lan2_ifname", "" },
1133 { "lan2_ifnames", "" },
1134 { "lan3_ifname", "" },
1135 { "lan3_ifnames", "" },
1136 { "wan_ifname", "vlan1" },
1137 { "wan_ifnames", "vlan1" },
1138 { NULL, NULL }