How to setup VPN client to Vlan?

Started by Dayve, August 12, 2020, 01:50:12 PM

Previous topic - Next topic
I just switched over to opnsense from Pfsense. With Pfsense I setup a VPN to my Vlan20. I just cannot figure it out with Opnsense. I do not want to have my LAN traffic on the VPN. Just the clients on the Vlan20.

Would anyone have some info on how to do this?

August 13, 2020, 05:11:29 AM #1 Last Edit: August 22, 2020, 11:56:22 PM by Koldnitz
https://forum.opnsense.org/index.php?topic=4979.msg25066#msg25066

I think if you put the VLAN in vpn_users alias it will work .... I use 192.168.1.240/28 in said alias and it works for 14ish IP addresses.

NilsS setup works pretty well but you will probably need to customize it for your needs (the opnvpn configuration), the way he has the routing and aliases works and it has builtin DNS leak protection.

Cheers,

Thanks for the information. I was able to get my VPN Interface to the VPN. All I was missing was setting the DNS in the interface and a allow rule to the DNS.

Cheers