OPNsense Forum

English Forums => Virtual private networks => Topic started by: Evert on February 28, 2024, 10:23:23 AM

Title: Why does source = IPsec net not work in my case?
Post by: Evert on February 28, 2024, 10:23:23 AM
Hi all,

I've been configuring an IPsec connection between us, and one of our customers. IPsec itself was working pretty soon (both phase 1 & phase 2), but we had the hardest time pushing bits and bytes through that tunnel...

After trying many things I ended up going to Firewall: Rules: IPsec and changing the source of the rules, which was set to 'IPsec net', to '*'. As soon as I did this, the customer was able to connect to the resources.

We have various other subnets, including 2 Wireguard, where I've set the source to '[subnet name] net' in firewall rules, and this works flawlessly.

Why doesn't this work for our IPsec setup? Did I misconfigure something somewhere, or is this a bug... ahem... feature?  8)
Title: Re: Why does source = IPsec net not work in my case?
Post by: Patrick M. Hausen on February 28, 2024, 10:59:05 AM
"IPsec net" is the network directly connected to the tunnel interface, not the remote networks of your customer.
Title: Re: Why does source = IPsec net not work in my case?
Post by: Evert on February 28, 2024, 12:05:07 PM
Ah, ok.

What if I replace '*' with an alias containing the networks of our customer? Would that be a functioning compromise?
Title: Re: Why does source = IPsec net not work in my case?
Post by: Patrick M. Hausen on February 28, 2024, 12:40:57 PM
Yes, most probably.
Title: Re: Why does source = IPsec net not work in my case?
Post by: Evert on March 05, 2024, 08:48:24 AM
Before I make the same mistake twice... It would work with Wireguard, right? That's different in this aspect from IPsec?