Guide pour configurer PF-Sense
Guide pour configurer PF-Sense
You're configuring PFSense on a used server with specific networking goals. You need two LANs and separate connections for WAN and VPN, using OPT1 as your direct interface. The gateway is set to 192.168.2.1, but you're having trouble setting the default gateway for OPT1. Let me know if you'd like a step-by-step guide!
Here’s a revised version of your message:
So, currently I’m seeing the router handle 192.168.2.1 with a full subnet, and that traffic reaches my computer directly. There’s also another interface running OpenVPN, using OPT1 which is assigned 192.168.3.1/24. My computer isn’t able to access the internet beyond that single connection. The IP settings show it’s being served from 192.168.3.2. I attempted to bridge OPT1 to the VPN interface, but it didn’t resolve the issue. I also tried adding a firewall rule on OPT1 to route packets through the VPN interface, though it didn’t help. When I edited the LAN firewall settings to send traffic over the VPN interface, my IP was marked as unprotected. I’m not sure how that’s possible. Any advice would be greatly appreciated.
I have configured the main LAN to route through the VPN as planned. Since both the AP and switch are connected to the LAN port, the VPN should pass through that point. The only requirement is to bypass the VPN when needed—specifically for my desktop. I’m trying to get unfiltered internet access on OPT1, but it still doesn’t work despite the correct IP being assigned. I’ve checked all firewall rules and haven’t been able to establish a stable connection over OPT1.
Are you relying on automatic or manual NAT configurations? In Firewall, NAT, Outbound you’ll need rules for the LANs you wish to permit to connect via the VPN. You can observe how I’ve enabled multiple LANs to access my 5G connection in the attached image. Within Firewall, Rules, OPT1 when creating an IPv4 rule would take you to Advanced settings and set the gateway to your VPN. An illustration of my US VPN routing is shown in the second photo.
the solution involved resetting the IP and DHCP settings on OPT1, followed by switching to hybrid NAT rules and then reverting to manual rules to rebuild the automatically created ones for OPT 1. I encountered issues with unusually slow response times on pages using OPT1, which improved after adding extra DHCP servers for WAN and configuring the VPN interface accordingly. The NAT rules were clearly the source of the problem. I followed the VPN provider's guidance for the VPN NAT rule but struggled to understand what was wrong with the automatically generated rules after switching to manual settings. Thanks for your assistance.
I began with a hybrid setup and later moved to manual as the configuration became more complex. Having that starting point helps understand their intended appearance.