Skip to content

Instantly share code, notes, and snippets.

View lemassykoi's full-sized avatar

Clément PAPPALARDO lemassykoi

View GitHub Profile
@lemassykoi
lemassykoi / how_to_squid_krb_AD.sh
Last active January 11, 2024 10:55
Squid with Kerberos Active Directory and SquidGuard (with Active Directory too, and Groups)
## Debian 12 US - 01/01/2024
##
## assuming your default user is "debian"
## assuming your Windows Server 2016 minimum is the CA for the domain
## you have to issue a certificate from your CA to proxy.yourdomain.local (for CN and DNS alt name. You can add IP alt name)
## (build a CSR with an online tool and KEEP the private key
## !! you also need to enable the option which says this certificate will be used to issue other certificate) !!
##
## COMPUTER NAME of the proxy is different of the value used for proxy settings :
## computer name : LINUX01(.yourdomain.local)
@lemassykoi
lemassykoi / update_ubuntu_netboot.sh
Created January 20, 2023 23:03
Script made to update Ubuntu Netboot for PXE Server
#!/usr/bin/env bash
# crontab -e
# 0 3 * * * /bin/bash /root/update_ubuntu_netboot.sh
# apt install syslinux-common
#=============================================
ubuntu_files='/srv/tftp/images/ubuntu'
iso_location='/srv/tftp/images/ISO'
dist=("focal" "jammy")
# focal 20.04
# jammy 22.04