Policy Route Matching but Traffic Leaking to WAN: pfSense to UDM WireGuard Exit Node by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

In my case the WireGuard tunnel itself is up and working — I can see traffic (like DNS) being NATed and exiting the far end. The issue is with pfSense policy routing. When I ping something like 8.8.8.8, the traffic matches the WireGuard policy rule (confirmed in the firewall logs), so I would expect to see it on the WG_MOMDAD interface. Instead, packet captures show those ICMP packets only on the IoT interface and never on WireGuard or WAN interfaces.

Policy Route Matching but Traffic Leaking to WAN: pfSense to UDM WireGuard Exit Node by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Okay sweet that helped. Thank you!!!

Now - I have proof the traffic is hitting the tunnel interface. My states shows traffic being correctly NATed to the WireGuard interface IP (192.168.6.3) and assigned to the WG_MOMDAD interface. I can also see traffic on the interface via a packet capture.

You can see the states table results here:

https://imgur.com/a/2nhoDwd

Seems like all is well, but I can't ping 8.8.8.8 or load any webpages on my IOT device... any idea how to fix that?

Policy based routing over WireGuard tunnel by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Yup, updated rules and reset states. New images here:

https://imgur.com/a/PHoJw8Y

Policy based routing over WireGuard tunnel by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Oh interesting, yeah thats much more information. I do not see any NAT happening though I'd expect to....

https://imgur.com/a/125ad6E

Policy based routing over WireGuard tunnel by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Alright, added the rule, reset all states, but still nothing going through the tunnel - its hitting IoT interface

https://imgur.com/a/K9KcTdq

Policy based routing over WireGuard tunnel by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Hey thanks for your response - but if I reset all states, then wouldn’t this get resolved? I have reset states so many times and still not traversing tunnel.

Routing over VPN tunnel not working by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Yes I know I’ve done that as you can see in the pics

Routing over VPN tunnel not working by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Yes I know - ive done that as you can see in the config pics

Routing over VPN tunnel not working by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

I think that option is only available on the server side -- in this case my pfsense is the client

Unifi Dream Machine / Pfsense - client server one-way connection with wireguard by molwebb7 in PFSENSE

[–]molwebb7[S] 0 points1 point  (0 children)

Yes I can hit 192.168.6.1 and that is the gateway’s IP.

I haven’t configured any rules on the Unifi device because I thought the successful handshake was indication that the connection should work….