26.7.5 SNAT on OpenVPN client connection

Started by tja, Today at 07:35:23 AM

Previous topic - Next topic
hi,

yesterday we installed a complete new 26.7.5.
this is a remote site which connects to an existing OpenVPN hub.
the client sites are using "Outbound NAT" as we dont want the hub to have to know/route all these remote networks.

we tried to use "Source NAT" to rebuild the functionality under the "new firewall" regime but after much effort we are unable to see translation happening.
as we dug deeper we found that there seems to be no valid nat rule generated even as the UI happily swallowed our input.

if we grep /tmp/rules.debug the nat rule is there but commented out:
# nat on ##opt2## inet from (vtnet0:network) to 10.10.10.0/24 -> opt2ip port 1024:65535 # openvpn XXX SNAT
a test rule that swaps the openvpn interface with wan appears to be valid:
nat on vtnet1 inet from (vtnet0:network) to 1.2.3.4 -> (vtnet1:0) port 1024:65535 # wan XXX TEST
i'm sure we did something wrong and our current understanding of the new firewall regime is lacking.

can someone point me in the right direction ?

tia,tja...

opt2 is an internal identifier not a real interface name (would expect ovpn1 or something)

Maybe there is something wrong still, can you open an issue on github how to reproduce?

https://github.com/opnsense/core
Hardware:
DEC740