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

    • This is needed! Good to see them working on it. My solution up until now at work is to hide all MY folders, showing only the shortcuts, but linking my personal folders to the corresponding Libraries. Having this exposed in the Navigation pane of File Explorer means that I have easy nested access to my stuff, as well as all the shortcuts under the OneDrive folder when needed, often open as I only have about 10 or so linked sources.
    • WinToHDD 7.0.2.2 by Razvan Serea WinToHDD is a handy and useful software which allows you to install or reinstall Windows (Vista/2008 or later) without using a CD/DVD/USB drive. With this All-in-One Microsoft Windows deployment tool, you can easily reinstall Windows, install Windows onto disks other than the one where your Windows is installed, or clone existing Windows installation to other disk. Furthermore, you can use it to create a Windows installation USB containing all your Windows installation ISO files, then you can install Windows (Vista/2008 or later) from the same USB drive on both BIOS and UEFI computers. WinToHDD features: Install/reinstall Windows from ISO, WIM, ESD without using CD/DVD/USB.Improved Clone Windows to another disk without reinstalling Windows, apps.Improved Easily bypass Windows 11 system requirements (TPM 2.0, RAM, internet connection, etc).Improved Encrypt Windows partition with BitLocker when installing or cloning. Install any version of Windows 11/10/8/7/Vista, Server 2008 or later (64 & 32 bits) from same USB drive on both BIOS and UEFI computers. Fully compatible with GPT and UEFI. Note: WinToHDD 7.0.2.2 changelog is not yet available. Download: WinToHDD 7.0.2.2 | 36.6 MB (Freemium) Links: Home Page | Free vs Pro Comparison | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Hello, Version 19 of ESET's consumer offerings are 64-bit only. The 32-bit installers are for Version 18, which were announced in this Neowin article. In addition to ESET NOD32 Antivirus, ESET Internet Security, ESET Smart Security Premium, and ESET Security Ultimate, both ESET Safe Server and ESET Small Business Security v19.1.14.0 have been released as well. Direct download links: ESET Safe Server (x64) | ESET Safe Server (ARM64) ESET Small Business Security (x64) | ESET Small Business Security (ARM64) Regards, Aryeh Goretsky
    • 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
  • Recent Achievements

    • Very Popular
      s0nic69 earned a badge
      Very Popular
    • 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
  • Popular Contributors

    1. 1
      +primortal
      472
    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!