OPNsense Forum

English Forums => General Discussion => Topic started by: frudda on June 12, 2024, 05:08:25 PM

Title: OpenVPN will not route VLAN subnets
Post by: frudda on June 12, 2024, 05:08:25 PM
Hello!

I have a question if someone of you know a good way to resolve this issue.
OpenVPN will not route VLAN subnets but the VPN is working fine on the LAN subnet which is not a VLAN.
I do use TUN.

I tried to pass everything in firewall but nothing works. Is this impossible? :'(



Title: Re: OpenVPN will not route VLAN subnets
Post by: frudda on June 12, 2024, 06:41:03 PM
The Open VPN server runs internally on Opnsense box.
I saw some people talk about creating a bridge with OPNsense interface and vlan, is this the way to go?
Title: Re: OpenVPN will not route VLAN subnets
Post by: frudda on June 13, 2024, 04:35:20 PM
Hello.

I resolved this issue by setting correct gateway in DHCP mode of the VLANS in OPNsense
But this wasnt the brainer, still could not access the VLANS or the switch IP

I changed the aruba switch static ip on vlan1 to be in the same subnet range as OPENsense LAN
no ip dhcp on the vlan 1 first.

I had to set a route 0.0.0.0 in the aruba switch to OPNsense LAN gateway.

Now i can access all VLANS and none VLANS through OpenVPN client without any problems.
I can also access the switch from webgui and ssh from VPN client