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

    • Tor Browser 15.0.15 by Razvan Serea Protect your privacy. Defend yourself against network surveillance and traffic analysis. Tor is a network of virtual tunnels that allows people and groups to improve their privacy and security on the Internet. The Tor software protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody from watching your Internet connection and learning what sites you visit, it prevents the sites you visit from learning your physical location, and it lets you access sites which are blocked. The Tor Browser Bundle lets you use Tor on Windows, Mac OS X, or Linux without needing to install any software. It can run off a USB flash drive, comes with a pre-configured web browser to protect your anonymity, and is self-contained. Tor Browser 15.0.15 changelog: All Platforms Updated NoScript to 13.6.20.1984 Updated Tor to 0.4.9.9 Bug tor-browser#42436: Allow for multiple configured (front, reflector) domain fronting pairs in Moat module Windows + macOS + Linux Bug tor-browser#44997: Captcha doesn't work in TB desktop Linux Bug tor-browser#44886: Backport tor-browser#44361: Notify Linux i686 users that they won't receive updates anymore Download: Tor Browser (64-bit) | Tor Browser (32-bit) | 109.0 MB (Open Source) View: Tor Browser Website | Other Operating Systems Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Less disk space means less bandwidth demands which means lower operating costs for service providers... that's where money talks. ... cuz it's not about improving video quality!... that's just marketing spin.
    • And thereby lies the rub. AV1 support is not as wide as paid analysts would have the industry believe. With AV2 around the corner, it's going cause more time backlog in adoption (how many recent purchasers will upgrade yet-again within the next 6-12 months? most would rather stay pat for another 1+ years before even thinking about upgrading their setups).
    • Microsoft OneDrive is getting a simple yet much needed feature by Sayan Sen Microsoft has been steadily expanding OneDrive’s file management capabilities over the years, including for shared content and shortcuts, although it has had its flaws, too. The cloud storage platform introduced support for folder shortcuts several years ago, allowing users to pin frequently accessed shared folders from OneDrive, SharePoint, and Teams. Now, Microsoft is refining that experience further with a new way to organize those shortcuts as revealed in a recent Microsoft 365 roadmap addition. Previously, shortcuts added through the “Add shortcut to My files” option would appear alongside all other files and folders in the root of a user's OneDrive. And although it's meant to be useful, this approach could also create clutter along the way, especially for heavy users who may have to work with large numbers of shared folders across multiple projects and teams on their systems. This is where Microsoft’s latest feature comes in, as it is looking to address this inconvenience by giving users the option to place new shortcuts inside a dedicated “Shortcuts” folder instead. The feature is designed to keep shortcut links organized into a single location instead of scattering throughout the main OneDrive directory. Hence, the idea is to make navigation and usability easier and simpler. The first time a user chooses this option, OneDrive will automatically create the folder, and to help make it stand out from the other folders, the Shortcuts folder will have a distinct visual identity featuring a unique color and a building-style icon. That being said, the new Shortcuts will behave just like any other folder in OneDrive, and as such, users will be able to move it to a different location, rename it, share it with others, or remove it entirely if they prefer a different structure. You can view the entry on the Microsoft 365 roadmap website here. Currently, the feature is in the "in development" phase, but the tech giant expects the rollout to start next month (July 2026). Do keep in mind, though, that new feature rollouts often get delayed.
  • Recent Achievements

    • 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
    • Week One Done
      oliviaexpo earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      482
    2. 2
      PsYcHoKiLLa
      227
    3. 3
      Skyfrog
      71
    4. 4
      FloatingFatMan
      60
    5. 5
      Nick H.
      54
  • Tell a friend

    Love Neowin? Tell a friend!