OPNsense Forum

English Forums => Virtual private networks => Topic started by: mineat on July 01, 2022, 10:30:01 AM

Title: VPN to an alternative LAN
Post by: mineat on July 01, 2022, 10:30:01 AM
Hi!

I just went to OPNSense and It seems very promising.

I wonder if there is a guide for me to doing this.
Today I have a box with 4 LANs and Im using a WAN and a LAN to a 192.168.0.0/24 network.

I want to use my VPN vendor and use a second LAN to 192.168.1.0/24 and that should be connected to VPN.

So one LAN should be VPN-connected and one is not connected to VPN.
Is this possible or do I have to connect to the VPN from the WAN and all LANs will be connected to VPN?


Title: Re: VPN to an alternative LAN
Post by: Patrick M. Hausen on July 01, 2022, 10:38:53 AM
You will have to connect from WAN, because that's the only interface (normally) with a public routable address. But you can configure which LAN(s) use the VPN as a gateway and which don't.

See the various guides as a starting point:
https://docs.opnsense.org/plugins.html#vpn-connectivity
Title: Re: VPN to an alternative LAN
Post by: mineat on July 01, 2022, 11:08:20 AM
Thanks for the response.

Ill check that out!