Warning: Invalid argument supplied for foreach() in /etc/inc/vpn.inc on line 171
-
When I save my configuration from VPN: IPsec Tunnels
I'm getting this warning "Invalid argument supplied for foreach() in /etc/inc/vpn.inc on line 171"
anyway the configuration applies normal!
Version: 2.0.1-RELEASE (amd64)
-
Only way I could see that happening is if you had no Phase 2 entries defined anywhere. Was that the case when you saw this message? Do you still see it even when you have your VPN tunnels configured?
-
You are right!
After set up the Phase 2, I do not get the warning anymore.
Thanks!
-
ok, I committed a fix to skip that part of the code if there are no p2's.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.