Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Migrate existing Wireguard road warrior setup to OpnSense?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Migrate existing Wireguard road warrior setup to OpnSense? (Read 2149 times)
EricE
Newbie
Posts: 14
Karma: 0
Migrate existing Wireguard road warrior setup to OpnSense?
«
on:
May 21, 2021, 04:24:18 pm »
I have an existing Wireguard road warrior setup on a raspberry pi, but now that I have upgraded my OpnSense hardware to something more robust I should easily be able to consolidate everything onto OpnSense. I've looked over the documentation and the configuration forms in the GUI, but there doesn't seem to be an easy (or at least obvious) way to transfer over the configuration of an existing Wireguard into OpnSense? It appears to insist on auto generating all the keys and there doesn't appear to be a way to change them later?
I suppose I could configure a road warrior Wireguard, save a firewall backup file then edit it with all my existing keys and finally restore that backup - that would probably work but am I missing something that might be easier?
It feels like with the editing backup path I could easily miss something significant that would make troubleshooting really fun either immediately or even better (ha!) much later.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Migrate existing Wireguard road warrior setup to OpnSense?
«
Reply #1 on:
May 21, 2021, 10:46:20 pm »
If you re-edit the local config after it auto-generates keys the first time, then you can easily replace the keys
If you are looking for a solution to upload multiple configs at once rather than creating them manually, I recall a few weeks ago a topic here on that, and using the API for it
Logged
EricE
Newbie
Posts: 14
Karma: 0
Re: Migrate existing Wireguard road warrior setup to OpnSense?
«
Reply #2 on:
May 21, 2021, 10:49:05 pm »
Aha - so the config *is* in there somewhere, eh? I have seen everything but the path to where they are - can you give met the path?
Is it saved as part of the firewall backup/restore through the GUI or is it something I need to track separately?
Thanks!
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Migrate existing Wireguard road warrior setup to OpnSense?
«
Reply #3 on:
May 21, 2021, 10:57:09 pm »
See
https://forum.opnsense.org/index.php?topic=21930.0
Also docs on the WG API here:
https://docs.opnsense.org/development/api/plugins/wireguard.html
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Migrate existing Wireguard road warrior setup to OpnSense?
«
Reply #4 on:
May 21, 2021, 10:58:26 pm »
But you can also easily edit keys in the GUI AFAIK
Logged
EricE
Newbie
Posts: 14
Karma: 0
Re: Migrate existing Wireguard road warrior setup to OpnSense?
«
Reply #5 on:
June 15, 2021, 03:55:38 pm »
Quote from: Greelan on May 21, 2021, 10:58:26 pm
But you can also easily edit keys in the GUI AFAIK
D'oh! Of course - let it do the initial set up, then just edit to match my existing configuration. How dumb of me - making it harder than it was. Thanks for pointing out the obvious
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
Migrate existing Wireguard road warrior setup to OpnSense?