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/php -qC | |
<?php | |
// | |
// apiban-netset | |
// | |
// Copyright (C) 2021 Lonnie Abelbeck | |
// | |
// This is free software, licensed under the GNU General Public License | |
// version 3 as published by the Free Software Foundation; you can |
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
<?php | |
/*** | |
! User settings | |
Edit these lines according to your need | |
***/ | |
//{{{ | |
$AUTHENTICATE_USER = true; // true | false | |
$USERS = array( | |
'admin'=>'valid'); // set valid usernames behind HTTPS basic auth | |
$DEBUG = false; // true | false |
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 | |
## | |
## AstLinux acme-client, deploy/custom.sh action script | |
## | |
## Tested with: | |
## ArubaOS (MODEL: 215), Version 6.5.4.3 | |
## | |
## custom_deploy() arguments | |
_cdomain="$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
#!/bin/sh | |
. /etc/rc.conf | |
## External target IPv4 host address, *not* a DNS name | |
TARGET_HOST="${IPCSOLUTIONS_TARGET_HOST:-8.8.4.4}" | |
## Approximate max seconds to delay | |
MAX_DELAY=120 |
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
set -x | |
mkdir -p /mnt/kd/bin | |
curl -sSfL -o /mnt/kd/bin/reload-blocklist-netset 'https://raw.githubusercontent.com/astlinux-project/astlinux/7279479b622418d51948fae3c8fba68312f19071/package/arnofw/reload-blocklist-netset' | |
chmod 755 /mnt/kd/bin/reload-blocklist-netset | |
: Lastly adjust cron to use /mnt/kd/bin/reload-blocklist-netset instead | |
: You must do that manually |