Skip to content

Instantly share code, notes, and snippets.

View suidroot's full-sized avatar

Ben Mason suidroot

View GitHub Profile
@suidroot
suidroot / create-asa-acl.sublime-snippet
Created April 15, 2014 22:10
Sublime Text 2 ASA ACL Snippet
<snippet>
<content><![CDATA[
access-list ${1:NAME} extended ${2:permit} ${3:ip} ${4:source} ${5:source-port} ${6:destination} ${7:destination-port}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>access-list</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@suidroot
suidroot / create-interface.sublime-snippet
Created April 15, 2014 22:12
Cisco Router Interface Sublime Text Snippet
<snippet>
<content><![CDATA[
interface ${1:FastEthernet} ${2:0/0/0}
description ${3:SomeDescription}
${4}
!
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>interface</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@suidroot
suidroot / create-vlan.sublime-snippet
Created April 15, 2014 22:13
Cisco VLAN Creation Sublime Text Snippet
<snippet>
<content><![CDATA[
vlan ${1:1}
name ${2:name}
!
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>vlan</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.Cisco</scope> -->
@suidroot
suidroot / vyatta-route
Created May 13, 2014 01:38
Vyatta Test Routing Table
set interfaces loopback lo address '192.168.1.1/32'
set protocols static route 1.1.1.0/24 next-hop 192.168.1.1
set protocols static route 1.1.2.0/24 next-hop 192.168.1.1
set protocols static route 1.1.3.0/24 next-hop 192.168.1.1
set protocols static route 1.1.4.0/24 next-hop 192.168.1.1
set protocols static route 1.1.5.0/24 next-hop 192.168.1.1
set protocols static route 1.1.6.0/24 next-hop 192.168.1.1
set protocols static route 1.1.7.0/24 next-hop 192.168.1.1
set protocols static route 1.1.8.0/24 next-hop 192.168.1.1
@suidroot
suidroot / ASA-VPN-BLOG
Created December 1, 2014 22:43
ASA VPN Blog
ciscoasa# sh run
: Saved
:
ASA Version 8.4(2)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
@suidroot
suidroot / SRX-VPN-Blog
Created December 1, 2014 23:09
SRX VPN Blog
root> show configuration
## Last commit: 2014-12-01 01:56:39 UTC by root
version 12.1X47-D10.4;
system {
root-authentication {
encrypted-password "$1$8fS5JWdL$EXfcEOme1QfZUjfKv757U."; ## SECRET-DATA
}
services {
ssh;
web-management {
@suidroot
suidroot / gist:21852b241183714dfd29
Last active January 31, 2021 16:10
Cisco DMVPN NHRP SNMP Monitoring
! Uses CISCO-NHRP-EXT-MIB and NHRP-MIB
! Enable DMVPN Syslog (bonus)
logging dmvpn
interface t0
! enable Tunnel interface state tracking based on nhrp state
if-state nhrp
! enable NHRP-SNMP Agent
@suidroot
suidroot / tivo-decode.sh
Created November 30, 2015 17:43
Decode TIVO files
for file in *.TiVo
do
/Applications/cTiVo.app/Contents/MacOS/tivodecode --mak YOURMAKHERE -o "${file%.TiVo}.mpg" "$file"
done
@suidroot
suidroot / Vyatta VPN failover
Created December 1, 2015 16:59
Vyatta VPN failover commands
set interfaces bonding bond1 vrrp vrrp-group 1 run-transition-scripts backup '/config/scripts/ipsec-stop'
set interfaces bonding bond1 vrrp vrrp-group 1 run-transition-scripts fault '/config/scripts/ipsec-stop'
set interfaces bonding bond1 vrrp vrrp-group 1 run-transition-scripts master '/config/scripts/ipsec-restart'
@suidroot
suidroot / openvpn-vyatta
Created December 7, 2015 23:06
OpenVPN on Vyatta Firewall
Reference url: http://www.brocade.com/downloads/documents/html_product_manuals/vyatta/vyatta_5400_manual/wwhelp/wwhimpl/js/html/wwhelp.htm
Create the directory for certificate management
Instruction: login to the vyatta and make sure you are at the $ prompt:
example: vyatta@HOSTNAME:~$
##creates the directory##
vyatta@HOSTNAME:~$ mkdir /config/auth/ca (note: there is a space after mkdir)
##copies files to new directory##
vyatta@HOSTNAME:~$ cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /config/auth/ca