Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Jenkins stevejenkins

View GitHub Profile
@stevejenkins
stevejenkins / config.boot.diff
Created Jan 1, 2016
diff -Naur between Steve Jenkins' ERLite-3 and Bryan Klingner's ER5-PoE config.boot files for Google Fiber + Ubiquiti EdgeRouter
View config.boot.diff
--- 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 / uap-reboot.sh
Last active Mar 30, 2021
Simple shell script to remotely reboot a Ubiquiti UBNT UniFi Access Point (UAP, UAP-PRO, UAP-AC, etc.)
View uap-reboot.sh
#MOVED TO: https://github.com/stevejenkins/unifi-linux-utils
@stevejenkins
stevejenkins / postscreen-whitelists.sh
Last active Nov 26, 2015
Short script for building various Postscreen whitelists and reloading the Postfix configuration
View postscreen-whitelists.sh
#! /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 / socialwhitelist.sh
Last active Jun 10, 2017
Script for creating a Postfix whitelist for known Social Networks servers (Facebook, Twitter, etc.)
View socialwhitelist.sh
#! /bin/sh
#
# Copyright (c) 2015 Steve Jenkins <steve@stevejenkins.com>
#
# Based on gwhitelist script by Mike Miller <mmiller@mgm51.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
@stevejenkins
stevejenkins / msftwhitelist.sh
Last active Jun 10, 2017
Script for creating a Postfix whitelist for MSFT servers (Hotmail, Outlook.com)
View msftwhitelist.sh
#! /bin/sh
#
# Copyright (c) 2015 Steve Jenkins <steve@stevejenkins.com>
#
# Based on gwhitelist script by Mike Miller <mmiller@mgm51.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
@stevejenkins
stevejenkins / EdgeMax-Google-TV.sh
Last active Apr 24, 2019
Additional script for Google Fiber TV customers to run on their EdgeRouter, after running the initial EdgeMax-Google.sh script, to enable TV service.
View EdgeMax-Google-TV.sh
# Google Fiber TV Service Additional Script
# Based on Atlantisman's TV script
# http://blog.nexusshield.com/google-fiber-ubiquitis-edgerouter/
# Edited by Steve Jenkins to work with his version of the script
#______________________TV Service Config _____________________
#Setup IGMP Proxy
configure
edit protocols igmp-proxy
set interface eth0.2 role upstream
set interface eth2 role downstream
@stevejenkins
stevejenkins / EdgeMax-Google.sh
Last active Nov 15, 2019
IPv4/IPv6 setup script for EdgeMax EdgeOS v1.9 routers to replace the Google Fiber Network Box
View EdgeMax-Google.sh
# EdgeOS v1.9 Google Fiber Config Script
# by Steve Jenkins (http://www.stevejenkins.com/)
# Last updated: Aug 14, 2016
# Based on settings & scripts by Atlantisman, TK, and CompTech
# RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER
# Script runs best if you copy and paste in sections
#______________________Basic Firewall Setup_______________________________
configure
@stevejenkins
stevejenkins / config.boot
Last active Aug 8, 2016
My config.boot on a UBNT EdgeRouter 5 PoE
View config.boot
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"
@stevejenkins
stevejenkins / gwhitelist.sh
Last active Nov 23, 2020
Script for creating a Postfix whitelist for Gmail servers
View gwhitelist.sh
#! /bin/sh
#
# Copyright (c) 2013 Mike Miller <mmiller@mgm51.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF