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

    • OK? I am still good with my older iPad and more interested in upgrading my newer PC and laptop. I can still watch videos and read ebooks just fine on my tablet. There doesn't seem to be much to be gained from buying a new tablet beyond it's shinny. Maybe the cracked displays are piling up so people are looking to upgrade? LOL
    • iPhone 17 series rumored to be unveiled on September 9 by Hamid Ganji Every September holds special significance for Apple enthusiasts: it's when the company unveils its latest iPhone models. As the launch of the iPhone 17 series draws closer, speculation is mounting about the exact date Apple will unveil the new devices. The German website iPhone-Ticker might have the answer. The outlet claims internal information from German mobile phone providers shows that Apple will pull back the curtain on the iPhone 17 series on Tuesday, September 9. This means Apple's event for the latest iPhones is 35 days away. The September 9 timeframe for unveiling the iPhone 17 series actually aligns with last year's release date for the iPhone 16 series. For comparison, the iPhone 15 models were released on September 12, and the iPhone 14 debuted on September 7. Apple never releases phones on September 11, and the reason is quite apparent. Apple's release and preorder pattern for the iPhone 17 series also won't be different this year. After debuting the iPhones on Tuesday, September 9, preorders begin on Friday, September 12. Deliveries also start on September 19. The US, China, Europe, and Japan are the most important markets for Apple, so customers in these areas can expect to get their hands on the iPhone 17 series sooner than anybody else. But the iPhone 17 series might not debut alone at the upcoming September event. Apple Watch Series 11, the new Apple Watch Ultra, and the next-generation AirPods Pro are other products we expect to make a debut alongside the iPhone 17 models. All the previous rumors surrounding the iPhone 17 series converge on one key point: a significantly redesigned back, featuring changes such as a repositioned camera module and a relocated Apple logo. An alleged iPhone 17 Pro unit was recently spotted in public, seemingly confirming the rumors about its redesigned back panel. Apple is also rumored to replace the Plus variant in the iPhone 17 series with a so-called Air or Slim model.
    • A new detection method reveals a potentially habitable super-Earth. The breakthrough boosts the search for life-supporting planets. “Are we alone?” This enduring question has fascinated humanity for generations. The discovery in 1995 of the first exoplanet orbiting a star similar to our Sun marked a pivotal moment in addressing that mystery. Since then, exoplanet research has become a central focus of modern astronomy, offering critical insights into how planets form, evolve, and possibly support life. A major objective in this field is finding Earth-like life, which hinges on locating planets with Earth-like conditions in the habitable zones of Sun-like stars. In their search for Earth-like worlds, an international team led by the Yunnan Observatories of the Chinese Academy of Sciences (CAS), in collaboration with other institutions, made a significant breakthrough using a method called Transit Timing Variation (TTV). https://scitechdaily.com/earth-2-0-breakthrough-discovery-reveals-potentially-habitable-super-earth/
    • >The latest tvOS 26 even hints that the new Apple TV could come with a built-in camera. Sigh... No one is asking for that.
  • Recent Achievements

    • One Month Later
      Celilo earned a badge
      One Month Later
    • Dedicated
      Joey Solo earned a badge
      Dedicated
    • One Year In
      BergerMeister earned a badge
      One Year In
    • One Month Later
      ENAQUE earned a badge
      One Month Later
    • Week One Done
      ENAQUE earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      769
    2. 2
      ATLien_0
      201
    3. 3
      +FloatingFatMan
      165
    4. 4
      wakjak
      123
    5. 5
      Xenon
      117
  • Tell a friend

    Love Neowin? Tell a friend!