hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
24.9k stars 6.28k forks source link

Question - how to config client for not "tunnel-all" with ikev2? #1534

Closed 0x-2a closed 6 months ago

0x-2a commented 6 months ago

What's a good strategy to achieve the following config for an ikev2 vpn?

Let's say we have a Server Network that looks like this:

From the client, I only want traffic to the 10.0.0.xxx subnet routed through the VPN (no external internet traffic).

Is this controlled entirely by the client config? I've gotten it to work with L2TP but not IKEV2.

hwdsl2 commented 6 months ago

@0x-2a Hello! For your use case, please refer to split tunneling in the advanced usage section of project documentation.