/******************************************************************************* File: Westell 7501 Configuration.txt Abstract: Instructions on how the Westell 7501 is confugired. Platform: Westell 7501 See http://www.dd-wrt.com/phpBB2/viewtopic.php?t=65443 Version: 1.00 12/29/10 Frank1777 (page 49) and 02/27/11 dragon042 (page 52) 1.01 02/10/13 GND Gary N. Dion *******************************************************************************/ From Frank1777 (page 49): 1. Setup your Main Router for WPA/TPIK security. 2. Adjust the section ### Settings ### in the below script as follows: ssid=...................'Your Main Routers wireless SSID' psk=....................'Your Main Routers wireless WPA/TPIK Password' channel=.............'Your Main Routers Channel Number' ip=.......................'An Available Static IP Adress From Your Main Router' gateway=...........'Your Main Routers Gateway LAN IP Address' dns1=..................'Your Main Routers LAN DNS1 Number' dns2=..................'Your Main Routers LAN DNS2 Number' In the ### Keep Alive ### section: Replace symbol * with blank spaces (* inserted for posting/formatting). 3. Push the reset button (hold until red power light turns green) on the Verizon 7501 router to restore factory defaults. 4. Connect a wired ethernet cable to the Verizon 7501 Lan port (any one of the 4 available) and your laptop. Turn OFF your Wireless Laptop Adapter. 5. Set the wired LAN ip on your laptop to 192.168.200.2 (a static IP) and then connect to the Verizon routers GUI (e.g. web browser) at 192.168.200.1. 6. When prompted, Enter ID: admin, PASSWORD: password. Cancel requests to change password, WAN configuration or to perform a search. 7. Go to the Advanced Tab, then Private LAN. Disable (uncheck) Private LAN DHCP Server and click APPLY. The router will reboot. 8. After reboot, you should be returned to the routers Verizons GUI at 192.168.200.1 9. Go to the Firewall Settings, click Custom Security (None), click APPLY, click EDIT, then copy the below script and replace (overwrite) the current firewall script. Click APPLY, then SAVE. 10. When the Web Browser says "Connection Timed Out" (or words to that effect) check that the script is saved by: a. Turn the Verizon router off, then on. b. When just the power light is green, go back to 192.168.200.1, click firewall and then click edit (this has to be done before the green wireless light come on). c. If the script is as you pasted it, then wait until the green wireless light comes on, click the Firewall icon again and see if you get a "Connection Timed Out". If so, the script should be running. d. If the script is not as pasted OR you click the Firewall icon a second time (with wireless green light on) and find the script is not as pasted, then start back at the beginning with a router reset. 11. If the script is saved and running, change the wired IP from the static 192.168.200.2 back to being able to automatically obtain the IP and DNS address. 12. The Verizon 7501 Router is now set up as a Bridge. Test by seeing if the web browser can browse the internet. If it connects, you are done and turn back ON your Laptop Wireless Adapter. If not, then start back at the beginning with a router reset. 13. The Verizon 7501 Router can be down powered/unplugged, plugged into something like an Xbox 360 and be used to connect to the internet. Note: The Verizon should be turned on for about a minute before plugging in the ethernet wire (e.g. to the Xbox 360). This allows time for the Verizon to establish the bridge to your main router. Your bridged component will then be sensed by the main router and assigned an IP address. From dragon042 (page 52): Note that the printer section can be omitted. I added some code at the bottom to accept connections on port 1234, and spit the data out at 115200. i.e. 'echo abc | nc 192.168.0.55 1234'. #! /bin/sh /&/& /sbin/telnetd ### Settings ### ssid='yourssidhere' psk='passwordhere' channel='3' ip='192.168.1.222' gateway='192.168.1.1' dns1='192.168.1.1' dns2='192.168.1.1' ### Firewall ### ifconfig eth1.2 192.168.200.1 brctl addif br5 eth1.3 cd /var/net_mgr/exec ./FirewallInit ./FirewallNone ### Catch Multiple Executions ### if [ -f /tmp/started ]; then exit 0; fi touch /tmp/started ### Housekeeping ### killall udhcpc killall pppoe-relay brctl delif br0 wl0 brctl delif br0 eth1.3 brctl delif br0 usb0 brctl delif br2 wl0.1 ifconfig br0 down ifconfig br1 down ifconfig br2 down ifconfig br3 down ifconfig br4 down ifconfig usb0 down ifconfig wl0.1 down echo "nameserver ${dns1}" > /var/etc/resolv.conf echo "nameserver ${dns2}" >> /var/etc/resolv.conf ### Wireless Client ### wl ap 0 wl wet 1 wl channel $channel wl scan wl scanresults ifconfig wl0 $ip killall nas nas -P /var/nas.sta.pid -H 34954 -i wl0 -S -m 4 -k $psk -s $ssid -w 2 -g 3600 > /dev/null 2>&1 & ### Set up bridge ### while [ $(ping -c 1 $gateway | grep -c "1 packets received") -eq 0 ]; do echo 1 > /dev/zero; done brctl addif br5 wl0 ifconfig wl0 0.0.0.0 up ifconfig eth1.3 0.0.0.0 up ifconfig br5 $ip up route add default gw $gateway br5 ### Print Server ### hostname printserver202 mknod -m 660 /var/dev/lp0 c 180 0 mknod -m 660 /var/dev/lp1 c 180 1 mknod -m 660 /var/dev/lp2 c 180 2 mkdir -p /var/lock/subsys mkdir /var/printserver while [ ! -f /var/printserver/p910nd ] do cp /WFIO/p910nd /var/printserver/p910nd done cp /WFIO/usblp.ko /var/printserver/usblp.ko chmod +x /var/printserver/* insmod /var/printserver/usblp.ko killall p910nd /var/printserver/p910nd -b -f /var/dev/lp0 0 /var/printserver/p910nd -b -f /var/dev/lp1 1 #/var/printserver/p910nd -b -f /var/dev/lp2 2 ### Keep Alive ### while [ $(ping -c 1 $gateway | grep -c "1 packets received") -eq 0 ]; do echo 1 > /dev/zero; done foo='$(' echo "while [ 1 ]; do if [ ${foo}ping -c 1 ${gateway} | grep -c '1 packets received') -eq 0 ]; then brctl delif br5 wl0 ifconfig br5 0.0.0.0 ifconfig wl0 ${ip} ping -q -c 2 ${ip} > /dev/zero ifconfig wl0 0.0.0.0 brctl addif br5 wl0 ifconfig br5 ${ip} route add default gw ${gateway} br5 ping -q -c 31 ${ip} > /dev/zero fi ping -q -c 2 ${ip} > /dev/zero #one second pause done" > /tmp/keepalive.sh sh /tmp/keepalive.sh & ### Added by GND for serial port ### echo "HTTP/1.1 204 No Content Content-Length: 0 Connection: close " > /tmp/index.html echo "while [ 1 ]; do nc -l -p 1234 < /tmp/index.html | grep GET > /dev/ttyS0 done" > /tmp/serial.sh sh /tmp/serial.sh &