So that the machines on the LAN network at site 1 (Brussels) can communicate with the machines at the other physical site via the VPN tunnel, you must create a network bridge between the LAN network and the OpenVPN server interface.
To do this, go to: Interfaces -> Assignments.
In the "Bridges" tab, click: Add.
Select the network interfaces "LAN" and "OPENVPN_L2" for the "Member Interfaces" parameter and specify "OPENVPN_L2_BRIDGE" as the description (for example).
Then click Save.
Your network bridge has been created.
So that the future OpenVPN client can connect to your OpenVPN server, you need to add a rule in the firewall.
To do this, go to: Firewall -> Rules.
In the "WAN" tab, click Add.
Warning : if you see the "RFC 1918 networks" rule appear in the "WAN" tab and pfSense uses a private (local) IP address for its WAN interface, you will first need to deactivate the "Block private networks and loopback addresses" at the bottom of the "Interfaces -> WAN" page.
Configure this firewall rule like this:
Then, click Save.
Click: Apply Changes.
External access to your OpenVPN server is allowed in the pfSense firewall.
For network traffic to pass through the OpenVPN tunnel, you need to go to the "OPENVPN_L2" tab (which corresponds to the "OPTx" logical interface previously created for the OpenVPN server's "ovpns1" virtual interface) and click :Add.
Allow all protocols for the "OPENVPN L2" interface.
The source and destination don't matter, as it only concerns what passes through the OpenVPN tunnel.
For the description, indicate "Allow all traffic through the OpenVPN L2 tunnel".
Then click Save.
Click: Apply Changes.
All network traffic is allowed in the OpenVPN tunnel for your OpenVPN server configured in "tap" mode (layer 2).
Also allow all network traffic for all OpenVPN tunnels (globally) by creating the same rule in the "OpenVPN" tab of the firewall.
This time, the description is "Allow all traffic through the OpenVPN tunnel".
Firewall 6/25/2025
Firewall 7/25/2025
Firewall 8/29/2025
Firewall 7/16/2025
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
No comment