What's new

VPN Config List

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

justinglock40

Occasional Visitor
What would be the best approach for having a laundry list of IPs be routed over VPN?

For traffic origination from 1 LAN device, I would rather not add them one by one to VPN director. Can they all just be added to OPVN.conf? And still keep all traffic not destined for those IPs over WAN?
 
What you're looking for is what some firmware provides; the ability to associate one or more LAN devices, based on their assigned IP, to a "named" group, then specify that name for routing over the VPN. ExpressVPN's firmware for ASUS routers provides that very functionality. But no such thing exists w/ ASUS, either OEM or Merlin.

The only thing you can really do to help ease the burden is assign IPs to those devices such that they belong to an IP range that can be expressed w/ a single IP network using CIDR notation.

For example, the range 192.168.1.128 through 192.168.1.191 (64 hosts) can be expressed as 192.168.1.128/26. If you were to use that range w/ the DHCP server, or even the assignment of static routes, then you wouldn't have to list all the individual IPs that make up the range, just the one line containing 192.168.1.128/26.

You can create smaller or larger ranges too (32 hosts, 128 hosts, etc.) as long as you use the correct CIDR notation.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top