5 iptables
-t nat
-I POSTROUTING
-o ${WLAN} -j MASQUERADE
6 echo "config wlan/lan end, please check ip and QOS"
7 echo 1 > /proc
/sys
/net
/ipv
4/ip_forward
8 echo "forward configured, try to internet at lan"
10 iwconfig
${WLAN} essid sub31laoyou
12 iwconfig
${WLAN} key
"1981093011"
16 ifconfig
${WLAN} 192.168.0.225
17 ifconfig
${LAN} 192.168.3.225
18 ip route add to default via
192.168.0.1 dev
${WLAN}
20 # downspeed: 2299kbps, upspeed 638kbps
21 #tc qdisc del dev ${LAN} root 2>/dev/null
22 #tc qdisc add dev ${LAN} root handle 1: htb default 10
23 #tc class add dev ${LAN} root classid 1:10 htb rate 80kbps
24 # for safe, config up stream at ${WLAN}
25 tc qdisc del dev
${WLAN} root
2>/dev
/null
26 tc qdisc add dev
${WLAN} root handle
1: htb default
10
27 tc class add dev
${WLAN} root classid
1:10 htb rate
80kbps
29 tc qdisc del dev
${WLAN} ingress
30 tc qdisc add dev
${WLAN} handle ffff
: ingress
31 tc filter add dev
${WLAN} parent ffff
: protocol ip prio
50 u32 match ip src
0.0.0.0/0 police rate
90kbps burst
20kb drop flowid
:1