OpenVPN on DD-WRT and Policy Based Routing

I took out a VPN subscription with PIA and wanted to set it up on my DD-WRT router, but only for selected IPs. It is all in the guide, my version of DD-WRT doesn’t have the “User Pass Authentication” fields mentioned in the official PIA docs and I found a guide for that scenario here. Followed to the letters, this successfully routed all connections through the VPN. Now this isn’t a set up that would work because as both me and my wife work from home, we connect through our respective work environments through VPN clients on our laptops and this causes issues if our default connection itself is routed through a VPN. Here comes the “Policy Based Routing” field on the Services->VPN->OpenVPN Client section. As per this thread, you need to enter the individual IP addresses you want to specifically route through the VPN in the format “192.168.1.103/32” on separate lines (BTW, entering an IP followed by”/0” completely bricks the modem, which you then need to reset so do make sure you take the initial steps of backing up the existing configuration) and hey presto, everything goes through the default connection while the selected IPs go through the VPN connection. After a couple of days, everything seems still to work perfectly. No issue with connecting on work VPN, speed is good and modem doesn’t seem overloaded. If it did, I could always try overclocking as per instructions here

Back