[strongSwan-dev] Customize route for Android App

Tobias Brunner tobias at strongswan.org
Thu Dec 18 12:20:29 CET 2014

> My problem is that my intent is blacklist which means I have a list of
> subnets that I want to route through VPN and the rest not. Am I able to
> do that?

If you want to send only traffic to a specific list of subnets through
the VPN tunnel and the rest not then just define these subnets in
leftsubnet, e.g. leftsubnet=,,, on the
server.  The client proposes which gets narrowed to that list.

If what you wrote above is not entirely accurate and you actually do
**not** want to tunnel traffic to a specific list of subnets but all
other traffic, then you'd have to list the inverse list of subnets
(which could get quite long).  For instance, if you want to tunnel all
traffic ( except that to private address ranges (,, then you'd define:



More information about the Dev mailing list