Here’s the relevant part of the script:
NETS=`cat $REGISTER/system/openvpn/Nets 2>/dev/null`
if [ -z "$NETS" ] ; then
So I either make a non-zero Nets file or I edit the script line directly. Most likely the reason you’re not getting the –redirect-gateway is because you have a Nets file. I don’t. Since there is no documentation on what’s in that file or what it’s supposed to do there’s no obvious way to fix it from the GUI. The only thing that creates a Nets file is vpn_setnet, which uses a parameter when called to either set an empty Nets file or a Nets file with a newline character. I don’t feel like chasing down what actually CALLS vpn_setnet as my hack works for now.
On the next version I’ll re-evaluate if the hack stays or something else gets done.