Recommended Posts

v2.7.4

  • Fix: it crashed when clicking on update config.
  • Fix: It was not properly generating the code on the right-hand side.

 

V2.7.3

  • Fixed a crash, that would occur if you left the address box blank and clicked generate.

V2.7.2

  • Added Post-Up and Post-Down Rule boxes.
  • It saves the Subnet Prefix Lenth to the JSON file, if no number is specified it defaults to 24

V2.7

  • Removed the JSON box. That was unnecessary.
  • Moved the Generated Config to the right side of the application
  • Removed the open in new window button, because you can actually see the entire config
  • Added a "Copy Generated config" button to copy it straight to the clipboard.

V2.6

  • It now handles whatever IP address you give it properly
  • Added DNS
  • Added Keepalive
  • Everything is now in a single APP
  • It also generates QR codes
  • You can also have it open the generated config in a new window

Bugs

  • When launching the app by double-clicking the .py file and generating a QR code the app may throw a permission error and close. if you open a command prompt and launch the app from there "python (filename).py" .. the QR code generation works just fine.

---------------------------

I had a new itch to scratch, so I used ChatGPT to help me create something. It works wonderfully for me so I thought I'd share it with everyone else.

Because I use Wireguard and because I don't set up different peers very often, when I do it takes me a while because I copy the info out of a previous peer and just fill in the info about the new peer and make sure all the info is correct for the new one.

So I thought I would create an app that helped automate the process and it does. What used to take me 5 mins now takes 10 seconds.

The App is now just 1 app, not 2 separate apps.

When opening the app for the first time I recommend first clicking "Save" and saving the JSON file somewhere. Then Click "Add Name" to give your new location a name. Then fill out all the information. Then once all the info is filled out click "Update info" and then Save. Now you can click "Generate Config". You don't have to save to be able to generate, but if you do change something you do have to click "Update info" first.

For that information, I just mashed the keyboard

image.thumb.png.19016076f131d6a81bb1339dfefc538d.png

 

image.thumb.png.68042fa4931b1bf20ec92fcc09b95a2f.png

 

Dropbox Download
Contains both precompiled exe's and source code

https://www.dropbox.com/scl/fo/dm9e8sdgawrmjrgr5kg7t/AGnr1MB4CiUuhiFT2-lECRM?rlkey=ndxrdoenlej2tfi8xn6bkw47s&st=xyn1v9ks&dl=0

if you install pyinstaller you can convert this python script to an exe file.

The folder for PYinstall is usually

C:\Users\(your username)\appdata\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts

However, you may have to change your python version in the path.

Then open Powershell and cd to that folder.

then type in the following command

Suppose you want to create an exe file with an icon. Put the png in that same folder and use this command.

.\pyinstaller --onefile -w --icon=(Name of your image).png '(name of your file).py'

If you do not want to use an image then use this command.

.\pyinstaller --onefile -w '(your file name).py'

You'll find the EXE in the dist folder located in the path above.

I will not be providing pre-compiled exe's as I most people wouldn't feel comfortable entering their wire guard information into some random exe file they downloaded online.

To run the .py you do need to pip install 2 things

pip install qrcode[pil]
pip install PyQt5

 

 

  • Like 3
Link to comment
https://www.neowin.net/forum/topic/1437271-wireguard-config-generator/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I can name 10x that on why not to switch.... It's funny outlook/office are going towards web app wrappers, and then MS is now preaching native apps again.... ugh can we just pick a lane and stay in it
    • Absolutely NOBODY has suggested such a conclusion. I am affirming the sober reality check that AV2's overall market adoption will take longer than AV1's adoption rate -- which, by the way, is the whole point of the article! While PCI-SIG is productive (on paper), other WGs have created all sorts of confusing progress plans that consumers have tuned-out of their improvements... HTML/W3C, USB, HDMI, BT, WIFI (ieee802.11) as a few other groups where spec naming conventions, split progress paths, overlapping ambitions... I'm not critiquing the AV specs group; I'm simply affirming that adoption for AV2 faces headwinds beyond the macroeconomics of it all.
    • Segra 1.5.2 by Razvan Serea Segra is a free, open-source OBS-powered game recorder offering fast gameplay capture, instant clips, AI highlights, deep game integration, and seamless uploads—perfect for gamers, streamers, and content creators. Lightweight, fast, zero bloat. Segra key features: Automatic Game Recording: Begin capturing gameplay the moment your game launches, with zero manual setup. Instant Clipping: Save important moments instantly using a customizable hotkey—perfect for highlights, montages, or quick shares. Segra AI Highlights: Let Segra automatically detect kills, assists, deaths, and key events to generate polished highlight reels without manual editing. Gameplay Uploads: Upload recordings and clips directly to Segra.tv for fast sharing and cloud access. Deep Game Integration: Enjoy advanced game-data tracking across hundreds of supported titles, enabling smart highlight generation and stat-informed clipping. High-Performance Capture: Record up to 4K at 144 FPS using OBS-powered technology with minimal performance impact, supporting NVENC, AMD VCE, and custom quality controls. Segra Editor: Edit recordings easily with timeline controls, segment management, and event-based navigation to build the perfect clip. Customization Options: Adjust hotkeys, output formats, storage paths, codecs, capture quality, and performance settings for a tailored recording experience. Segra 1.5.2 changelog: Settings: Added an Airplane Mode that hides account, login, and upload features. Storage: Added a button to migrate videos into the recording path after changing it. Import: Added auto-scroll and a highlight pulse to videos right after importing. Recording: Added graceful handling of low disk space and output failures, finalizing files safely with clear errors. Recording: Added a guard blocking recording when any drive exceeds 99% full. OBS: Removed the download timeout to support users with slow internet. Clips: Fixed an error modal incorrectly appearing when clip creation was cancelled. Settings: Fixed the content folder path not refreshing in the UI after changes. Updates: Improved error handling for multiple simultaneous update checks. Stability: Fixed a WebSocket reconnect loop that ran while the window was backgrounded. Dependencies: Updated project dependencies. Maintenance: Removed dead code, reduced duplication, and fixed several latent bugs. Download: Segra 1.5.2 | 73.1 MB (Open Source) View: Segra Homepage | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Collaborator
      Asgardi earned a badge
      Collaborator
    • Conversation Starter
      mobandz earned a badge
      Conversation Starter
    • Apprentice
      fernan99 went up a rank
      Apprentice
    • One Month Later
      nothanks earned a badge
      One Month Later
    • One Month Later
      B2Proxy earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      471
    2. 2
      PsYcHoKiLLa
      246
    3. 3
      Skyfrog
      79
    4. 4
      FloatingFatMan
      69
    5. 5
      Michael Scrip
      60
  • Tell a friend

    Love Neowin? Tell a friend!