-
Notifications
You must be signed in to change notification settings - Fork 18
WireGuard configs #591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
WireGuard configs #591
Conversation
Add generation and storing of per-user sets of WireGuard configs. User can generate needed number of configurations for every device. To generate keys, 'wg' binary should be installed and accessible by PATH at the webserver. Task: #589
4efceac to
dbfe569
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #591 +/- ##
==========================================
- Coverage 57.94% 56.91% -1.03%
==========================================
Files 65 67 +2
Lines 1410 1497 +87
==========================================
+ Hits 817 852 +35
- Misses 593 645 +52 ☔ View full report in Codecov by Sentry. |
|
@jekhor без вельмі старога гема ipaddress не абйсціся? Можа быць праз рэгэксп? Проста апошняе абнаўленне гема 2016 год ;( |
|
А што там абнаўляць? Крытычныя issue на гітхабе ёсць? Можа, ён проста
дасягнуў дасканаласці?
Можна і на каленке зрабіць, але ж навошта?
сб, 14 сту 2023, 18:33 карыстальнік Yahor ***@***.***>
напісаў:
… @jekhor <https://github.com/jekhor> без вельмі старога гема ipaddress не
абйсціся? Можа быць праз рэгэксп? Проста апошняе абнаўленне гема 2016 год ;(
—
Reply to this email directly, view it on GitHub
<#591 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4VWYZPOZQGY6YKGIXDHLWSLIPJANCNFSM6AAAAAATKZCNNE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
ну можна і так, галоўане пры абнаўленнях не было праблем з-за старога гема. |
| Setting.where(key: 'wgFirstClientAddress').delete_all | ||
| Setting.where(key: 'wgLastClientAddress').delete_all | ||
| Setting.where(key: 'wgNetmask').delete_all | ||
| Setting.where(key: 'wgAllowedIPs').delete_all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jekhor я бы вынес асобным таскам для дадзеных у rake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мм, а як тады міграцыю праходзіць? Проста разава сгенераваць дадзеныя потым, пасля міграцыі?
|
@jekhor а як пракаціць міграцыю? No such file or directory - wg Думаю варта міграцыю раздзяліць з генерацыяй дадзеных каб такое не ўзнікала. rake task? |
|
тэстам таксама не добра https://app.travis-ci.com/github/minsk-hackerspace/hackerspace.by/jobs/592117369 |
|
Добрае пытанне. Прапановы? wg выкарыстоўваецца для генеравання ключоў.
нд, 12 сак 2023, 14:31 карыстальнік Yahor ***@***.***>
напісаў:
… тэстам таксама не добра
https://app.travis-ci.com/github/minsk-hackerspace/hackerspace.by/jobs/592117369
—
Reply to this email directly, view it on GitHub
<#591 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4VW7TFXV3XL6N3YILTKDW3W625ANCNFSM6AAAAAATKZCNNE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
Добра, можна rake паспрабаваць |
|
@jekhor як будзе час, пафіксі канфлікты, каліалска. |
Add generation of WireGuard configurations for every user. User can download config to import it into WG client. The VPN server can retrieve all peers configurations for active users.