[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/Script/etc/chap-secrets b/ap/app/Script/etc/chap-secrets
new file mode 100644
index 0000000..cd2fb9b
--- /dev/null
+++ b/ap/app/Script/etc/chap-secrets
@@ -0,0 +1,3 @@
+# Secrets for authentication using CHAP
+# client server secret IP addresses
+hello * hello *
diff --git a/ap/app/Script/etc/initchat b/ap/app/Script/etc/initchat
new file mode 100644
index 0000000..f00a425
--- /dev/null
+++ b/ap/app/Script/etc/initchat
@@ -0,0 +1,8 @@
+AT OK
+ATE0V1 OK
+AT OK
+ATS0=0 OK
+AT OK
+ATE0V1 OK
+AT OK
+ATDT CONNECT
diff --git a/ap/app/Script/etc/miniupnpd_temp.conf b/ap/app/Script/etc/miniupnpd_temp.conf
new file mode 100644
index 0000000..f12e4f7
--- /dev/null
+++ b/ap/app/Script/etc/miniupnpd_temp.conf
@@ -0,0 +1,101 @@
+# WAN network interface
+#ext_ifname=eth0
+ext_ifname=wan0
+# if the WAN interface has several IP addresses, you
+# can specify the one to use below
+#ext_ip=
+
+# LAN network interfaces IPs / networks
+# there can be multiple listening ips for SSDP traffic.
+# should be under the form nnn.nnn.nnn.nnn/nn
+# HTTP is available on all interfaces
+# When MULTIPLE_EXTERNAL_IP is enabled, the external ip
+# address associated with the subnet follows. for example :
+listening_ip=192.168.0.1
+# port for HTTP (descriptions and SOAP) traffic. set 0 for autoselect.
+port=5000
+
+# path to the unix socket used to communicate with MiniSSDPd
+# If running, MiniSSDPd will manage M-SEARCH answering.
+# default is /var/run/minissdpd.sock
+#minissdpdsocket=/var/run/minissdpd.sock
+
+# enable NAT-PMP support (default is no)
+#enable_natpmp=yes
+
+# enable UPNP support (default is yes)
+enable_upnp=yes
+
+# chain names for netfilter (not used for pf or ipf).
+# default is MINIUPNPD for both
+#upnp_forward_chain=forwardUPnP
+#upnp_nat_chain=UPnP
+
+# lease file location
+lease_file=/etc_rw/upnp.leases
+
+# bitrates reported by daemon in bits per second
+bitrate_up=1000000
+bitrate_down=10000000
+
+# "secure" mode : when enabled, UPnP client are allowed to add mappings only
+# to their IP.
+secure_mode=yes
+#secure_mode=no
+
+# default presentation url is http address on port 80
+# If set to an empty string, no presentationURL element will appear
+# in the XML description of the device, which prevents MS Windows
+# from displaying an icon in the "Network Connections" panel.
+#presentation_url=http://www.mylan/index.php
+
+# report system uptime instead of daemon uptime
+system_uptime=yes
+
+# notify interval in seconds. default is 30 seconds.
+#notify_interval=240
+notify_interval=30
+
+# unused rules cleaning.
+# never remove any rule before this threshold for the number
+# of redirections is exceeded. default to 20
+#clean_ruleset_threshold=10
+# clean process work interval in seconds. default to 0 (disabled).
+# a 600 seconds (10 minutes) interval makes sense
+clean_ruleset_interval=600
+
+# log packets in pf
+#packet_log=no
+
+# ALTQ queue in pf
+# filter rules must be used for this to be used.
+# compile with PF_ENABLE_FILTER_RULES (see config.h file)
+#queue=queue_name1
+
+# tag name in pf
+#tag=tag_name1
+
+# make filter rules in pf quick or not. default is yes
+# active when compiled with PF_ENABLE_FILTER_RULES (see config.h file)
+#quickrules=no
+
+# uuid : generate your own with "make genuuid"
+uuid=8c45af75-17c3-461c-8198-cfa836f4bc17
+
+# serial and model number the daemon will report to clients
+# in its XML description
+serial=12345678
+model_number=#device_name#
+
+# UPnP permission rules
+# (allow|deny) (external port range) ip/mask (internal port range)
+# A port range is <min port>-<max port> or <port> if there is only
+# one port in the range.
+# ip/mask format must be nn.nn.nn.nn/nn
+# it is advised to only allow redirection of port above 1024
+# and to finish the rule set with "deny 0-65535 0.0.0.0/0 0-65535"
+allow 1024-65535 #allow_ip#/24 1024-65535
+allow 1024-65535 192.168.0.0/23 22
+allow 12345 192.168.7.113/32 54321
+deny 0-65535 0.0.0.0/0 0-65535
+
diff --git a/ap/app/Script/etc/options b/ap/app/Script/etc/options
new file mode 100644
index 0000000..7ce2c46
--- /dev/null
+++ b/ap/app/Script/etc/options
@@ -0,0 +1,16 @@
+ttyS2
+init '/sbin/chat -v -S -t 8 -d /dev/ttyS2 -f /etc_ro/initchat'
+debug
+local 192.168.2.1:192.168.2.100
+ms-dns 114.114.114.114
+nodetach
+noaccomp
+nobsdcomp
+nodeflate
+nopcomp
+novj
+novjccomp
+default-asyncmap
+auth
+persist
+ipcp-accept-local
diff --git a/ap/app/Script/etc/options.auth b/ap/app/Script/etc/options.auth
new file mode 100755
index 0000000..db0cc5a
--- /dev/null
+++ b/ap/app/Script/etc/options.auth
@@ -0,0 +1,18 @@
+#dev_name#
+logfile /var/log/pppd.log
+debug
+local 192.168.2.1:192.168.2.100
+ms-dns 114.114.114.114
+nodetach
+noaccomp
+nobsdcomp
+nodeflate
+nopcomp
+novj
+novjccomp
+default-asyncmap
+auth
+persist
+ipcp-accept-local
+ipv6 ,
+ipv6cp-restart 30
diff --git a/ap/app/Script/etc/options.noauth b/ap/app/Script/etc/options.noauth
new file mode 100755
index 0000000..e00b17f
--- /dev/null
+++ b/ap/app/Script/etc/options.noauth
@@ -0,0 +1,18 @@
+#dev_name#
+logfile /var/log/pppd.log
+debug
+local 192.168.2.1:192.168.2.100
+ms-dns 114.114.114.114
+nodetach
+noaccomp
+nobsdcomp
+nodeflate
+nopcomp
+novj
+novjccomp
+default-asyncmap
+noauth
+persist
+ipcp-accept-local
+ipv6 ,
+ipv6cp-restart 30
diff --git a/ap/app/Script/etc/pap-secrets b/ap/app/Script/etc/pap-secrets
new file mode 100644
index 0000000..ad10560
--- /dev/null
+++ b/ap/app/Script/etc/pap-secrets
@@ -0,0 +1,3 @@
+# Secrets for authentication using PAP
+# client server secret IP addresses
+hello * hello *
diff --git a/ap/app/Script/etc/radvd.conf b/ap/app/Script/etc/radvd.conf
new file mode 100644
index 0000000..9f602f9
--- /dev/null
+++ b/ap/app/Script/etc/radvd.conf
@@ -0,0 +1,32 @@
+interface br0
+{
+ AdvSendAdvert on;
+
+# This may be needed on some interfaces which are not active when
+# radvd starts, but becomoe available later on; see man page for details.
+
+ # IgnoreIfMissing on;
+
+#
+# These settings cause advertisements to be sent every 3-10 seconds. This
+# range is good for 6to4 with a dynamic IPv4 address, but can be greatly
+# increased when not using 6to4 prefixes.
+#
+
+ MinRtrAdvInterval 3;
+ MaxRtrAdvInterval 10;
+
+ AdvHomeAgentFlag off;
+
+ prefix #ipv6_wan_addr#/64
+ {
+ AdvOnLink on;
+ AdvAutonomous #adv_switch#;
+ AdvRouterAddr off;
+
+ AdvValidLifetime 300;
+ AdvPreferredLifetime 120;
+ };
+
+};
+
diff --git a/ap/app/Script/etc/radvd_temp_bridge.conf b/ap/app/Script/etc/radvd_temp_bridge.conf
new file mode 100644
index 0000000..8db151d
--- /dev/null
+++ b/ap/app/Script/etc/radvd_temp_bridge.conf
@@ -0,0 +1,27 @@
+
+interface br0
+{
+ AdvSendAdvert on;
+ AdvOtherConfigFlag on;
+ MinRtrAdvInterval 30;
+ MaxRtrAdvInterval 100;
+
+ prefix #ipv6_wan_addr#/64
+ {
+ AdvOnLink on;
+ AdvAutonomous #adv_switch#;
+ AdvRouterAddr off;
+
+ AdvValidLifetime 300;
+ AdvPreferredLifetime 120;
+ };
+ prefix #ipv6_bridge_ipaddr#/64
+ {
+ AdvOnLink on;
+ AdvAutonomous #adv_switch#;
+ AdvRouterAddr off;
+
+ AdvValidLifetime 300;
+ AdvPreferredLifetime 120;
+ };
+};
diff --git a/ap/app/Script/etc/radvd_template.conf b/ap/app/Script/etc/radvd_template.conf
new file mode 100644
index 0000000..de8973a
--- /dev/null
+++ b/ap/app/Script/etc/radvd_template.conf
@@ -0,0 +1,18 @@
+
+interface br0
+{
+ AdvSendAdvert on;
+ AdvOtherConfigFlag on;
+ MinRtrAdvInterval 30;
+ MaxRtrAdvInterval 100;
+
+ prefix #ipv6_wan_addr#/64
+ {
+ AdvOnLink on;
+ AdvAutonomous #adv_switch#;
+ AdvRouterAddr off;
+
+ AdvValidLifetime 300;
+ AdvPreferredLifetime 120;
+ };
+};
diff --git a/ap/app/Script/etc/udhcpd.conf b/ap/app/Script/etc/udhcpd.conf
new file mode 100644
index 0000000..1d8f42d
--- /dev/null
+++ b/ap/app/Script/etc/udhcpd.conf
@@ -0,0 +1,8 @@
+start 192.168.1.100
+end 192.168.1.200
+interface br0
+option subnet 255.255.255.0
+option dns 192.168.1.1
+option router 192.168.1.1
+option lease 86400
+lease_file /mnt/jffs2/etc/udhcpd.leases
diff --git a/ap/app/Script/etc/udhcpd.leases b/ap/app/Script/etc/udhcpd.leases
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ap/app/Script/etc/udhcpd.leases