DD-WRT support for verizon 7501 bulit by westell

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 53, 54, 55
Author Message
xman25us
DD-WRT Novice


Joined: 21 Sep 2013
Posts: 1

PostPosted: Sat Sep 21, 2013 14:59    Post subject: Connection dropping Reply with quote
Hi, I have been able to put my router in bridge model using setting and script but after few hours the connection does not work and requires a restart of the router. I do have the keep alive part. Any help would be appreciated

My scipt is:

#! /bin/sh
/&/& /sbin/telnetd

### Settings ###
ssid='---'
psk='---'
channel='11'
ip='192.168.1.50'
gateway='192.168.1.1'
dns1='4.2.2.1'
dns2='4.2.2.2'

### 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

### 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}
while [ ${foo}ping -c 1 ${gateway} | grep -c '1 packets received') -eq 0 ]; do echo 1 > /dev/zero; done
ifconfig wl0 0.0.0.0
brctl addif br5 wl0
ifconfig br5 ${ip}
route add default gw ${gateway} br5
while [ ${foo}ping -c 1 ${gateway} | grep -c '1 packets received') -eq 0 ]; do echo 1 > /dev/zero; done
fi
ping -q -c 2 ${ip} > /dev/zero #one second pause
done" > /tmp/keepalive.sh
sh /tmp/keepalive.sh &
Sponsor
Goto page Previous  1, 2, 3 ... 53, 54, 55 Display posts from previous:    Page 55 of 55
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum