DDWRT opevpn and access restrictions not working
Hi all,
I'm a bit stumped trying to get access restrictions and openVpn to work on DDWRT at the same time. They work separately but not together.
I am running DD-WRT v24-sp2 (03/25/13) std on my router.
I have it set up according to instructions https://www.privateinternetaccess.com/pages/client-support/dd-wrt-openvpn-older-build
This works OK.
But my access restrictions no longer work. I fI disable OPENVPN access restrictions work again.
I have tried adding this script to the startup commands (admin->commands->save startup):-
#!/bin/sh
SCRIPT="/tmp/lan2wan.sh"
cat << "EOF" > $SCRIPT
#!/bin/sh
while true; do
if [ "$(iptables -vnL FORWARD | awk '/lan2wan/ {print FNR}')" != "3" ]; then
iptables -D FORWARD -j lan2wan
iptables -I FORWARD -j lan2wan
fi
sleep 300
done
EOF
chmod +x $SCRIPT
$SCRIPT &