- Install
checkWireguard
as/usr/local/opnsense/scripts/OPNsense/Wireguard/checkWireguard
- Install
actions_wireguardCarp.conf
as/usr/local/opnsense/service/conf/actions.d/actions_wireguardCarp.conf
- run
service configd restart
- In the OPNSense UI - add a CRON job in System -> Settings -> Cron to call the script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to reinstall and configure SSH for password authentication and root login | |
# Check if the script is run as root | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "This script must be run as root. Please use sudo or log in as root." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this file under /etc/spamassassin/ and run an sa-update or reload amavis etc. | |
# | |
#-------------------------------------------------- | |
# The only RBL I trust, UCEPROTECT1 (single IP, not IP-ranges or entire ISPs) http://uceprotect.net | |
#-------------------------------------------------- | |
header RCVD_IN_UCEPROTECT1 eval:check_rbl_txt('uceprotect1', 'dnsbl-1.uceprotect.net') | |
describe RCVD_IN_UCEPROTECT1 Listed in dnsbl-1.uceprotect.net | |
tflags RCVD_IN_UCEPROTECT1 net | |
score RCVD_IN_UCEPROTECT1 1.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- encoding: iso-8859-1 -*- | |
""" | |
Python syslog client. | |
This code is placed in the public domain by the author. | |
Written by Christian Stigen Larsen. | |
This is especially neat for Windows users, who (I think) don't |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
## Tiny Syslog Server in Python. | |
## | |
## This is a tiny syslog server that is able to receive UDP based syslog | |
## entries on a specified port and save them to a file. | |
## That's it... it does nothing else... | |
## There are a few configuration parameters. | |
LOG_FILE = 'youlogfile.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$prtguser = "apiuser" | |
$prtghash = "123456" | |
$match = "Auto-Discovery *" | |
$actiontype = "close" # "close" or "resolve" | |
$message = "auto close" | |
$hostname = "prtg.yourdomain.com" | |
$URI = "https://" + $hostname + "/api/table.json?content=tickets&columns=datetime,priority,parentid,message,user,status,name&filter_drel=&username=" + $prtguser + "&passhash=" + $prtghash | |
$response = Invoke-WebRequest $URI | |
$jsonObj = $([String]::new($response.Content)) | ConvertFrom-Json | select -expand tickets | select parentid,status_raw,message_raw | Where-Object {($_.message_raw -like $match) -and ($_.status_raw -EQ '1')} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example infrastructure outage incident report | |
Friday, May 13, 2077 | |
By the Example Security Team | |
Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response. | |
The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2500+ IP addresses dedicated to serving malware. | |
1.168.33.91 | |
103.12.217.155 | |
103.242.11.1 | |
103.242.11.94 | |
103.243.51.129 | |
103.253.141.43 | |
103.255.101.168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2500+ IP addresses dedicated to serving malware. | |
1.168.33.91 | |
103.12.217.155 | |
103.242.11.1 | |
103.242.11.94 | |
103.243.51.129 | |
103.253.141.43 | |
103.255.101.168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Simple script to monitor a ipcam stream running on mpv | |
# using the ipc-server | |
# requires mpv, socat, and jq written for bash 4 | |
# xwinwrap to run on the Desktop | |
# by gmail plgroves 2019 | |
# | |
# script creates a kill script in same path as this script | |
# named This_script-kill |
NewerOlder