IPSec bulk import?
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..
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.
Thank you. I'm gonna try it ;)
@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…