I have an OpenVPN client on my OpenWrt router configured to route all traffic as if it were the primary gateway:
redirect-gateway def1
I would like some hosts on the LAN to be routed directly through the WAN, instead of the VPN:
route 192.168.0.XXX 255.255.255.255 net_gateway
However, all hosts added in this form are unable to route traffic to any destination other than the hosts also routed to "net_gateway" (this is true for both WAN and LAN addresses).
I am able to resolve routes from LAN hosts routed through the VPN to the hosts routed to "net_gateway", but not vice versa.
I thought this may be a firewall issue. I have tried changing all policies to "ACCEPT" for the "vpn" zone, and also allowing forwarding both from and to the "lan" and "wan" zones. This did not have an impact.
Any help would be greatly appreciated.