Skip to content

Instantly share code, notes, and snippets.

@sundeer
sundeer / one.liner
Created February 1, 2019 19:16
Build pfSense rule tracker lookup table
pfctl -vv -sr | grep USER_RULE | sed 's/[^(]*(\([^)]*\).*"USER_RULE: *\([^"]*\).*/"\1",\2/' | sort -t ' ' -k 1,1 -u
@sundeer
sundeer / system.log
Created January 10, 2019 09:29
psSense System Log File
Jan 10 08:22:46 pfsense rc.gateway_alarm[36272]: >>> Gateway alarm: RW_VPN (Addr:1.1.1.1 Alarm:1 RTT:0.000ms RTTsd:0.000ms Loss:100%)
Jan 10 08:22:46 pfsense check_reload_status: Restarting ipsec tunnels
Jan 10 08:22:46 pfsense check_reload_status: Restarting OpenVPN tunnels/interfaces
Jan 10 08:22:46 pfsense php-cgi: notify_monitor.php: Could not send the message to ops@rhsjmm.com -- Error: Failed to connect to ssl://email-smtp.eu-west-1.amazonaws.com:465 [SMTP: Failed to connect socket: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known (code: -1, response: )]
Jan 10 08:22:46 pfsense php-fpm[336]: /rc.newwanip: Gateway, none 'available' for inet6, use the first one configured. ''
Jan 10 08:22:47 pfsense php-fpm[337]: /rc.start_packages: Skipping STARTing packages process because previous/another instance is already running
Jan 10 08:22:47 pfsense php-fpm[337]: /rc.newwanip: rc.newwanip: Info: starting on ovpnc3.
Jan 10 08:22:47 pfsense php-fpm[337]: /rc.newwanip: rc.n
# terraform output encrypted_access_key_secret | base64 --decode | gpg -d
2018/08/14 16:24:34 [INFO] Terraform version: 0.11.7
2018/08/14 16:24:34 [INFO] Go runtime version: go1.10.1
2018/08/14 16:24:34 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.7/bin/terraform", "output", "encrypted_access_key_secret"}
2018/08/14 16:24:34 [DEBUG] Attempting to open CLI config file: /Users/rs/.terraformrc
2018/08/14 16:24:34 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/14 16:24:34 [INFO] CLI command args: []string{"output", "encrypted_access_key_secret"}
2018/08/14 16:24:34 [DEBUG] command: loading backend config file: /Users/rs/Documents/Code/ops/com.toomanytubes/terraform/stage/iam
2018/08/14 16:24:34 [WARN] BackendOpts.Config not set, but config found
# terraform apply ./apply.plan
2018/08/14 16:23:59 [INFO] Terraform version: 0.11.7
2018/08/14 16:23:59 [INFO] Go runtime version: go1.10.1
2018/08/14 16:23:59 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.7/bin/terraform", "apply", "./apply.plan"}
2018/08/14 16:23:59 [DEBUG] Attempting to open CLI config file: /Users/rs/.terraformrc
2018/08/14 16:23:59 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/14 16:23:59 [INFO] CLI command args: []string{"apply", "./apply.plan"}
2018/08/14 16:23:59 [INFO] command: initializing backend from plan: s3
2018/08/14 16:23:59 [INFO] Building AWS region structure