OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: mekano on October 23, 2023, 02:28:41 AM

Title: Route between vlan not working correctly
Post by: mekano on October 23, 2023, 02:28:41 AM
Hi, i have a couple of vlan in my opensense config.

i have created rules to allow acces to devices between vlan but they are not working. I think i know why but don't know how to solve it.

vlan 10 192.168.10.0/24 ip of the interfcace 192.168.10.1
vlan 20 192.168.20.0/24 ip of the interface 192.168.20.1

When i do a tracert from the client on vlan 1 to a client on vlan 2 i got this

tracert -d 192.168.20.10
1 ms 1ms 1ms 192.168.10.1
2ms 2ms 20ms Gateway of my wan
* * *
* * *
* * *
* * *


So it never to through the client on vlan 20.

Thank you for your help
Title: Re: Route between vlan not working correctly
Post by: Patrick M. Hausen on October 23, 2023, 04:08:15 AM
Remove the gateway setting from your "allow" rules.
Title: Re: Route between vlan not working correctly
Post by: Seimus on October 23, 2023, 12:00:58 PM
Quote from: mekano on October 23, 2023, 02:28:41 AM


vlan 10 192.168.10.0/24 ip of the interfcace 192.168.10.1
vlan 20 192.168.20.0/24 ip of the interface 192.168.20.1


Do what Patrick said.

For InterVLAN routing within your VLAN domains you dont need RPLs (also you have them wrong). Currently you are forcing the traffic on IN do go back from where it came.

Regards,
S.
Title: Re: Route between vlan not working correctly
Post by: mekano on October 24, 2023, 10:23:25 PM
yes thank you,

it's working.