Connecting wg profiles based on geo location

13 views
Skip to first unread message

Sai Subramanian

unread,
Nov 11, 2022, 1:16:39 PM11/11/22
to open...@googlegroups.com
Hi team, 

Is it possible to assign wg profiles based of the location of the Openwrt router? 

Like for example I am UK and my router to a profile in a UK server and now I travel to India, is there a way using OpenWISP where I can make the router automatically connect to a server in India? 

Regards 
Sai 

Federico Capoano

unread,
Nov 12, 2022, 9:49:07 AM11/12/22
to open...@googlegroups.com
In the current development version of the controller module there is a feature which resembles what you describe: Group Templates.
The difference is that groups are meant to control configuration and management details of devices which are not necessarily related to a location, but you can have one group for each location if you want.
You're already the second person that mentions templates based on locations so one thing we could do in the near future is to specify a location in a group, so that any device assigned to a group automatically gets the location as well.

With the current version (OpenWISP 22.05) the most convenient thing you can do is to create one Template for each location and assign it manually after device registration: since you will have to assign this device to a location anyway, in this step you also assign it the template of the location.

Best regards
Federico Capoano
OpenWISP OÜ
Harjumaa, Tallinn, Sepapaja tn 6, 15551
VAT: EE101989729


--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAJ-rO8aFpMTozYgn1TmSHC7dKei1d4Yk%3DqEwG9tO84MBhjd4Lw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages