Bug #14200
openWireGuard reply-to without NAT
0%
Description
I have discovered that the WireGuard package requires the interface to have the gateway set for the reply-to rules to function as expected. However, this also creates an undesired auto NAT rules that need to be manually disabled in order to use the reply-to rules effectively.
I have posted all the detail and the road for my discovery on the forums and a great amount of detail along with it:
https://forum.netgate.com/topic/178908/wan-to-wireguard-to-lan-reply-to-bug
- Could add verbiage on the interface or package GUI to indicate that these steps are required for true reply-to packets to function.
- Add some sort of check box to prevent the auto added NAT rules for WireGuard interfaces, or, a check box that adds reply-to rules without the need for gateway to be filled.
- Or, if possible, change the WireGuard package in such a way that it treats the WireGuard interface with reply-to rules with or without the gateway being set in the interface.
To give you more of an idea of why I had more trouble with this particular part than anything previous is that I was migrating away from OpenVPN to WireGuard. Where OpenVPN functioned as desired without the gateway being set, I did not think to read the interface documentation mostly because the verbiage only mentions the need for it being set for internet access type scenarios, of which, I overlooked thinking it was unnecessary. On my testing environment, it was not until I started changing what I thought were unnecessary checkbox and dropdowns that I discovered the gateway was needed, I then started to read the documentation for it, which lead me to my final conclusion.
Appreciate your time!
Thank you!
Updated by Jens Maul about 1 year ago
Confirmed for 2.7.0 and described here:
https://forum.netgate.com/topic/183278/port-forwarding-through-wg-tunnel-missing-reply-to
Appreciate your time too!