@crazily9892 said in OpenVPN Layer 2 with VLANs - How to Set Up?:
My pfSense lets me put a VLAN tag on my L2 VPN
Thank you.
I tried to set the VLANs on the OpenVPN tap interface:
Screenshot 2025-03-05 at 09.59.44.png
And then I added a bridge from the newly created VLAN to the existing interface which is tagged on the switch:
Screenshot 2025-03-05 at 09.59.48.png
Screenshot 2025-03-05 at 10.00.33.png
The CLOUD_LAN interface has a CARP Virtual IP Address:
Screenshot 2025-03-05 at 10.05.14.png
On the other end, I have a vmbr interface:
24: tap0.150@tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr150 state UP group default qlen 1000
link/ether e6:43:98:64:45:36 brd ff:ff:ff:ff:ff:ff
25: vmbr150: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e6:43:98:64:45:36 brd ff:ff:ff:ff:ff:ff
inet 192.168.150.1/24 scope global vmbr150
valid_lft forever preferred_lft forever
inet6 fe80::e443:98ff:fe64:4536/64 scope link
valid_lft forever preferred_lft forever
Which is bridged to the tap0 OpenVPN interface:
root@node1:~# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 8000.107c614c4e64 no enp5s0
vmbr150 8000.e64398644536 no tap0.150
Anyway, if I try to ping the pfSense CLOUD_LAN IP address from the OpenVPN client, it does not work:
root@node1:~# ping 192.168.150.254
PING 192.168.150.254 (192.168.150.254) 56(84) bytes of data.
From 192.168.150.1 icmp_seq=1 Destination Host Unreachable
From 192.168.150.1 icmp_seq=2 Destination Host Unreachable
From 192.168.150.1 icmp_seq=3 Destination Host Unreachable
And tcpdump only see the ARP request:
root@node1:~# tcpdump -i tap0.150
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on tap0.150, link-type EN10MB (Ethernet), snapshot length 262144 bytes
10:03:23.636095 ARP, Request who-has 192.168.150.254 tell 192.168.150.1, length 28
10:03:24.659991 ARP, Request who-has 192.168.150.254 tell 192.168.150.1, length 28
10:03:25.683845 ARP, Request who-has 192.168.150.254 tell 192.168.150.1, length 28
10:03:26.708073 ARP, Request who-has 192.168.150.254 tell 192.168.150.1, length 28
This let me think that the problem is on the client, because packages are not exiting from it.
Do you have any idea?
Thank you!