Routing over openvpn tunnel not working
-
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?
config images here:
https://imgur.com/a/2YmxLYn
-
@testing123 This scenario is quite well documented, here: https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-s2s-route-internet-traffic.html
In particular, check out the outbound rules for the phone.Your policy rule looks good, and should take care of all traffic from that device.
Are you sure that the phone actually has that IP? Phones these days randomize their MAC unless you turn that off in the phone. So it may have a different IP the next time it connects...Then at the UDM side you must make sure the rules allow for internet access, and back. Assuming that is what you want.. basically making your phone appear as if it was located at your parents place?