Skip to content

Instantly share code, notes, and snippets.

@OnkelDom
OnkelDom / WinGet-NJPC.ps1
Created July 18, 2022 21:59 — forked from foshdafosh/WinGet-NJPC.ps1
Install WinGet PowerShell
#Install WinGet
#Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901
#Which I found here: https://chrislayers.com/2021/08/01/scripting-winget/
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller'
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") {
"Installing winget Dependencies"
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx'
$releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest'
@OnkelDom
OnkelDom / USG_OpenVPN_Radius_Auth.md
Created October 4, 2021 20:10 — forked from dyerseve/USG_OpenVPN_Radius_Auth.md
Unifi Security Gateway (USG) OpenVPN server with RADIUS authentication

OpenVPN on UniFi USG Instructions for FIT

Last Updated: 2021/01/19

Fork Notes

Forked this to provide better details for our environment, you should be able to copy paste most of the commands from the command blocks

Details

I wanted to run an OpenVPN server on the USG. Since it has a Radius server built in, I figured this would be a much better way to handle OpenVPN authentication. Make sure you have the Radius server enabled on your USG under Settings > Services > Radius > Server in the controller. Add OpenVpn users under Settings > Services > Radius > Server.

@OnkelDom
OnkelDom / unifi-le-root-cert-fix.txt
Created October 4, 2021 20:01 — forked from sprocktech/unifi-le-root-cert-fix.txt
Ubiquiti UniFi - Fix for the Let's Encrypt DST Root CA X3 Expiration
# Some UniFi devices may not have the current ISRG root cert that LE uses
# Some devices also have an older version of OpenSSL
# These older versions will not validate a cert if the expired DST root cert is part of the chain
# USG
# This has an older OpenSSL version
# The current ISRG root cert is not included in the latest firmware
sudo -i
sed -i 's|^mozilla\/DST_Root_CA_X3\.crt|!mozilla/DST_Root_CA_X3.crt|' /etc/ca-certificates.conf
curl -sk https://letsencrypt.org/certs/isrgrootx1.pem -o /usr/local/share/ca-certificates/ISRG_Root_X1.crt
@OnkelDom
OnkelDom / USG_OpenVPN_Radius_Auth.md
Created June 11, 2021 06:17 — forked from jcconnell/USG_OpenVPN_Radius_Auth.md
Unifi Security Gateway (USG) OpenVPN server with RADIUS authentication

Last Updated: 8/30/18

Details

I wanted to run an OpenVPN server on the USG. Since it has a Radius server built in, I figured this would be a much better way to handle OpenVPN authentication. Make sure you have the Radius server enabled on your USG under Settings > Services > Radius > Server in the controller. Add OpenVpn users under Settings > Services > Radius > Server.

Thanks to the following resources in helping to configure this:

@OnkelDom
OnkelDom / dante.yaml
Created February 19, 2021 08:32 — forked from lattenwald/dante.yaml
Ansible playbook for installing and configuring dante socks proxy on CentOS 7
- hosts: all
vars:
version: "1.4.2"
interface: "enp2s0"
dante_port: "1089"
tasks:
- name: install dependencies
become: yes
become_user: root
yum: name={{ item }} state=present