Skip to content

Instantly share code, notes, and snippets.

View mcprat's full-sized avatar

Michael Pratt mcprat

  • Ohio
  • 16:15 (UTC -04:00)
View GitHub Profile
@mcprat
mcprat / boot.log
Created May 8, 2021 05:35
Engenius ESR300 Openwrt firstboot
U-boot Ver:1.0.5.8 2014/07/24 16:53:32
Board: Ralink APSoC DRAM: 64 MB
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 28
spi device id: c2 20 18 c2 20 (2018c220)
find flash: MX25L12805D
@mcprat
mcprat / boot.log
Created May 7, 2021 23:47
Engenius ESR350 Openwrt firstboot
U-boot Ver:1.0.5.6 2015/05/26 14:34:18
Board: Ralink APSoC DRAM: 64 MB
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 28
spi device id: c2 20 18 c2 20 (2018c220)
find flash: MX25L12805D
@mcprat
mcprat / boot.log
Created April 30, 2021 16:04
Engenius EPG600 Openwrt firstboot (master-backport)
## Booting image at bc060000 ...
Image Name: MIPS OpenWrt Linux-5.4.111
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 2000944 Bytes = 1.9 MB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
OK
Starting kernel ...
@mcprat
mcprat / nut_server
Created April 11, 2021 12:37
openwrt example NUT server with apcupsd server configuration
config driver 'ups'
option driver apcupsd-ups
option port localhost:3551
config user
option username monuser
option password secret
option upsmon slave
config listen_address
@mcprat
mcprat / apcupsd.conf
Created April 11, 2021 12:22
example apcupsd configuration
## apcupsd.conf v1.1 ##
UPSCABLE usb
UPSTYPE usb
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc
NOLOGINDIR /etc
BATTERYLEVEL 0
MINUTES 0
TIMEOUT 0
@mcprat
mcprat / boot.log
Created March 17, 2021 08:23
Openwrt firstboot Araknis AN500 AP
[ 61.120000] JFFS2 notice: (2221) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 63.800000] br-lan: port 1(eth0) entered forwarding state
the bonjourEnable:1
$Starting mDNSResponder...
************************************************************************
* AN500 *
************************************************************************
password:
Login incorrect
@mcprat
mcprat / config.buildinfo
Last active February 27, 2022 20:08
WatchGuard AP300 test images
CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_generic=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_allnet_all-wap02860ac=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_engenius_ens202ext-v1=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_watchguard_ap300=y
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
@mcprat
mcprat / client.conf
Last active February 1, 2021 13:43
openvpn openwrt client config (user-pass) (key-direction)
config openvpn 'server'
option client '1'
option dev 'tun'
option proto 'udp'
list remote 'xxx.xxx.xxx.xxx xxxx'
option remote_cert_tls 'server'
option ca '/etc/openvpn/server.ca'
option cert '/etc/openvpn/client.cert'
option key '/etc/openvpn/client.key'
option tls_auth '/etc/openvpn/hmac.key'
@mcprat
mcprat / ovpn.sh
Created January 27, 2021 10:31
Universal Openvpn client OVPN generation script (tls-auth)
#!/bin/sh
PKI_DIR=/etc/openvpn/easy-rsa/pki
CRT_DIR=/etc/openvpn/easy-rsa/pki/issued
KEY_DIR=/etc/openvpn/easy-rsa/pki/private
OUTPUT_DIR=/etc/openvpn/server/clients
BASE_CONFIG=/etc/openvpn/server/client.confbase
cat ${BASE_CONFIG} > ${OUTPUT_DIR}/${1}.ovpn
echo '<ca>' | cat >> ${OUTPUT_DIR}/${1}.ovpn
cat ${PKI_DIR}/ca.crt >> ${OUTPUT_DIR}/${1}.ovpn
@mcprat
mcprat / client.confbase
Last active April 18, 2021 02:09
openvpn client base tls-auth
client
dev tun
proto udp
remote xxx.xxx.xxx.xxx xxxx
remote-cert-tls server
key-direction 1
auth SHA1
auth-nocache
auth-user-pass
data-ciphers AES-128-CBC