Files
padavan-4.4/trunk/user/shared/defaults.c
2022-06-25 16:00:12 +08:00

928 lines
26 KiB
C

/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#include <ralink_boards.h>
#include "nvram_linux.h"
#include "netutils.h"
#include "defaults.h"
#define STR1(x) #x
#define STR(x) STR1(x)
struct nvram_pair router_defaults[] = {
/* Restore defaults */
{ "restore_defaults", "0" }, /* Set to 0 to not restore defaults on boot */
{ "nvram_manual", "0" }, /* Manual commit mode: 1: manual, 0: auto */
#if defined (USE_NAND_FLASH)
{ "mtd_rwfs_mount", "0" }, /* Allow mount MTD RWFS partition on boot */
#endif
/* Miscellaneous parameters */
{ "time_zone", DEF_TIMEZONE },
{ "log_float_ui", "1" }, /* WebUI syslog float panel mode */
{ "log_ipaddr", "" }, /* syslog recipient IP */
{ "log_port", "514" }, /* syslog recipient Port */
{ "log_level", "0" }, /* Bitmask 0:off 1:denied 2:accepted */
{ "console_loglevel", "7" }, /* Kernel panics only */
{ "stats_server", "" }, /* URL for posting stats */
/* Big switches */
{ "fw_enable_x", "1" },
/* LAN H/W parameters */
{ "lan_hwaddr", "" }, /* LAN interface MAC address */
/* LAN TCP/IP parameters */
{ "lan_proto_x", "1" }, /* DHCP client [static|dhcp] in AP mode */
{ "lan_dhcpd_x", "0" }, /* DHCP server in AP mode */
{ "lan_ipaddr", DEF_LAN_ADDR }, /* LAN IP address */
{ "lan_netmask", DEF_LAN_MASK }, /* LAN netmask */
{ "lan_gateway", DEF_LAN_GW }, /* LAN gateway */
{ "lan_dns_x", "1" }, /* LAN DNS [static|dhcp] */
{ "lan_dns1", "DEF_LAN_DNS1" }, /* LAN DNS1 */
{ "lan_dns2", "DEF_LAN_DNS2" }, /* LAN DNS2 */
{ "lan_domain", "sh" }, /* LAN domain name */
{ "lan_stp", "1" }, /* LAN spanning tree protocol */
/* WAN H/W parameters */
{ "wan_ifname", IFNAME_WAN }, /* WAN interface name */
{ "wan_hwaddr", "" }, /* WAN interface MAC address */
/* WAN TCP/IP parameters */
{ "wan_proto", "dhcp" }, /* [static|dhcp|pppoe|pptp|l2tp|disabled] */
{ "wan_ipaddr", "0.0.0.0" }, /* WAN IP address */
{ "wan_netmask", "0.0.0.0" }, /* WAN netmask */
{ "wan_gateway", "0.0.0.0" }, /* WAN gateway */
{ "wan_dnsenable_x", "1" },
{ "wan_dns1_x", "" },
{ "wan_dns2_x", "" },
{ "wan_dns3_x", "" },
{ "wan_hostname", "" }, /* WAN hostname */
{ "wan_vci", "" }, /* WAN vendor class identifier (OPT-60) */
{ "wan_ttl_fix", "0" },
{ "wan_ttl_value", "0" },
{ "wan_hwaddr_x", "" },
{ "wan_nat_x", "1" },
{ "wan_mtu", "1500" },
{ "wan_auth_mode", "0" },
{ "wan_auth_user", "" },
{ "wan_auth_pass", "" },
{ "wan_auth_host", "10.0.0.1" },
{ "wan_route_x", "IP_Routed" },
{ "wan_src_phy", "0" },
{ "wan_stb_x", "0" },
{ "wan_stb_iso", "1" },
{ "vlan_filter", "0" },
{ "vlan_vid_cpu", "" },
{ "vlan_pri_cpu", "0" },
{ "vlan_vid_iptv", "" },
{ "vlan_pri_iptv", "0" },
{ "vlan_vid_lan1", "" },
{ "vlan_pri_lan1", "0" },
{ "vlan_tag_lan1", "0" },
{ "vlan_vid_lan2", "" },
{ "vlan_pri_lan2", "0" },
{ "vlan_tag_lan2", "0" },
{ "vlan_vid_lan3", "" },
{ "vlan_pri_lan3", "0" },
{ "vlan_tag_lan3", "0" },
{ "vlan_vid_lan4", "" },
{ "vlan_pri_lan4", "0" },
{ "vlan_tag_lan4", "0" },
{ "x_DHCPClient", "1" },
/* VLAN IPTV path */
{ "viptv_mode", "0" },
{ "viptv_ipaddr", "0.0.0.0" },
{ "viptv_netmask", "0.0.0.0" },
{ "viptv_gateway", "0.0.0.0" },
/* PPP VPN parameters */
{ "wan_pppoe_username", "kevin125" }, /* PPP username */
{ "wan_pppoe_passwd", "" }, /* PPP password */
{ "wan_pppoe_idletime", "0" }, /* PPP idle time */
{ "wan_pppoe_demand", "0" }, /* Dial on demand */
{ "wan_pppoe_txonly_x", "0" },
{ "wan_pppoe_service", "" }, /* PPPoE service name */
{ "wan_pppoe_ac", "" }, /* PPPoE access concentrator name */
{ "wan_pppoe_man", "1" }, /* PPPoE & MAN */
{ "wan_pppoe_mtu", "1492" }, /* Negotiate MTU to the smaller of this value or the peer MRU */
{ "wan_pppoe_mru", "1492" }, /* Negotiate MRU to this value */
{ "wan_pptp_mtu", "1400" }, /* Negotiate MTU to the smaller of this value or the peer MRU */
{ "wan_pptp_mru", "1400" }, /* Negotiate MRU to this value */
{ "wan_l2tp_mtu", "1460" }, /* Negotiate MTU to the smaller of this value or the peer MRU */
{ "wan_l2tp_mru", "1460" }, /* Negotiate MRU to this value */
#if defined (APP_RPL2TP)
{ "wan_l2tpd", "0" }, /* L2TP control daemon (xL2TPD/RP-L2TP) */
#endif
{ "wan_ppp_peer", "" }, /* VPN server address */
{ "wan_ppp_auth", "0" }, /* PPP authentication */
{ "wan_ppp_mppe", "0" }, /* MPPE encryption */
{ "wan_ppp_lcp", "1" },
{ "wan_ppp_alcp", "0" }, /* Adaptive LCP Echo */
{ "wan_ppp_pppd", "" }, /* Custom PPPD options */
/* Exposed station */
{ "dmz_ip", "" },
/* Web server parameters */
{ "http_username", SYS_USER_ROOT }, /* Username */
{ "http_passwd", DEF_ROOT_PASSWORD }, /* Password */
{ "http_access", "0" }, /* HTTP access (0: ALL, 1: LAN only, 2: LAN + Wireless MainAP) */
{ "http_proto", "0" }, /* HTTP proto (0: HTTP, 1: HTTPS, 2: Both) */
{ "http_lanport", "80" }, /* HTTP LAN port to listen on */
{ "https_lport", "443" }, /* HTTPS LAN port to listen on */
{ "https_clist", DEF_HTTPS_CIPH_LIST }, /* HTTPS SSL cipher list */
{ "fw_dos_x", "1" }, // oleg patch
{ "dr_enable_x", "1" }, // oleg patch
{ "mr_enable_x", "0" }, // oleg patch
{ "mr_qleave_x", "1" },
#if BOARD_HAS_5G_RADIO
/* 5G Wireless parameters */
{ "wl_country_code", DEF_WLAN_5G_CC }, /* Country Code (default obtained from driver) */
{ "wl_ssid", DEF_WLAN_5G_SSID }, /* Service set ID (network name) */
#if defined(BOARD_HAS_5G_11AX) && BOARD_HAS_5G_11AX
{ "wl_gmode", "5" }, /* A/N/AC/AX Mixed */
#elif BOARD_HAS_5G_11AC
{ "wl_gmode", "4" }, /* A/N/AC Mixed */
#else
{ "wl_gmode", "2" }, /* A/N Mixed */
#endif
{ "wl_mcs_mode", "0" },
{ "wl_channel", "0" }, /* Channel number */
{ "wl_bcn", "100" }, /* Beacon interval */
{ "wl_dtim", "1" }, /* DTIM period */
{ "wl_rts", "2347" }, /* RTS threshold */
{ "wl_frag", "2346" }, /* Fragmentation threshold */
{ "wl_ap_isolate", "0" }, /* AP isolate mode */
{ "wl_closed", "0" }, /* Closed (hidden) network */
{ "wl_macmode", "disabled" }, /* "allow" only, "deny" only, or "disabled"(allow all) */
{ "wl_maclist", "" }, /* xx:xx:xx:xx:xx:xx ... */
{ "wl_wme", "1" }, /* WME mode (off|on) */
{ "wl_wme_no_ack", "off" }, /* WME No-Acknowledgment mode */
{ "wl_auth_mode", "psk" }, /* Network authentication mode: WPAx Personal */
{ "wl_key", "1" }, /* Current WEP key */
{ "wl_key1", "" }, /* 5/13 char ASCII or 10/26 char hex */
{ "wl_key2", "" }, /* 5/13 char ASCII or 10/26 char hex */
{ "wl_key3", "" }, /* 5/13 char ASCII or 10/26 char hex */
{ "wl_key4", "" }, /* 5/13 char ASCII or 10/26 char hex */
{ "wl_key_type", "0" } , /* WEP key format (HEX/ASCII)*/
{ "wl_mrate", "2" }, /* Mcast Rate */
{ "wl_crypto", "aes" }, /* WPA data encryption */
{ "wl_wpa_psk", DEF_WLAN_5G_PSK }, /* WPA pre-shared key */
{ "wl_wpa_gtk_rekey", "3600" }, /* GTK rotation interval */
{ "wl_radius_ipaddr", ""}, /* RADIUS server IP address */
{ "wl_radius_port", "1812" }, /* RADIUS server UDP port */
{ "wl_radius_key", "" }, /* RADIUS shared secret */
{ "wl_radio_x", "0" }, /* Enable (1) or disable (0) radio */
{ "wl_IgmpSnEnable", "1" },
{ "wl_TxPower", "100" },
{ "wl_TxBurst", "1" },
{ "wl_PktAggregate", "1" },
{ "wl_APSDCapable", "0" },
{ "wl_HT_OpMode", "0" },
#if BOARD_HAS_5G_11AC
{ "wl_HT_BW", "2" },
#else
{ "wl_HT_BW", "1" },
#endif
{ "wl_txbf", "1" },
{ "wl_ssid2", DEF_WLAN_5G_SSID },
{ "wl_mode_x", "0" },
{ "wl_wdsapply_x", "0" },
{ "wl_wdsnum_x", "0" },
{ "wl_wep_x", "0" },
{ "wl_phrase_x", "" },
{ "wl_radio_date_x", "1111111" },
{ "wl_radio_time_x", "00002359" },
{ "wl_radio_time2_x", "00002359" },
{ "wl_macnum_x", "0" },
{ "wl_wdslist_x", "" },
{ "wl_maclist_x", "" },
{ "wl_wpa_mode", "2" },
{ "wl_stream_tx", STR(BOARD_NUM_ANT_5G_TX) },
{ "wl_stream_rx", STR(BOARD_NUM_ANT_5G_RX) },
{ "wl_preamble", "1" },
{ "wl_greenap", "0" },
{ "wl_ldpc", "2" },
{ "wl_HT_RDG", "0" },
#if defined (USE_WID_5G) && (USE_WID_5G==7615 || USE_WID_5G==7915)
{ "wl_HT_AMSDU", "1" },
{ "wl_HT_BAWinSize", "256" },
{ "wl_mumimo", "0" },
#else
{ "wl_HT_AMSDU", "0" },
{ "wl_HT_BAWinSize", "64" },
#endif
{ "wl_HT_MpduDensity", "5" },
{ "wl_HT_AutoBA", "1" },
{ "wl_VgaClamp", "0" },
{ "wl_KickStaRssiLow", "0" },
{ "wl_AssocReqRssiThres", "0" },
// guest AP 5Ghz
{ "wl_guest_enable", "0" },
{ "wl_guest_date_x", "1111111" },
{ "wl_guest_time_x", "00002359" },
{ "wl_guest_time2_x", "00002359" },
{ "wl_guest_ssid", DEF_WLAN_5G_GSSID },
{ "wl_guest_closed", "0" },
{ "wl_guest_ap_isolate", "1" },
{ "wl_guest_lan_isolate", "1" },
{ "wl_guest_auth_mode", "open" },
{ "wl_guest_wpa_mode", "2" },
{ "wl_guest_crypto", "aes" },
{ "wl_guest_wpa_psk", "" },
{ "wl_guest_macrule", "0" },
{ "wl_guest_mcs_mode", "0" },
// ApCli 5Ghz
{ "wl_sta_ssid", "" },
{ "wl_sta_auth_mode", "open" },
{ "wl_sta_wpa_mode", "2" },
{ "wl_sta_crypto", "aes" },
{ "wl_sta_wpa_psk", "" },
{ "wl_sta_wisp", "0" },
{ "wl_sta_auto", "0" },
#endif
#if BOARD_HAS_2G_RADIO
/* 2G Wireless parameters */
{ "rt_country_code", DEF_WLAN_2G_CC },
{ "rt_ssid", DEF_WLAN_2G_SSID },
#if defined(BOARD_HAS_2G_11AX) && BOARD_HAS_2G_11AX
{ "rt_gmode", "6" }, /* b/g/n/ax mixed */
#else
{ "rt_gmode", "5" }, /* g/n mixed */
#endif
{ "rt_mcs_mode", "0" },
{ "rt_channel", "0" },
{ "rt_bcn", "100" },
{ "rt_dtim", "1" },
{ "rt_gmode_protection", "auto" },
{ "rt_rts", "2347" },
{ "rt_frag", "2346" },
{ "rt_ap_isolate", "0" },
{ "rt_closed", "0" },
{ "rt_macmode", "disabled" },
{ "rt_mrate", "2" },
{ "rt_mode", "ap" },
{ "rt_HT_BW", "1" },
{ "rt_HT_EXTCHA", "1" },
{ "rt_HT_OpMode", "0" },
{ "rt_wme", "1" },
{ "rt_wme_no_ack", "off" },
{ "rt_IgmpSnEnable", "1" },
{ "rt_TxPower", "100" },
{ "rt_TxBurst", "1" },
{ "rt_PktAggregate", "1" },
{ "rt_APSDCapable", "0" },
{ "rt_auth_mode", "psk" },
{ "rt_crypto", "aes" },
{ "rt_wpa_psk", DEF_WLAN_2G_PSK },
{ "rt_wpa_gtk_rekey", "3600" },
{ "rt_key", "1" },
{ "rt_key_type", "0" } ,
{ "rt_key1", "" },
{ "rt_key2", "" },
{ "rt_key3", "" },
{ "rt_key4", "" },
{ "rt_radius_ipaddr", "" },
{ "rt_radius_port", "1812" },
{ "rt_radius_key", "" },
{ "rt_radio_x", "0" },
{ "rt_ssid2", DEF_WLAN_2G_SSID },
{ "rt_mode_x", "0" },
{ "rt_wdsapply_x", "0" },
{ "rt_wdsnum_x", "0" },
{ "rt_wep_x", "0" },
{ "rt_phrase_x", "" },
{ "rt_radio_date_x", "1111111" },
{ "rt_radio_time_x", "00002359" },
{ "rt_radio_time2_x", "00002359" },
{ "rt_macnum_x", "0" },
{ "rt_wdslist_x", "" },
{ "rt_maclist_x", "" },
{ "rt_wpa_mode", "2" },
{ "rt_stream_tx", STR(BOARD_NUM_ANT_2G_TX) },
{ "rt_stream_rx", STR(BOARD_NUM_ANT_2G_RX) },
{ "rt_preamble", "1" },
{ "rt_greenap", "0" },
{ "rt_HT_RDG", "0" },
{ "rt_HT_AMSDU", "0" },
{ "rt_HT_MpduDensity", "5" },
#if defined (USE_WID_2G) && (USE_WID_2G==7615 || USE_WID_2G==7915)
{ "rt_HT_BAWinSize", "256" },
{ "rt_ldpc", "1" },
{ "rt_turbo_qam", "1" },
#else
{ "rt_HT_BAWinSize", "64" },
{ "rt_ldpc", "0" },
#endif
{ "rt_HT_AutoBA", "1" },
{ "rt_VgaClamp", "0" },
{ "rt_KickStaRssiLow", "0" },
{ "rt_AssocReqRssiThres", "0" },
// guest AP 2.4Ghz
{ "rt_guest_enable", "0" },
{ "rt_guest_date_x", "1111111" },
{ "rt_guest_time_x", "00002359" },
{ "rt_guest_time2_x", "00002359" },
{ "rt_guest_ssid", DEF_WLAN_2G_GSSID },
{ "rt_guest_closed", "0" },
{ "rt_guest_ap_isolate", "1" },
{ "rt_guest_lan_isolate", "1" },
{ "rt_guest_auth_mode", "open" },
{ "rt_guest_wpa_mode", "2" },
{ "rt_guest_crypto", "aes" },
{ "rt_guest_wpa_psk", "" },
{ "rt_guest_macrule", "0" },
{ "rt_guest_mcs_mode", "0" },
// ApCli 2.4Ghz
{ "rt_sta_ssid", "" },
{ "rt_sta_auth_mode", "open" },
{ "rt_sta_wpa_mode", "2" },
{ "rt_sta_crypto", "aes" },
{ "rt_sta_wpa_psk", "" },
{ "rt_sta_wisp", "0" },
{ "rt_sta_auto", "0" },
#endif
// USB related
{ "acc_num", "0" },
{ "enable_ftp", "0" },
{ "enable_samba", "0" },
{ "st_samba_fp", "0" },
{ "st_samba_mode", "1" },
{ "st_samba_lmb", "1" },
{ "st_samba_workgroup", DEF_SMB_WORKGROUP },
{ "st_ftp_mode", "1" },
{ "st_ftp_log", "0" },
{ "st_ftp_pmin", "50000" },
{ "st_ftp_pmax", "50100" },
{ "st_ftp_anmr", "0" },
{ "st_max_user", "10" },
{ "apps_dms", "0" },
{ "apps_itunes", "0"},
{ "sh_num", "0" },
{ "computer_name", BOARD_NAME },
{ "pcache_reclaim", "2" },
{ "usb3_disable", "0" },
{ "u2ec_enable", "1" },
{ "lprd_enable", "0" },
{ "rawd_enable", "0" },
{ "achk_enable", "0" },
{ "nfsd_enable", "0" },
{ "optw_enable", "0" },
{ "dlna_disc", "895" },
{ "dlna_root", "0" },
{ "dlna_sort", "0" },
{ "dlna_src1", "/media/AiDisk_a1" },
{ "dlna_src2", "" },
{ "dlna_src3", "" },
{ "dlna_rescan", "0"},
{ "trmd_enable", "0" },
{ "trmd_pport", "51413" },
{ "trmd_rport", "9091" },
{ "trmd_ropen", "0" },
{ "aria_enable", "0" },
{ "aria_pport", "16888" },
{ "aria_rport", "6800" },
{ "aria_ropen", "0" },
{ "hdd_spindt", "0" },
{ "hdd_apmoff", "0" },
{ "ip6_service", "" },
{ "ip6_ppe_on", "0" },
{ "ip6_wan_if", "0" },
{ "ip6_6in4_remote", "" },
{ "ip6_6to4_relay", "192.88.99.1" },
{ "ip6_6rd_relay", "" },
{ "ip6_6rd_size", "0" },
{ "ip6_6rd_dhcp", "1" },
{ "ip6_sit_mtu", "1280" },
{ "ip6_sit_ttl", "64" },
{ "ip6_wan_dhcp", "0" },
{ "ip6_wan_priv", "0" },
{ "ip6_wan_addr", "" },
{ "ip6_wan_size", "64" },
{ "ip6_wan_gate", "" },
{ "ip6_dns_auto", "0" },
{ "ip6_dns1", "" },
{ "ip6_dns2", "" },
{ "ip6_dns3", "" },
{ "ip6_lan_auto", "0" },
{ "ip6_lan_addr", "" },
{ "ip6_lan_size", "64" },
{ "ip6_lan_radv", "1" },
{ "ip6_lan_dhcp", "1" },
{ "ip6_lan_sflt", "1800" },
{ "ip6_lan_sfps", "4096" }, // 0x1000
{ "ip6_lan_sfpe", "4352" }, // 0x1100
{ "upnp_enable_x", "1" },
{ "upnp_proto", "0" },
{ "upnp_secure", "1" },
{ "upnp_clean_min", "10" },
{ "upnp_clean_int", "600" },
{ "upnp_iport_min", "21" },
{ "upnp_iport_max", "65535" },
{ "upnp_eport_min", "80" },
{ "upnp_eport_max", "65535" },
{ "vts_enable_x", "1" },
{ "vts_num_x", "0" },
{ "sp_battle_ips", "1" },
{ "fw_log_x", "none" },
{ "misc_http_x", "0" },
{ "misc_httpport_x", "8080" },
{ "https_wopen", "0" },
{ "https_wport", "8443" },
{ "udpxy_wopen", "0" },
{ "udpxy_wport", "34040" },
{ "ftpd_wopen", "0" },
{ "ftpd_wport", "21" },
{ "sshd_wopen", "0" },
{ "sshd_wport", "10022" },
{ "sshd_wbfp", "2" },
{ "misc_lpr_x", "0" },
{ "misc_ping_x", "0" },
{ "fw_lw_enable_x", "0" },
{ "filter_lw_date_x", "1111111" },
{ "filter_lw_time_x", "00002359" },
{ "filter_lw_default_x", "ACCEPT" },
{ "filter_lw_icmp_x", "" },
{ "filter_lw_num_x", "0" },
{ "url_enable_x", "0" },
{ "url_date_x", "1111111" },
{ "url_time_x", "00002359" },
{ "url_mac_x", "" },
{ "url_inv_x", "0" },
{ "url_num_x", "0" },
{ "macfilter_enable_x", "0" },
{ "macfilter_num_x", "0" },
{ "sr_enable_x", "0" },
{ "sr_rip_x", "0" },
{ "sr_num_x", "0" },
{ "dr_static_rip_x", "0" },
{ "dr_static_matric_x", "1" },
{ "dr_default_x", "1" },
{ "dr_staticnum_x", "0" },
{ "dr_staticipaddr_x", "" },
{ "dr_staticnetmask_x", "0" },
{ "dr_staticgateway_x", "" },
#if defined(APP_SCUT)
/* scutclient related */
{ "scutclient_enable", "0" },
{ "scutclient_debug", "0" },
{ "scutclient_hostname", "Lenovo-PC" },
{ "scutclient_server_auth_ip", "202.38.210.131" },
{ "scutclient_skip_udp_hb", "0" },
{ "scutclient_version", "4472434f4d0096022a" },
{ "scutclient_hash", "2ec15ad258aee9604b18f2f8114da38db16efd00" },
{ "scutclient_username", "" },
{ "scutclient_password", "" },
{ "scutclient_watchcat", "1" },
{ "scutclient_wdg_force", "1" },
#endif
#if defined(APP_MENTOHUST)
/* mentohust related */
{ "mentohust_enable", "0" },
{ "mentohust_username", "" },
{ "mentohust_password", "" },
{ "mentohust_nic", "" },
{ "mentohust_ip", "" },
{ "mentohust_mask", "" },
{ "mentohust_gw", "" },
{ "mentohust_dns", "" },
{ "mentohust_pinghost", "" },
{ "mentohust_timeout", "8" },
{ "mentohust_interval", "30" },
{ "mentohust_restart_wait", "15" },
{ "mentohust_maxfail", "0" },
{ "mentohust_startmode", "1" },
{ "mentohust_dhcp", "0" },
{ "mentohust_daemon", "1" },
{ "mentohust_service", "0" },
{ "mentohust_ver", "0.00" },
{ "mentohust_datafile", "/etc/storage/mentohust/" },
{ "mentohust_dhcpscript", "" },
#endif
#if defined(APP_TTYD)
/* ttyd related */
{ "ttyd_enable", "0" },
{ "ttyd_port", "7681" },
/* NAPT66 */
{ "napt66_enable", "0" },
#endif
#if defined(APP_VLMCSD)
/* vlmcsd */
{ "vlmcsd_enable", "1" },
#endif
#if defined(APP_DNSFORWARDER)
/* dns-forwarder */
{ "dns_forwarder_enable", "0" },
{ "dns_forwarder_port", "5353" },
{ "dns_forwarder_bind", "0.0.0.0" },
{ "dns_forwarder_server", "8.8.4.4:53" },
#endif
#if defined(APP_SHADOWSOCKS)
/* shadowsocks */
{ "ss_type", "0" }, //0=ss, 1=ssr
{ "ss_enable", "0" },
{ "ss_mode", "1" }, //0=全局代理,1=绕过大陆,2=gfwlist
{ "ss_server", "127.0.0.1" },
{ "ss_server_port", "8989" },
{ "ss_key", "Secret" },
{ "ss_method", "rc4-md5" },
{ "ss_udp", "0" },
{ "ss_local_port", "1080" },
{ "ss_mtu", "1492" },
{ "ss_router_proxy", "1" },
{ "ss_lower_port_only", "1" }, //1:22-1023;2:53,80,443
{ "ss_timeout", "60"},
{ "ss_protocol", "origin"},
{ "ss_proto_param", ""},
{ "ss_obfs", "plain"},
{ "ss_obfs_param", ""},
{ "ss-tunnel_enable", "0" },
{ "ss-tunnel_local_port", "5301" },
{ "ss-tunnel_remote", "8.8.4.4:53" },
{ "ss-tunnel_mtu", "1492" },
{ "ss_watchcat", "1" },
{ "ss_update_chnroute", "0" },
{ "ss_update_gfwlist", "0" },
#endif
/* DHCP server parameters */
{ "dhcp_start", DEF_LAN_DHCP_BEG }, /* First assignable DHCP address */
{ "dhcp_end", DEF_LAN_DHCP_END }, /* Last assignable DHCP address */
{ "dhcp_enable_x", "1" },
{ "dhcp_lease", "3600" },
{ "dhcp_gateway_x", "" },
{ "dhcp_dns1_x", "" },
{ "dhcp_dns2_x", "" },
{ "dhcp_dns3_x", "" },
{ "dhcp_dnsv6_x", "" },
{ "dhcp_wins_x", "" },
{ "dhcp_verbose", "0" }, /* 0 : quiet, 1: verbose DHCP, 2: verbose DHCPv6, 3: verbose all */
{ "dhcp_static_x", "1" },
{ "dhcp_static_arp", "1" },
{ "dhcp_staticnum_x", "0" },
/* NTP client parameters */
{ "ntp_period", "24" },
{ "ntp_server0", DEF_NTP_SERVER0 },
{ "ntp_server1", DEF_NTP_SERVER1 },
/* DDNS parameters */
{ "ddns_enable_x", "0" },
{ "ddns_server_x", "" },
{ "ddns_username_x", "" },
{ "ddns_passwd_x", "" },
{ "ddns_hostname_x", "" },
{ "ddns_hostname2_x", "" },
{ "ddns_hostname3_x", "" },
{ "ddns_wildcard_x", "0" },
{ "ddns2_wildcard_x", "0" },
{ "ddns_ipv6", "0" },
{ "ddns_cst_svr", "" },
{ "ddns_cst_url", "" },
{ "ddns_period", "24" },
{ "ddns_forced", "10" },
{ "ddns_verbose", "1" },
{ "ddns_source", "0" },
{ "ddns_checkip", "0" },
{ "ddns2_checkip", "0" },
{ "ddns_ssl", "0" },
{ "ddns2_server", "" },
{ "ddns2_hname", "" },
{ "ddns2_user", "" },
{ "ddns2_pass", "" },
{ "ddns2_ssl", "0" },
{ "asusddns_tos_agreement", "0" },
{ "preferred_lang", "" },
{ "modem_rule", "0" },
{ "modem_prio", "1" },
{ "modem_type", "0" },
{ "modem_country", "" },
{ "modem_isp", "" },
{ "modem_apn", "" },
{ "modem_dialnum", "" },
{ "modem_user", "" },
{ "modem_pass", "" },
{ "modem_pin", "" },
{ "modem_dnsa", "1" },
{ "modem_node", "0" },
{ "modem_nets", "0" },
{ "modem_zcd", "0" },
{ "modem_cmd", "" },
{ "modem_mtu", "1500" },
{ "force_igmp", "0" },
{ "force_mld", "0" },
{ "udpxy_enable_x", "0" },
{ "udpxy_clients", "10" },
{ "udpxy_renew_period", "120" },
#if defined(APP_XUPNPD)
{ "xupnpd_enable_x", "0" },
{ "xupnpd_udpxy", "0" },
#endif
{ "rstats_enable", "1" },
{ "rstats_stored", "1" },
{ "stime_stored", "1" },
{ "http_id", "TIDe855a6487043d70a" },
{ "controlrate_unknown_unicast", "0" },
{ "controlrate_unknown_multicast", "0" },
{ "controlrate_multicast", "0" },
{ "controlrate_broadcast", "10" },
{ "di_poll_mode", "0" },
{ "di_timeout", "3" },
{ "di_time_done", "55" },
{ "di_time_fail", "5" },
{ "di_lost_delay", "10" },
{ "di_lost_action", "0" },
{ "di_recon_pause", "0" },
{ "di_addr0", "1.1.1.1" },
{ "di_addr1", "1.0.0.1" },
{ "di_addr2", "8.8.8.8" },
{ "di_addr3", "8.8.4.4" },
{ "di_addr4", "114.114.114.114" },
{ "di_addr5", "114.114.115.115" },
{ "di_port0", "53" },
{ "di_port1", "53" },
{ "di_port2", "53" },
{ "di_port3", "53" },
{ "di_port4", "53" },
{ "di_port5", "53" },
{ "fw_pt_pppoe", "0" },
#if defined(BOARD_ROLE_REPEATER)
{ "sw_mode", "3" },
#else
{ "sw_mode", "1" },
#endif
{ "telnetd", "0" },
{ "sshd_enable", "1" },
{ "wins_enable", "0" },
{ "lltd_enable", "1" },
{ "adsc_enable", "1" },
{ "crond_enable", "1" },
{ "crond_log", "0" },
#if defined(BOARD_N65U)
{ "inic_disable", "0" },
#endif
{ "wol_mac_last", "" },
{ "gw_arp_ping", "0" },
{ "ez_action_short", "0" },
#if !defined(BOARD_GPIO_BTN_RESET)
{ "ez_action_long", "15" }, /* Reset */
#else
{ "ez_action_long", "0" },
#endif
#if defined (BOARD_GPIO_BTN_FN1)
{ "fn1_action_short", "0" },
{ "fn1_action_long", "0" },
#endif
#if defined (BOARD_GPIO_BTN_FN2)
{ "fn2_action_short", "0" },
{ "fn2_action_long", "0" },
#endif
{ "watchdog_cpu", "1" },
{ "front_led_all", "1" },
{ "front_led_wan", "2" },
{ "front_led_lan", "2" },
{ "front_led_wif", "1" },
{ "front_led_usb", "1" },
{ "front_led_pwr", "1" },
{ "ether_igmp", "1" },
{ "ether_uport", "0" }, /* WAN port in AP mode is static upstream by default */
{ "ether_m2u", "2" },
{ "ether_green", "1" },
{ "ether_eee", "0" },
#if defined(USE_RTL8367)
{ "ether_jumbo", "1" },
#else
{ "ether_jumbo", "0" },
#endif
#if (BOARD_NUM_ETH_LEDS > 1)
{ "ether_led0", "3" },
#else
{ "ether_led0", "7" },
#endif
{ "ether_led1", "0" },
{ "ether_link_wan", "0" },
{ "ether_flow_wan", "0" },
{ "ether_link_lan1", "0" },
{ "ether_flow_lan1", "0" },
{ "ether_link_lan2", "0" },
{ "ether_flow_lan2", "0" },
{ "ether_link_lan3", "0" },
{ "ether_flow_lan3", "0" },
{ "ether_link_lan4", "0" },
{ "ether_flow_lan4", "0" },
#if BOARD_NUM_ETH_EPHY > 5
{ "ether_link_lan5", "0" },
{ "ether_flow_lan5", "0" },
#if BOARD_NUM_ETH_EPHY > 6
{ "ether_link_lan6", "0" },
{ "ether_flow_lan6", "0" },
{ "ether_link_lan7", "0" },
{ "ether_flow_lan7", "0" },
#endif
#endif
#if defined(CONFIG_RALINK_MT7621) || (defined(CONFIG_RALINK_MT7620) && !defined(BOARD_N14U))
#if defined(USE_MT7615_AP) || (USE_MT7915_AP) // hwnat is disabled by default
{ "hw_nat_mode", "2" },
#else
{ "hw_nat_mode", "4" },
#endif
#else
{ "hw_nat_mode", "1" },
#endif
{ "sw_nat_mode", "0" },
#if defined(USE_SFE)
{ "sfe_enable", "0" },
#endif
{ "fw_syn_cook", "1" },
{ "fw_mac_drop", "0" },
{ "nf_nat_type", "2" },
{ "nf_nat_loop", "1" },
#if (BOARD_RAM_SIZE > 128)
{ "nf_max_conn", "32768" },
#elif (BOARD_RAM_SIZE > 32)
{ "nf_max_conn", "16384" },
#else
{ "nf_max_conn", "8192" },
#endif
{ "nf_alg_ftp0", "21" },
{ "nf_alg_ftp1", "" },
{ "nf_alg_pptp", "0" },
{ "nf_alg_h323", "0" },
{ "nf_alg_rtsp", "0" },
{ "nf_alg_sip", "0" },
{ "help_enable", "0" },
{ "vpns_enable", "0" },
{ "vpns_type", "0" },
{ "vpns_cast", "0" },
{ "vpns_auth", "0" },
{ "vpns_mppe", "1" },
{ "vpns_mtu", "1450" },
{ "vpns_mru", "1450" },
{ "vpns_vuse", "0" },
{ "vpns_vnet", "10.8.0.0" },
{ "vpns_actl", "0" },
{ "vpns_cli0", "245" },
{ "vpns_cli1", "254" },
{ "vpns_num_x", "0" },
{ "vpnc_enable", "0" },
{ "vpnc_type", "0" },
{ "vpnc_peer", "" },
{ "vpnc_user", "" },
{ "vpnc_pass", "" },
{ "vpnc_auth", "0" },
{ "vpnc_mppe", "0" },
{ "vpnc_pppd", "" },
{ "vpnc_rnet", "" },
{ "vpnc_rmsk", "" },
{ "vpnc_pdns", "0" },
{ "vpnc_mtu", "1450" },
{ "vpnc_mru", "1450" },
{ "vpnc_sfw", "0" },
{ "vpnc_dgw", "0" },
{ "vpns_ov_mode", "1" },
{ "vpns_ov_prot", "0" },
{ "vpns_ov_port", "1194" },
{ "vpns_ov_mdig", "1" },
{ "vpns_ov_ciph", "15" },
{ "vpns_ov_ncp_clist", DEF_OVPNS_CIPH_LIST },
{ "vpns_ov_compress", "2" },
{ "vpns_ov_atls", "0" },
{ "vpns_ov_tcv2", "0" },
{ "vpns_ov_rdgw", "0" },
{ "vpnc_ov_mode", "1" },
{ "vpnc_ov_cnat", "0" },
{ "vpnc_ov_prot", "0" },
{ "vpnc_ov_port", "1194" },
{ "vpnc_ov_auth", "0" },
{ "vpnc_ov_mdig", "1" },
{ "vpnc_ov_ciph", "15" },
{ "vpnc_ov_ncp_clist", DEF_OVPNC_CIPH_LIST },
{ "vpnc_ov_compress", "2" },
{ "vpnc_ov_atls", "0" },
#if defined(APP_XTU)
/* xTun */
{ "xTun_iface", "tun0" },
{ "xTun_cidr", "10.0.1.2/24" },
{ "xTun_server", "server.me" },
{ "xTun_port", "1082" },
{ "xTun_tcp", "0" },
{ "xTun_key", "password" },
{ "xTun_dns", "1.1.1.1" },
{ "xTun_black_list", "/etc/storage/xTun_black_list" },
#endif
{ 0, 0 }
};
struct nvram_pair tables_defaults[] = {
{ "vts_port_x", "" },
{ "vts_ipaddr_x", "" },
{ "vts_lport_x", "" },
{ "vts_proto_x", "" },
{ "vts_protono_x", "" },
{ "vts_srcip_x", "" },
{ "vts_desc_x", "" },
{ "filter_lw_srcip_x", "" },
{ "filter_lw_srcport_x", "" },
{ "filter_lw_dstip_x", "" },
{ "filter_lw_dstport_x", "" },
{ "filter_lw_proto_x", "" },
{ "filter_lw_protono_x", "" },
{ "macfilter_list_x", "" },
{ "macfilter_date_x", "" },
{ "macfilter_time_x", "" },
{ "url_keyword_x", "" },
{ "acc_username", "" },
{ "acc_password", "" },
{ "sr_ipaddr_x", "" },
{ "sr_netmask_x", "" },
{ "sr_gateway_x", "" },
{ "sr_matric_x", "" },
{ "sr_if_x", "" },
{ "dhcp_staticmac_x", "" },
{ "dhcp_staticip_x", "" },
{ "dhcp_staticname_x", "" },
{ "vpns_user_x", "" },
{ "vpns_pass_x", "" },
{ "vpns_addr_x", "" },
{ "vpns_rnet_x", "" },
{ "vpns_rmsk_x", "" },
{ "wl_maclist_x", "" },
{ "wl_macdesc_x", "" },
{ "rt_maclist_x", "" },
{ "rt_macdesc_x", "" },
{ "wl_wdslist_x", "" },
{ "rt_wdslist_x", "" },
{ 0, 0 }
};