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

    IPSec bulk import?

    Scheduled Pinned Locked Moved IPsec
    5 Posts 3 Posters 1.7k 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.
    • C
      c0rt3x
      last edited by

      Hi there,
      i have a problem on ipsec sections.
      i have 500 pcs ipsec entries. But i dont want to enter them one by one at the ipsec page.
      I want to bulk import this 500 ipsec entries.
      How i can bulk import ipsec phase1 and phase2 entries?

      Thanx for all..

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

        There isn't a way to do that in the GUI, but if you add one, then backup the config.xml, you can probably then write a little php/perl/python/ruby/lua/whatever code to translate your file on p1/p2 info into the proper xml format which you can then splice into the main config.xml, and then restore.

        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
        • C
          c0rt3x
          last edited by

          Thank you.  I'm gonna try it ;)

          1 Reply Last reply Reply Quote 0
          • M
            mrpsycho
            last edited by

            @jimp, is there any API or php function to add p2 records?

            instead of restoring every time the whole config it would be great to reload only IPSec rules…

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

              No

              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.