OpenVPN will not route VLAN subnets

Started by frudda, June 12, 2024, 05:08:25 PM

Previous topic - Next topic
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? :'(




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?

June 13, 2024, 04:35:20 PM #2 Last Edit: June 13, 2024, 04:58:42 PM by frudda
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