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