Skip to content

Instantly share code, notes, and snippets.

View stevejenkins's full-sized avatar

Steve Jenkins stevejenkins

View GitHub Profile
@stevejenkins
stevejenkins / postscreen-whitelists.sh
Last active November 26, 2015 03:15
Short script for building various Postscreen whitelists and reloading the Postfix configuration
#! /bin/sh
# Build all the Postscreen whitelists
/usr/local/bin/gwhitelist.sh > /etc/postfix/whitelist_gmail.cidr
/usr/local/bin/msftwhitelist.sh > /etc/postfix/whitelist_msft.cidr
/usr/local/bin/socialwhitelist.sh > /etc/postfix/whitelist_social.cidr
# Reload Postfix configuration
/usr/sbin/postfix reload
@stevejenkins
stevejenkins / uap-reboot.sh
Last active July 7, 2021 19:51
Simple shell script to remotely reboot a Ubiquiti UBNT UniFi Access Point (UAP, UAP-PRO, UAP-AC, etc.)
#MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@stevejenkins
stevejenkins / config.boot.diff
Created January 1, 2016 23:31
diff -Naur between Steve Jenkins' ERLite-3 and Bryan Klingner's ER5-PoE config.boot files for Google Fiber + Ubiquiti EdgeRouter
--- config.boot.erl 2016-01-01 15:28:01.851501076 -0800
+++ config.boot.er5 2016-01-01 15:06:38.667501858 -0800
@@ -62,14 +62,20 @@
}
interfaces {
ethernet eth0 {
- address 192.168.1.1/24
- description LAN
+ address 192.168.0.1/24
+ description "Local Config Port"
@stevejenkins
stevejenkins / UniFi
Last active November 27, 2016 15:53
SysV Init script for starting, stopping, and restarting the Ubiquiti (UBNT) UniFi Controller on non-Debian Linux systems
# MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@stevejenkins
stevejenkins / UniFi.service
Last active August 3, 2017 08:11
systemd service file for starting, stopping, and restarting the Ubiquiti (UBNT) UniFi Controller systemd systems
# MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@stevejenkins
stevejenkins / upgrade_unifi.sh
Last active February 10, 2019 19:33
Easy UniFi Controller Upgrade Script for Unix/Linux Systems
# MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@stevejenkins
stevejenkins / unifi_ssl_import.sh
Last active August 30, 2021 03:57
Import and use SSL certificates (including Let's Encrypt) with the Ubiquiti UniFi Controller on Unix/Linux Systems
# MOVED TO https://github.com/stevejenkins/unifi-linux-utils
Moved to: https://github.com/stevejenkins/Google-Fiber-EdgeRouter-Configs
@stevejenkins
stevejenkins / config.noworky
Last active January 9, 2017 23:12
ER-Lite config where remote HTTPS / SSH does not work
firewall {
all-ping enable
broadcast-ping disable
ipv6-name WAN6_IN {
default-action drop
rule 10 {
action accept
description "Allow established/related"
state {
established enable
@stevejenkins
stevejenkins / config.worky
Last active March 29, 2020 15:29
ER-POE Config where remote HTTPS / SSH work
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to Internal"