Skip to content

Instantly share code, notes, and snippets.

View stevejenkins's full-sized avatar

Steve Jenkins stevejenkins

View GitHub Profile
@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 / 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 / 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 / socialwhitelist.sh
Last active June 10, 2017 00:48
Script for creating a Postfix whitelist for known Social Networks servers (Facebook, Twitter, etc.)
#! /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 June 10, 2017 00:48
Script for creating a Postfix whitelist for MSFT servers (Hotmail, Outlook.com)
#! /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 April 24, 2019 14:50
Additional script for Google Fiber TV customers to run on their EdgeRouter, after running the initial EdgeMax-Google.sh script, to enable TV service.
# 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
Moved to: https://github.com/stevejenkins/Google-Fiber-EdgeRouter-Configs
@stevejenkins
stevejenkins / EdgeMax-Google.sh
Last active November 15, 2019 17:05
IPv4/IPv6 setup script for EdgeMax EdgeOS v1.9 routers to replace the Google Fiber Network Box
# 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 August 8, 2016 23:19
My config.boot on a UBNT EdgeRouter 5 PoE
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 September 14, 2022 20:51
Script for creating a Postfix whitelist for Gmail servers
#! /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