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

    • Here is the new Surface Laptop Ultra wallpaper in high resolution by Taras Buria Earlier this week, Microsoft announced the Surface Laptop Ultra, its brand-new high-end laptop powered by NVIDIA's brand-new RTX Spark processor. As usual, Microsoft gives each new device a unique wallpaper, and the Surface Laptop Ultra is no exception. While the device is not publicly available yet, somebody has already extracted its wallpaper, giving everyone a chance to get a piece of the upcoming laptop in its full-resolution glory. The Surface Laptop Ultra has a very dark, abstract wallpaper that resembles the stock wallpapers in Windows Server, albeit with much less color. Having this dark, grim wallpaper highlights the laptop's mini-LED display and its ability to cut off parts of the screen's backlight to achieve OLED-like black levels. However, if you also like light wallpapers, we made a white version by simply inverting its colors. You can download both wallpapers below (click the image, right-click it, and select "Save as"): The Surface Laptop Ultra is expected to launch later this year. Microsoft is not revealing full details yet, including the price. However, Microsoft confirmed up to 1 petaflop of AI performance and RTX 5070-level of GPU performance. The heart of the laptop has up to 20 CPU cores and 6,144 GPU cores. Additionally, Microsoft and NVIDIA boast high CPU efficiency for all-day battery life. As for the display, it is a 15-inch mini-LED display with a pixel density of 262 ppi and a maximum brightness of 2,000 nits. Of course, not everyone needs this amount of power, and certainly not everyone can afford it. For those who need a more affordable device, Microsoft is also preparing the next-generation Surface Pro powered by the Snapdragon X2 Elite processor. Weeks ahead of the announcement, details about this computer were leaked by a retailer. Do you like the Surface Laptop Ultra's stock wallpaper? Share your thoughts in the comments. Image provided by @nextgenos2026 on X
    • From all that I've read on the subject--not that much, really--it looks to me like companies and parents are trying to protect themselves from children using their parents accounts to run up giant bills, sometimes in the thousands of dollars, and the first the parents know about it is when they get sued... Internet companies have been sued for tailoring their ads to children, which is kind of old news. My belief is that policing starts at home with the parents, and the reason that so many laws that can't be enforced are being passed is because parents are eschewing their responsibilities, claiming not enough time, not enough knowledge, etc. Giving kids cell phones sans Internet connectivity is a good place to start--confine Internet activity to PCs in the home that the parents regulate. My kids are all grown and gone, I'm happy to say... They have their own kids to worry about.
    • ChartNet’s 1.7 million synthetic samples let compact open-source models outperform GPT-4o on every chart task   A team from MIT and the MIT-IBM Computing Research Lab has built a training dataset that solves one of the most persistent gaps in enterprise AI: the inability of even the best commercial models to reliably read a chart...... https://www.techtimes.com/articles/317752/20260604/ai-chart-understanding-breakthrough-mit-ibm-dataset-lets-small-models-beat-gpt-4o.htm  
    • BTW DXVK is also available on Windows and offers similar benefits like on Linux when it comes to performance, at least in some titles. The Raceroom racing sim for example even offers DXVK as one of its officially supported options and it can achieve ridiculous improvements in certain situations, like quite literally doubling (or more) the framerates
  • Recent Achievements

    • One Month Later
      nothanks earned a badge
      One Month Later
    • One Month Later
      B2Proxy earned a badge
      One Month Later
    • One Year In
      MadMung0 earned a badge
      One Year In
    • Week One Done
      jefred earned a badge
      Week One Done
    • Apprentice
      JoeyNeo went up a rank
      Apprentice
  • Popular Contributors

    1. 1
      +primortal
      476
    2. 2
      PsYcHoKiLLa
      232
    3. 3
      Skyfrog
      79
    4. 4
      FloatingFatMan
      68
    5. 5
      Michael Scrip
      58
  • Tell a friend

    Love Neowin? Tell a friend!