OpenVPN Traffic Not Routing Properly

I’m trying to configure a client to server openvpn tunnel between pfsense (client) and unifi dream machine (server). I get a successful connection between the two networks, but cannot route traffic through the tunnel unless I configure it using system routing. I have a firewall rule that should route my cell phone’s (192.168.100.58) traffic through the tunnel, but that is not happening. I know the tunnel works because if I add a static route for 1.1.1.1, I can see it traversing the tunnel in States. How can I get all of my cell phone’s traffic to traverse the tunnel?

Static route to 1.1.1.1 through tunnel:

Traffic from cell phone 1.1.1.1

1 Like

you seem to want routing based on source address, not based on destination address. It seems you tried to use policy routing and to me the rule you use looks OK (according to Routing Internet Traffic Through A Site-To-Site OpenVPN Tunnel | pfSense Documentation). Since I have never played around with policy routing I am not of help with that. Maybe this page helps: Assigning OpenVPN Interfaces | pfSense Documentation

In the meanwhile, I know what works for me: You could have a separate VLAN that can only all traffic destined for the Internet through your OVPN gateway. You would then need to put all machines/devices into that VLAN that you want to use the tunnel.