English Forums > Tutorials and FAQs

How to setup VPN client to Vlan?

(1/1)

Dayve:
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?

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,

Dayve:
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

Navigation

[0] Message Index

Go to full version