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