Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Warning: Invalid argument supplied for foreach() in /etc/inc/vpn.inc on line 171

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dmenezes
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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?

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • D
          dmenezes
          last edited by

          You are right!

          After set up the Phase 2, I do not get the warning anymore.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            ok, I committed a fix to skip that part of the code if there are no p2's.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.