It is indeed ….. probably
Show a little patience
....forum members are not necessarily in
your time-zone and it is not unusual to not get any response for a couple of days.
Anyway, back in the day when I was on an unstable Primary
ADSL connection, I used something like this in
/jffs/scripts/firewall-start
Code:
#!/bin/sh
WAN0_ADDR=$(nvram get wan0_ipaddr)
WAN1_ADDR=$(nvram get wan1_ipaddr)
# This should indicate if Primary VDSL or Secondary 3G MODEM is ACTIVE
VDSL_ACTIVE=$(nvram get wan0_primary)
# Allow/Deny Primary WAN (WAN0) access for specified LAN devices
if [ "$VDSL_ACTIVE" = "1" ]; then
logger -st "($(basename $0))" $$ Allowing Primary WAN (WAN0) access for xxx.xxx.xxx.xxx
iptables -D FORWARD -i br0 -o eth0 -s xxx.xxx.xxx.xxx -j DROP
else
logger -st "($(basename $0))" $$ Blocking Secondary WAN (WAN1) access for xxx.xxx.xxx.xxx
iptables -D FORWARD -i br0 -o eth0 -s xxx.xxx.xxx.xxx -j DROP
iptables -I FORWARD "$(($(iptables -nvL FORWARD --line -t filter | grep "state INVALID" | cut -d' ' -f1)+1))" -i br0 -o ??? -s xxx.xxx.xxx.xxx -j DROP
fi
Obviously if
'eth0' is not your Primary (
WAN0) interface, then substitute the appropriate interface
'vlan2/ppp5' etc to add/remove the block on the secondary WAN interface
Hopefully this should get you started.