Compare commits
29 Commits
e2b3f298a2
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 05d65db13d | |||
| 7d44cd71e5 | |||
| 98fe210c19 | |||
| c8ba483187 | |||
| d9cd740d86 | |||
| 9995186d63 | |||
| dbe6d95091 | |||
| 0f38d3d0ec | |||
| 58f171ba35 | |||
| 14913ad455 | |||
| cd712141fa | |||
| 0b13890633 | |||
| b6449ae204 | |||
| e000888b2b | |||
| 77cc855e11 | |||
| 40489e2eea | |||
| 456aa6f268 | |||
| 706252fe7f | |||
| e4e66d9f9b | |||
| a251cbcf9c | |||
| 5f2abbd34e | |||
| e5a6b9b19d | |||
| 9e99671ab3 | |||
| a737543c25 | |||
| 843086022d | |||
| 80176287f1 | |||
| f39e1c7298 | |||
| b78fd1ec16 | |||
| 2c5936be30 |
103
.zshrc
Normal file
103
.zshrc
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="/home/shmick/.oh-my-zsh"
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
|
ZSH_THEME="robbyrussell"
|
||||||
|
|
||||||
|
# Set list of themes to pick from when loading at random
|
||||||
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
|
# a theme from this variable instead of looking in $ZSH/themes/
|
||||||
|
# If set to an empty array, this variable will have no effect.
|
||||||
|
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||||
|
|
||||||
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
|
# CASE_SENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment one of the following lines to change the auto-update behavior
|
||||||
|
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||||
|
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||||
|
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||||
|
|
||||||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
|
# zstyle ':omz:update' frequency 13
|
||||||
|
|
||||||
|
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||||
|
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable colors in ls.
|
||||||
|
# DISABLE_LS_COLORS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable auto-setting terminal title.
|
||||||
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
# ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
# You can also set it to another string to have that shown instead of the default red dots.
|
||||||
|
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||||
|
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||||
|
# COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
# much, much faster.
|
||||||
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to change the command execution time
|
||||||
|
# stamp shown in the history command output.
|
||||||
|
# You can set one of the optional three formats:
|
||||||
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
|
# or set a custom format using the strftime function format specifications,
|
||||||
|
# see 'man strftime' for details.
|
||||||
|
# HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(git)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
|
||||||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
# You may need to manually set your language environment
|
||||||
|
# export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
# Preferred editor for local and remote sessions
|
||||||
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
# export EDITOR='vim'
|
||||||
|
# else
|
||||||
|
# export EDITOR='mvim'
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# Compilation flags
|
||||||
|
# export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
|
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||||
|
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||||
|
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||||
|
# For a full list of active aliases, run `alias`.
|
||||||
|
#
|
||||||
|
# Example aliases
|
||||||
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
#
|
||||||
|
source /etc/zprofile
|
||||||
8
Kumonoboru-prune.service
Normal file
8
Kumonoboru-prune.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud Backup Utility
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /home/shmick/Scripts/Kumonoboru --clean
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
9
Kumonoboru-prune.timer
Normal file
9
Kumonoboru-prune.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud backup utility
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=monthly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
8
Kumonoboru.service
Normal file
8
Kumonoboru.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud Backup Utility
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /home/shmick/Scripts/Kumonoboru
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
9
Kumonoboru.timer
Normal file
9
Kumonoboru.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud backup utility
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
8
Murchison.service
Normal file
8
Murchison.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Murchison - Configuration Backup Utility
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /home/shmick/Scripts/Murchison
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
9
Murchison.timer
Normal file
9
Murchison.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Murchison - Configuration backup utility
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -15,5 +15,5 @@ RANDOM_DELAY=45
|
|||||||
1 5 cron.daily nice run-parts /etc/cron.daily
|
1 5 cron.daily nice run-parts /etc/cron.daily
|
||||||
7 25 cron.weekly nice run-parts /etc/cron.weekly
|
7 25 cron.weekly nice run-parts /etc/cron.weekly
|
||||||
@monthly 45 cron.monthly nice run-parts /etc/cron.monthly
|
@monthly 45 cron.monthly nice run-parts /etc/cron.monthly
|
||||||
@daily 2 cron.daily sh $SCRIPTS/Kumonoboru
|
@daily 2 cron.daily sh /home/shmick/Scripts/Kumonoboru
|
||||||
@daily 2 cron.daily sh $SCRIPTS/ConfigBackup
|
@daily 2 cron.daily sh /home/shmick/Scripts/ConfigBackup
|
||||||
|
|||||||
7
config
Normal file
7
config
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
### configuration file for openfortivpn, see man openfortivpn(1) ###
|
||||||
|
|
||||||
|
host = 194.90.234.209
|
||||||
|
port = 10443
|
||||||
|
username = matanh
|
||||||
|
password = Vulthuryol569
|
||||||
|
trusted-cert = 32ad6666ce6ee21f9353ca24392fa3a5db179b00540616965aa8767cd8a2583c
|
||||||
14
daemon.json
Normal file
14
daemon.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"bip": "150.200.0.1/24",
|
||||||
|
"debug": false,
|
||||||
|
"default-address-pools": [
|
||||||
|
{
|
||||||
|
"base": "150.201.0.0/16",
|
||||||
|
"size": 24
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"base": "150.202.0.0/16",
|
||||||
|
"size": 24
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
10
environment
10
environment
@@ -3,13 +3,3 @@
|
|||||||
#
|
#
|
||||||
# Syntax: simple "KEY=VAL" pairs on separate lines
|
# Syntax: simple "KEY=VAL" pairs on separate lines
|
||||||
#
|
#
|
||||||
### Environment Variables ###
|
|
||||||
export SCRIPTS="/home/shmick/Scripts"
|
|
||||||
export GIT_PORT="64278"
|
|
||||||
# ###BackBlaze B2###
|
|
||||||
export B2_ACCOUNT_ID=8582a42a3b99 #Master Key
|
|
||||||
export B2_ACCOUNT_KEY=00041845e8dd29d7e3d091d77bb8a631ee71332be7 #Master Application ID
|
|
||||||
#export B2_ACCOUNT_ID=0008582a42a3b990000000003
|
|
||||||
#export B2_ACCOUTN_KEY=K000Zlz7MtKzu2LG0VZlYkeUitGeuHM
|
|
||||||
export RESTIC_PASSWORD='f$774$#je4%U8vp8ov*UsZMHqL$m3Smh#fEbbt7hyULQxfnnWmSiS5MEndzVWT$$n^@s$P*o4vV*^rgv3jvvrv@y35VppU$$y*vnG5V@botU&4$39Y6t9HSb3Z548M!4'
|
|
||||||
#export RESTIC_REPOSITORY="b2:Gerbil-TK" #Seperate buckets so not neccesarily
|
|
||||||
|
|||||||
10
fstab
Normal file
10
fstab
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
|
||||||
|
UUID=c52f489d-bfa4-4d25-8960-882766919873 / btrfs rw,relatime,ssd,space_cache=v2,subvolid=256,subvol=/rootfs 0 0
|
||||||
|
UUID=c52f489d-bfa4-4d25-8960-882766919873 /home btrfs rw,relatime,ssd,space_cache=v2,subvolid=257,subvol=/home 0 0
|
||||||
|
UUID=c52f489d-bfa4-4d25-8960-882766919873 /var btrfs rw,relatime,ssd,space_cache=v2,subvolid=258,subvol=/var 0 0
|
||||||
|
UUID=c52f489d-bfa4-4d25-8960-882766919873 /swap btrfs defaults,subvolid=956 0 0
|
||||||
|
/swap/swapfile none swap defaults 0 0
|
||||||
|
/dev/sda /var/Red-Vol/ btrfs rw,relatime,space_cache=v2,inode_cache,autodefrag,subvolid=256 0 0
|
||||||
|
/dev/sda /var/Red-Vol/Backups btrfs rw,relatime,space_cache=v2,inode_cache,autodefrag,subvolid=257 0 0
|
||||||
|
/dev/sda /var/Red-Vol/Torrents btrfs rw,relatime,space_cache=v2,inode_cache,autodefrag,subvolid=258 0 0
|
||||||
|
/dev/sda /var/Red-Vol/Media btrfs rw,relatime,space_cache=v2,inode_cache,autodefrag,subvolid=259 0 0
|
||||||
63
home
Normal file
63
home
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
# subvolume to snapshot
|
||||||
|
SUBVOLUME="/home"
|
||||||
|
|
||||||
|
# filesystem type
|
||||||
|
FSTYPE="btrfs"
|
||||||
|
|
||||||
|
|
||||||
|
# btrfs qgroup for space aware cleanup algorithms
|
||||||
|
QGROUP=""
|
||||||
|
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space the snapshots may use
|
||||||
|
SPACE_LIMIT="0.5"
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space that should be free
|
||||||
|
FREE_LIMIT="0.2"
|
||||||
|
|
||||||
|
|
||||||
|
# users and groups allowed to work with config
|
||||||
|
ALLOW_USERS=""
|
||||||
|
ALLOW_GROUPS=""
|
||||||
|
|
||||||
|
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
|
||||||
|
# directory
|
||||||
|
SYNC_ACL="no"
|
||||||
|
|
||||||
|
|
||||||
|
# start comparing pre- and post-snapshot in background after creating
|
||||||
|
# post-snapshot
|
||||||
|
BACKGROUND_COMPARISON="yes"
|
||||||
|
|
||||||
|
|
||||||
|
# run daily number cleanup
|
||||||
|
NUMBER_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limit for number cleanup
|
||||||
|
NUMBER_MIN_AGE="1800"
|
||||||
|
NUMBER_LIMIT="50"
|
||||||
|
NUMBER_LIMIT_IMPORTANT="10"
|
||||||
|
|
||||||
|
|
||||||
|
# create hourly snapshots
|
||||||
|
TIMELINE_CREATE="yes"
|
||||||
|
|
||||||
|
# cleanup hourly snapshots after some time
|
||||||
|
TIMELINE_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for timeline cleanup
|
||||||
|
TIMELINE_MIN_AGE="1800"
|
||||||
|
TIMELINE_LIMIT_HOURLY="10"
|
||||||
|
TIMELINE_LIMIT_DAILY="10"
|
||||||
|
TIMELINE_LIMIT_WEEKLY="0"
|
||||||
|
TIMELINE_LIMIT_MONTHLY="10"
|
||||||
|
TIMELINE_LIMIT_YEARLY="10"
|
||||||
|
|
||||||
|
|
||||||
|
# cleanup empty pre-post-pairs
|
||||||
|
EMPTY_PRE_POST_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for empty pre-post-pair cleanup
|
||||||
|
EMPTY_PRE_POST_MIN_AGE="1800"
|
||||||
|
|
||||||
63
homefs
Normal file
63
homefs
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
# subvolume to snapshot
|
||||||
|
SUBVOLUME="/home"
|
||||||
|
|
||||||
|
# filesystem type
|
||||||
|
FSTYPE="btrfs"
|
||||||
|
|
||||||
|
|
||||||
|
# btrfs qgroup for space aware cleanup algorithms
|
||||||
|
QGROUP=""
|
||||||
|
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space the snapshots may use
|
||||||
|
SPACE_LIMIT="0.5"
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space that should be free
|
||||||
|
FREE_LIMIT="0.2"
|
||||||
|
|
||||||
|
|
||||||
|
# users and groups allowed to work with config
|
||||||
|
ALLOW_USERS=""
|
||||||
|
ALLOW_GROUPS=""
|
||||||
|
|
||||||
|
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
|
||||||
|
# directory
|
||||||
|
SYNC_ACL="no"
|
||||||
|
|
||||||
|
|
||||||
|
# start comparing pre- and post-snapshot in background after creating
|
||||||
|
# post-snapshot
|
||||||
|
BACKGROUND_COMPARISON="yes"
|
||||||
|
|
||||||
|
|
||||||
|
# run daily number cleanup
|
||||||
|
NUMBER_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limit for number cleanup
|
||||||
|
NUMBER_MIN_AGE="1800"
|
||||||
|
NUMBER_LIMIT="50"
|
||||||
|
NUMBER_LIMIT_IMPORTANT="10"
|
||||||
|
|
||||||
|
|
||||||
|
# create hourly snapshots
|
||||||
|
TIMELINE_CREATE="yes"
|
||||||
|
|
||||||
|
# cleanup hourly snapshots after some time
|
||||||
|
TIMELINE_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for timeline cleanup
|
||||||
|
TIMELINE_MIN_AGE="1800"
|
||||||
|
TIMELINE_LIMIT_HOURLY="10"
|
||||||
|
TIMELINE_LIMIT_DAILY="10"
|
||||||
|
TIMELINE_LIMIT_WEEKLY="0"
|
||||||
|
TIMELINE_LIMIT_MONTHLY="10"
|
||||||
|
TIMELINE_LIMIT_YEARLY="10"
|
||||||
|
|
||||||
|
|
||||||
|
# cleanup empty pre-post-pairs
|
||||||
|
EMPTY_PRE_POST_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for empty pre-post-pair cleanup
|
||||||
|
EMPTY_PRE_POST_MIN_AGE="1800"
|
||||||
|
|
||||||
8
kumonoboru-prune.service
Normal file
8
kumonoboru-prune.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud Backup Utility
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /home/shmick/Scripts/Kumonoboru --clean
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
9
kumonoboru-prune.timer
Normal file
9
kumonoboru-prune.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud backup utility
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=monthly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
8
kumonoboru.service
Normal file
8
kumonoboru.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud Backup Utility
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /home/shmick/Scripts/Kumonoboru
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
9
kumonoboru.timer
Normal file
9
kumonoboru.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Kumonoboru - Cloud backup utility
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
214
main.cf
214
main.cf
@@ -1,15 +1,11 @@
|
|||||||
#
|
|
||||||
# -----------------------------------------------------------------------
|
|
||||||
# NOTE: Many parameters have already been added to the end of this file
|
|
||||||
# by config.postfix. So take care that you don't uncomment
|
|
||||||
# and set a parameter without checking whether it has been added
|
|
||||||
# to the end of this file.
|
|
||||||
# -----------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Global Postfix configuration file. This file lists only a subset
|
# Global Postfix configuration file. This file lists only a subset
|
||||||
# of all parameters. For the syntax, and for a complete parameter
|
# of all parameters. For the syntax, and for a complete parameter
|
||||||
# list, see the postconf(5) manual page (command: "man 5 postconf").
|
# list, see the postconf(5) manual page (command: "man 5 postconf").
|
||||||
#
|
#
|
||||||
|
# TIP: use the command "postconf -n" to view main.cf parameter
|
||||||
|
# settings, "postconf parametername" to view a specific parameter,
|
||||||
|
# and "postconf 'parametername=value'" to set a specific parameter.
|
||||||
|
#
|
||||||
# For common configuration examples, see BASIC_CONFIGURATION_README
|
# For common configuration examples, see BASIC_CONFIGURATION_README
|
||||||
# and STANDARD_CONFIGURATION_README. To find these documents, use
|
# and STANDARD_CONFIGURATION_README. To find these documents, use
|
||||||
# the command "postconf html_directory readme_directory", or go to
|
# the command "postconf html_directory readme_directory", or go to
|
||||||
@@ -35,7 +31,7 @@
|
|||||||
#
|
#
|
||||||
# The level below is what should be used with new (not upgrade) installs.
|
# The level below is what should be used with new (not upgrade) installs.
|
||||||
#
|
#
|
||||||
compatibility_level = 3.6
|
compatibility_level = 3.7
|
||||||
|
|
||||||
# SOFT BOUNCE
|
# SOFT BOUNCE
|
||||||
#
|
#
|
||||||
@@ -60,13 +56,13 @@ queue_directory = /var/spool/postfix
|
|||||||
# The command_directory parameter specifies the location of all
|
# The command_directory parameter specifies the location of all
|
||||||
# postXXX commands.
|
# postXXX commands.
|
||||||
#
|
#
|
||||||
command_directory = /usr/sbin
|
command_directory = /usr/bin
|
||||||
|
|
||||||
# The daemon_directory parameter specifies the location of all Postfix
|
# The daemon_directory parameter specifies the location of all Postfix
|
||||||
# daemon programs (i.e. programs listed in the master.cf file). This
|
# daemon programs (i.e. programs listed in the master.cf file). This
|
||||||
# directory must be owned by root.
|
# directory must be owned by root.
|
||||||
#
|
#
|
||||||
daemon_directory = /usr/lib/postfix/bin/
|
daemon_directory = /usr/lib/postfix/bin
|
||||||
|
|
||||||
# The data_directory parameter specifies the location of Postfix-writable
|
# The data_directory parameter specifies the location of Postfix-writable
|
||||||
# data files (caches, random numbers). This directory must be owned
|
# data files (caches, random numbers). This directory must be owned
|
||||||
@@ -137,7 +133,7 @@ mail_owner = postfix
|
|||||||
#
|
#
|
||||||
# Note: you need to stop/start Postfix when this parameter changes.
|
# Note: you need to stop/start Postfix when this parameter changes.
|
||||||
#
|
#
|
||||||
inet_interfaces = 192.168.0.66
|
#inet_interfaces = all
|
||||||
#inet_interfaces = $myhostname
|
#inet_interfaces = $myhostname
|
||||||
#inet_interfaces = $myhostname, localhost
|
#inet_interfaces = $myhostname, localhost
|
||||||
|
|
||||||
@@ -255,10 +251,13 @@ unknown_local_recipient_reject_code = 550
|
|||||||
# You can specify the list of "trusted" network addresses by hand
|
# You can specify the list of "trusted" network addresses by hand
|
||||||
# or you can let Postfix do it for you (which is the default).
|
# or you can let Postfix do it for you (which is the default).
|
||||||
#
|
#
|
||||||
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
|
# By default (mynetworks_style = host), Postfix "trusts" only
|
||||||
# clients in the same IP subnetworks as the local machine.
|
# the local machine.
|
||||||
|
#
|
||||||
|
# Specify "mynetworks_style = subnet" when Postfix should "trust"
|
||||||
|
# SMTP clients in the same IP subnetworks as the local machine.
|
||||||
# On Linux, this works correctly only with interfaces specified
|
# On Linux, this works correctly only with interfaces specified
|
||||||
# with the "ifconfig" command.
|
# with the "ifconfig" or "ip" command.
|
||||||
#
|
#
|
||||||
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
|
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
|
||||||
# clients in the same IP class A/B/C networks as the local machine.
|
# clients in the same IP class A/B/C networks as the local machine.
|
||||||
@@ -286,17 +285,19 @@ unknown_local_recipient_reject_code = 550
|
|||||||
#
|
#
|
||||||
#mynetworks = 168.100.3.0/28, 127.0.0.0/8
|
#mynetworks = 168.100.3.0/28, 127.0.0.0/8
|
||||||
#mynetworks = $config_directory/mynetworks
|
#mynetworks = $config_directory/mynetworks
|
||||||
#mynetworks = lmdb:/etc/postfix/network_table
|
#mynetworks = hash:/etc/postfix/network_table
|
||||||
|
|
||||||
# The relay_domains parameter restricts what destinations this system will
|
# The relay_domains parameter restricts what destinations this system will
|
||||||
# relay mail to. See the smtpd_recipient_restrictions description in
|
# relay mail to. See the smtpd_relay_restrictions and
|
||||||
# postconf(5) for detailed information.
|
# smtpd_recipient_restrictions descriptions in postconf(5) for detailed
|
||||||
|
# information.
|
||||||
#
|
#
|
||||||
# By default, Postfix relays mail
|
# By default, Postfix relays mail
|
||||||
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
|
# - from "trusted" clients (IP address matches $mynetworks, or is
|
||||||
|
# SASL authenticated) to any destination,
|
||||||
# - from "untrusted" clients to destinations that match $relay_domains or
|
# - from "untrusted" clients to destinations that match $relay_domains or
|
||||||
# subdomains thereof, except addresses with sender-specified routing.
|
# subdomains thereof, except addresses with sender-specified routing.
|
||||||
# The default relay_domains value is $mydestination.
|
# The default relay_domains value is empty.
|
||||||
#
|
#
|
||||||
# In addition to the above, the Postfix SMTP server by default accepts mail
|
# In addition to the above, the Postfix SMTP server by default accepts mail
|
||||||
# that Postfix is final destination for:
|
# that Postfix is final destination for:
|
||||||
@@ -316,7 +317,7 @@ unknown_local_recipient_reject_code = 550
|
|||||||
# list this system as their primary or backup MX host. See the
|
# list this system as their primary or backup MX host. See the
|
||||||
# permit_mx_backup restriction description in postconf(5).
|
# permit_mx_backup restriction description in postconf(5).
|
||||||
#
|
#
|
||||||
#relay_domains = $mydestination
|
#relay_domains =
|
||||||
|
|
||||||
# INTERNET OR INTRANET
|
# INTERNET OR INTRANET
|
||||||
|
|
||||||
@@ -351,7 +352,7 @@ unknown_local_recipient_reject_code = 550
|
|||||||
# In the left-hand side, specify an @domain.tld wild-card, or specify
|
# In the left-hand side, specify an @domain.tld wild-card, or specify
|
||||||
# a user@domain.tld address.
|
# a user@domain.tld address.
|
||||||
#
|
#
|
||||||
#relay_recipient_maps = lmdb:/etc/postfix/relay_recipients
|
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
||||||
|
|
||||||
# INPUT RATE CONTROL
|
# INPUT RATE CONTROL
|
||||||
#
|
#
|
||||||
@@ -406,9 +407,10 @@ unknown_local_recipient_reject_code = 550
|
|||||||
# "postfix reload" to eliminate the delay.
|
# "postfix reload" to eliminate the delay.
|
||||||
#
|
#
|
||||||
#alias_maps = dbm:/etc/aliases
|
#alias_maps = dbm:/etc/aliases
|
||||||
#alias_maps = lmdb:/etc/aliases
|
#alias_maps = hash:/etc/aliases
|
||||||
#alias_maps = lmdb:/etc/aliases, nis:mail.aliases
|
#alias_maps = hash:/etc/aliases, nis:mail.aliases
|
||||||
#alias_maps = netinfo:/aliases
|
#alias_maps = netinfo:/aliases
|
||||||
|
alias_maps = hash:/etc/postfix/aliases
|
||||||
|
|
||||||
# The alias_database parameter specifies the alias database(s) that
|
# The alias_database parameter specifies the alias database(s) that
|
||||||
# are built with "newaliases" or "sendmail -bi". This is a separate
|
# are built with "newaliases" or "sendmail -bi". This is a separate
|
||||||
@@ -417,8 +419,9 @@ unknown_local_recipient_reject_code = 550
|
|||||||
#
|
#
|
||||||
#alias_database = dbm:/etc/aliases
|
#alias_database = dbm:/etc/aliases
|
||||||
#alias_database = dbm:/etc/mail/aliases
|
#alias_database = dbm:/etc/mail/aliases
|
||||||
#alias_database = lmdb:/etc/aliases
|
#alias_database = hash:/etc/aliases
|
||||||
#alias_database = lmdb:/etc/aliases, lmdb:/opt/majordomo/aliases
|
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
|
||||||
|
alias_database = $alias_maps
|
||||||
|
|
||||||
# ADDRESS EXTENSIONS (e.g., user+foo)
|
# ADDRESS EXTENSIONS (e.g., user+foo)
|
||||||
#
|
#
|
||||||
@@ -575,7 +578,6 @@ unknown_local_recipient_reject_code = 550
|
|||||||
#
|
#
|
||||||
#smtpd_banner = $myhostname ESMTP $mail_name
|
#smtpd_banner = $myhostname ESMTP $mail_name
|
||||||
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
|
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
|
||||||
smtpd_banner = $myhostname ESMTP
|
|
||||||
|
|
||||||
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
||||||
#
|
#
|
||||||
@@ -648,7 +650,7 @@ debugger_command =
|
|||||||
# sendmail_path: The full pathname of the Postfix sendmail command.
|
# sendmail_path: The full pathname of the Postfix sendmail command.
|
||||||
# This is the Sendmail-compatible mail posting interface.
|
# This is the Sendmail-compatible mail posting interface.
|
||||||
#
|
#
|
||||||
sendmail_path = /usr/sbin/sendmail
|
sendmail_path = /usr/bin/sendmail
|
||||||
|
|
||||||
# newaliases_path: The full pathname of the Postfix newaliases command.
|
# newaliases_path: The full pathname of the Postfix newaliases command.
|
||||||
# This is the Sendmail-compatible command to build alias databases.
|
# This is the Sendmail-compatible command to build alias databases.
|
||||||
@@ -664,11 +666,11 @@ mailq_path = /usr/bin/mailq
|
|||||||
# commands. This must be a group name with a numerical group ID that
|
# commands. This must be a group name with a numerical group ID that
|
||||||
# is not shared with other accounts, not even with the Postfix account.
|
# is not shared with other accounts, not even with the Postfix account.
|
||||||
#
|
#
|
||||||
setgid_group = maildrop
|
setgid_group = postdrop
|
||||||
|
|
||||||
# html_directory: The location of the Postfix HTML documentation.
|
# html_directory: The location of the Postfix HTML documentation.
|
||||||
#
|
#
|
||||||
html_directory = /usr/share/doc/packages/postfix-doc/html
|
html_directory = no
|
||||||
|
|
||||||
# manpage_directory: The location of the Postfix on-line manual pages.
|
# manpage_directory: The location of the Postfix on-line manual pages.
|
||||||
#
|
#
|
||||||
@@ -677,153 +679,11 @@ manpage_directory = /usr/share/man
|
|||||||
# sample_directory: The location of the Postfix sample configuration files.
|
# sample_directory: The location of the Postfix sample configuration files.
|
||||||
# This parameter is obsolete as of Postfix 2.1.
|
# This parameter is obsolete as of Postfix 2.1.
|
||||||
#
|
#
|
||||||
sample_directory = /usr/share/doc/packages/postfix-doc/samples
|
sample_directory = /etc/postfix
|
||||||
|
|
||||||
# readme_directory: The location of the Postfix README files.
|
# readme_directory: The location of the Postfix README files.
|
||||||
#
|
#
|
||||||
readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
|
readme_directory = /usr/share/doc/postfix
|
||||||
|
inet_protocols = ipv4
|
||||||
############################################################
|
shlib_directory = /usr/lib/postfix
|
||||||
#
|
meta_directory = /etc/postfix
|
||||||
# before changing values manually consider editing
|
|
||||||
# /etc/sysconfig/postfix
|
|
||||||
# and run
|
|
||||||
# config.postfix
|
|
||||||
#
|
|
||||||
# if you miss a feature of config.postfix then just send a
|
|
||||||
# mail to chris@computersalat.de
|
|
||||||
# patches for new feature(s) are also welcome :)
|
|
||||||
#
|
|
||||||
############################################################
|
|
||||||
|
|
||||||
biff = no
|
|
||||||
content_filter =
|
|
||||||
delay_warning_time = 1h
|
|
||||||
disable_dns_lookups = no
|
|
||||||
disable_mime_output_conversion = no
|
|
||||||
disable_vrfy_command = yes
|
|
||||||
inet_interfaces = 192.168.0.66
|
|
||||||
inet_protocols = all
|
|
||||||
masquerade_classes = envelope_sender, header_sender, header_recipient
|
|
||||||
masquerade_domains =
|
|
||||||
masquerade_exceptions = root
|
|
||||||
mydestination = $myhostname, localhost.$mydomain, localhost
|
|
||||||
myhostname = localhost
|
|
||||||
mynetworks_style = subnet
|
|
||||||
relayhost =
|
|
||||||
|
|
||||||
alias_maps = lmdb:/etc/aliases
|
|
||||||
canonical_maps = lmdb:/etc/postfix/canonical
|
|
||||||
relocated_maps = lmdb:/etc/postfix/relocated
|
|
||||||
sender_canonical_maps = lmdb:/etc/postfix/sender_canonical
|
|
||||||
transport_maps = lmdb:/etc/postfix/transport
|
|
||||||
mail_spool_directory = /var/mail
|
|
||||||
message_strip_characters = \0
|
|
||||||
defer_transports =
|
|
||||||
mailbox_command =
|
|
||||||
mailbox_transport =
|
|
||||||
mailbox_size_limit = 0
|
|
||||||
message_size_limit = 0
|
|
||||||
strict_8bitmime = no
|
|
||||||
strict_rfc821_envelopes = no
|
|
||||||
smtpd_delay_reject = yes
|
|
||||||
smtpd_helo_required = no
|
|
||||||
|
|
||||||
smtpd_client_restrictions =
|
|
||||||
|
|
||||||
smtpd_helo_restrictions =
|
|
||||||
|
|
||||||
smtpd_sender_restrictions = lmdb:/etc/postfix/access
|
|
||||||
|
|
||||||
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
|
|
||||||
|
|
||||||
|
|
||||||
############################################################
|
|
||||||
# SASL stuff
|
|
||||||
############################################################
|
|
||||||
smtp_sasl_auth_enable = no
|
|
||||||
smtp_sasl_security_options =
|
|
||||||
smtp_sasl_password_maps =
|
|
||||||
smtpd_sasl_auth_enable = no
|
|
||||||
# cyrus : smtpd_sasl_type = cyrus
|
|
||||||
# smtpd_sasl_path = smtpd
|
|
||||||
# dovecot : smtpd_sasl_type = dovecot
|
|
||||||
# smtpd_sasl_path = private/auth
|
|
||||||
smtpd_sasl_type = cyrus
|
|
||||||
smtpd_sasl_path = smtpd
|
|
||||||
############################################################
|
|
||||||
# TLS stuff
|
|
||||||
############################################################
|
|
||||||
#tls_append_default_CA = no
|
|
||||||
relay_clientcerts =
|
|
||||||
#tls_random_source = dev:/dev/urandom
|
|
||||||
|
|
||||||
smtp_use_tls = no
|
|
||||||
#smtp_tls_loglevel = 0
|
|
||||||
smtp_enforce_tls = no
|
|
||||||
smtp_tls_CAfile =
|
|
||||||
smtp_tls_CApath =
|
|
||||||
smtp_tls_cert_file =
|
|
||||||
smtp_tls_key_file =
|
|
||||||
#smtp_tls_policy_maps = lmdb:/etc/postfix/tls_policy
|
|
||||||
#smtp_tls_session_cache_timeout = 3600s
|
|
||||||
smtp_tls_session_cache_database =
|
|
||||||
|
|
||||||
smtpd_use_tls = no
|
|
||||||
#smtpd_tls_loglevel = 0
|
|
||||||
smtpd_tls_CAfile =
|
|
||||||
smtpd_tls_CApath =
|
|
||||||
smtpd_tls_cert_file =
|
|
||||||
smtpd_tls_key_file =
|
|
||||||
smtpd_tls_ask_ccert = no
|
|
||||||
smtpd_tls_exclude_ciphers = RC4
|
|
||||||
smtpd_tls_received_header = no
|
|
||||||
############################################################
|
|
||||||
# OpenDKIM
|
|
||||||
############################################################
|
|
||||||
#smtpd_milters = unix:/run/opendkim/opendkim.sock
|
|
||||||
#non_smtpd_milters = $smtpd_milters
|
|
||||||
#milter_default_action = accept
|
|
||||||
#milter_protocol = 2
|
|
||||||
############################################################
|
|
||||||
# Start MySQL from postfixwiki.org
|
|
||||||
############################################################
|
|
||||||
relay_domains = $mydestination lmdb:/etc/postfix/relay
|
|
||||||
relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
|
||||||
#virtual_alias_domains =
|
|
||||||
virtual_alias_maps = lmdb:/etc/postfix/virtual
|
|
||||||
#virtual_uid_maps = static:303
|
|
||||||
#virtual_gid_maps = static:303
|
|
||||||
#virtual_minimum_uid = 303
|
|
||||||
#virtual_mailbox_base = /srv/maildirs
|
|
||||||
#virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
|
|
||||||
#virtual_mailbox_limit = 0
|
|
||||||
#virtual_mailbox_limit_inbox = no
|
|
||||||
#virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
|
|
||||||
## For dovecot LMTP replace 'virtual' with 'lmtp:unix:private/dovecot-lmtp'
|
|
||||||
#virtual_transport = virtual
|
|
||||||
## Additional for quota support
|
|
||||||
#virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
|
|
||||||
#virtual_mailbox_limit_override = yes
|
|
||||||
### Needs Maildir++ compatible IMAP servers, like Courier-IMAP
|
|
||||||
#virtual_maildir_filter = yes
|
|
||||||
#virtual_maildir_filter_maps = lmdb:/etc/postfix/vfilter
|
|
||||||
#virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
|
|
||||||
#virtual_maildir_limit_message_maps = lmdb:/etc/postfix/vmsg
|
|
||||||
#virtual_overquota_bounce = yes
|
|
||||||
#virtual_trash_count = yes
|
|
||||||
#virtual_trash_name = ".Trash"
|
|
||||||
############################################################
|
|
||||||
# End MySQL from postfixwiki.org
|
|
||||||
############################################################
|
|
||||||
# Rewrite reject codes
|
|
||||||
############################################################
|
|
||||||
#unknown_address_reject_code = 550
|
|
||||||
#unknown_client_reject_code = 550
|
|
||||||
#unknown_hostname_reject_code = 550
|
|
||||||
#unverified_recipient_reject_code = 550
|
|
||||||
#soft_bounce = yes
|
|
||||||
############################################################
|
|
||||||
#debug_peer_list = example.com
|
|
||||||
#debug_peer_level = 3
|
|
||||||
|
|
||||||
|
|||||||
8
murchison.service
Normal file
8
murchison.service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Murchison - Configuration Backup Utility
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash /home/shmick/Scripts/Murchison
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
9
murchison.timer
Normal file
9
murchison.timer
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Murchison - Configuration backup utility
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
65
profile
Normal file
65
profile
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
# /etc/profile
|
||||||
|
|
||||||
|
# Set our umask
|
||||||
|
umask 022
|
||||||
|
|
||||||
|
# Append "$1" to $PATH when not already in.
|
||||||
|
# This function API is accessible to scripts in /etc/profile.d
|
||||||
|
append_path () {
|
||||||
|
case ":$PATH:" in
|
||||||
|
*:"$1":*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
PATH="${PATH:+$PATH:}$1"
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# Append our default paths
|
||||||
|
append_path '/usr/local/sbin'
|
||||||
|
append_path '/usr/local/bin'
|
||||||
|
append_path '/usr/bin'
|
||||||
|
|
||||||
|
# Force PATH to be environment
|
||||||
|
export PATH
|
||||||
|
|
||||||
|
# Load profiles from /etc/profile.d
|
||||||
|
if test -d /etc/profile.d/; then
|
||||||
|
for profile in /etc/profile.d/*.sh; do
|
||||||
|
test -r "$profile" && . "$profile"
|
||||||
|
done
|
||||||
|
unset profile
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Unload our profile API functions
|
||||||
|
unset -f append_path
|
||||||
|
|
||||||
|
# Source global bash config, when interactive but not posix or sh mode
|
||||||
|
if test "$BASH" &&\
|
||||||
|
test "$PS1" &&\
|
||||||
|
test -z "$POSIXLY_CORRECT" &&\
|
||||||
|
test "${0#-}" != sh &&\
|
||||||
|
test -r /etc/bash.bashrc
|
||||||
|
then
|
||||||
|
. /etc/bash.bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Termcap is outdated, old, and crusty, kill it.
|
||||||
|
unset TERMCAP
|
||||||
|
|
||||||
|
# Man is much better than us at figuring this out
|
||||||
|
unset MANPATH
|
||||||
|
|
||||||
|
###
|
||||||
|
###BackBlaze B2###
|
||||||
|
export B2_ACCOUNT_ID=8582a42a3b99 #Master Key
|
||||||
|
export B2_ACCOUNT_KEY=00041845e8dd29d7e3d091d77bb8a631ee71332be7 #Master Application ID
|
||||||
|
#export B2_ACCOUNT_ID=0008582a42a3b990000000003
|
||||||
|
#export B2_ACCOUTN_KEY=K000Zlz7MtKzu2LG0VZlYkeUitGeuHM
|
||||||
|
export RESTIC_PASSWORD='f$774$#je4%U8vp8ov*UsZMHqL$m3Smh#fEbbt7hyULQxfnnWmSiS5MEndzVWT$$n^@s$P*o4vV*^rgv3jvvrv@y35VppU$$y*vnG5V@botU&4$39Y6t9HSb3Z548M!4'
|
||||||
|
#export RESTIC_REPOSITORY="b2:Gerbil-TK" #Seperate buckets so not neccesarily
|
||||||
|
export RESTIC_CACHE_DIR='/var/tmp/restic'
|
||||||
|
### Shmick's Environment Variables
|
||||||
|
export SCRIPTS="/home/shmick/Scripts"
|
||||||
|
### Aliases ###
|
||||||
|
alias donnagurai="$SCRIPTS/Donnagurai"
|
||||||
|
alias uu="$SCRIPTS/UnboundUnbound"
|
||||||
70
root
70
root
@@ -1,7 +1,63 @@
|
|||||||
# DO NOT EDIT THIS FILE - edit the master and reinstall.
|
|
||||||
# (/tmp/crontab.IQxEVB installed on Sat Jan 22 12:42:47 2022)
|
# subvolume to snapshot
|
||||||
# (Cronie version 4.2)
|
SUBVOLUME="/"
|
||||||
#MAILTO=matanhorovitz@protonmail.com
|
|
||||||
@reboot sleep 10 && systemctl restart unbound > /dev/null 2>&1
|
# filesystem type
|
||||||
00 10 * * * /home/shmick/Scripts/Kumonoboru > /dev/null
|
FSTYPE="btrfs"
|
||||||
00 10 * * * /home/shmick/Scripts/ConfigBackup > /dev/null
|
|
||||||
|
|
||||||
|
# btrfs qgroup for space aware cleanup algorithms
|
||||||
|
QGROUP="1/0"
|
||||||
|
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space the snapshots may use
|
||||||
|
SPACE_LIMIT="0.5"
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space that should be free
|
||||||
|
FREE_LIMIT="0.2"
|
||||||
|
|
||||||
|
|
||||||
|
# users and groups allowed to work with config
|
||||||
|
ALLOW_USERS=""
|
||||||
|
ALLOW_GROUPS=""
|
||||||
|
|
||||||
|
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
|
||||||
|
# directory
|
||||||
|
SYNC_ACL="no"
|
||||||
|
|
||||||
|
|
||||||
|
# start comparing pre- and post-snapshot in background after creating
|
||||||
|
# post-snapshot
|
||||||
|
BACKGROUND_COMPARISON="yes"
|
||||||
|
|
||||||
|
|
||||||
|
# run daily number cleanup
|
||||||
|
NUMBER_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limit for number cleanup
|
||||||
|
NUMBER_MIN_AGE="1800"
|
||||||
|
NUMBER_LIMIT="2-10"
|
||||||
|
NUMBER_LIMIT_IMPORTANT="4-10"
|
||||||
|
|
||||||
|
|
||||||
|
# create hourly snapshots
|
||||||
|
TIMELINE_CREATE="no"
|
||||||
|
|
||||||
|
# cleanup hourly snapshots after some time
|
||||||
|
TIMELINE_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for timeline cleanup
|
||||||
|
TIMELINE_MIN_AGE="1800"
|
||||||
|
TIMELINE_LIMIT_HOURLY="10"
|
||||||
|
TIMELINE_LIMIT_DAILY="10"
|
||||||
|
TIMELINE_LIMIT_WEEKLY="0"
|
||||||
|
TIMELINE_LIMIT_MONTHLY="10"
|
||||||
|
TIMELINE_LIMIT_YEARLY="10"
|
||||||
|
|
||||||
|
|
||||||
|
# cleanup empty pre-post-pairs
|
||||||
|
EMPTY_PRE_POST_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for empty pre-post-pair cleanup
|
||||||
|
EMPTY_PRE_POST_MIN_AGE="1800"
|
||||||
|
|
||||||
|
|||||||
63
rootfs
Normal file
63
rootfs
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
# subvolume to snapshot
|
||||||
|
SUBVOLUME="/"
|
||||||
|
|
||||||
|
# filesystem type
|
||||||
|
FSTYPE="btrfs"
|
||||||
|
|
||||||
|
|
||||||
|
# btrfs qgroup for space aware cleanup algorithms
|
||||||
|
QGROUP=""
|
||||||
|
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space the snapshots may use
|
||||||
|
SPACE_LIMIT="0.5"
|
||||||
|
|
||||||
|
# fraction or absolute size of the filesystems space that should be free
|
||||||
|
FREE_LIMIT="0.2"
|
||||||
|
|
||||||
|
|
||||||
|
# users and groups allowed to work with config
|
||||||
|
ALLOW_USERS=""
|
||||||
|
ALLOW_GROUPS=""
|
||||||
|
|
||||||
|
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
|
||||||
|
# directory
|
||||||
|
SYNC_ACL="no"
|
||||||
|
|
||||||
|
|
||||||
|
# start comparing pre- and post-snapshot in background after creating
|
||||||
|
# post-snapshot
|
||||||
|
BACKGROUND_COMPARISON="yes"
|
||||||
|
|
||||||
|
|
||||||
|
# run daily number cleanup
|
||||||
|
NUMBER_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limit for number cleanup
|
||||||
|
NUMBER_MIN_AGE="1800"
|
||||||
|
NUMBER_LIMIT="50"
|
||||||
|
NUMBER_LIMIT_IMPORTANT="10"
|
||||||
|
|
||||||
|
|
||||||
|
# create hourly snapshots
|
||||||
|
TIMELINE_CREATE="yes"
|
||||||
|
|
||||||
|
# cleanup hourly snapshots after some time
|
||||||
|
TIMELINE_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for timeline cleanup
|
||||||
|
TIMELINE_MIN_AGE="1800"
|
||||||
|
TIMELINE_LIMIT_HOURLY="5"
|
||||||
|
TIMELINE_LIMIT_DAILY="7"
|
||||||
|
TIMELINE_LIMIT_WEEKLY="0"
|
||||||
|
TIMELINE_LIMIT_MONTHLY="0"
|
||||||
|
TIMELINE_LIMIT_YEARLY="0"
|
||||||
|
|
||||||
|
|
||||||
|
# cleanup empty pre-post-pairs
|
||||||
|
EMPTY_PRE_POST_CLEANUP="yes"
|
||||||
|
|
||||||
|
# limits for empty pre-post-pair cleanup
|
||||||
|
EMPTY_PRE_POST_MIN_AGE="1800"
|
||||||
|
|
||||||
569
unbound.conf
Normal file
569
unbound.conf
Normal file
@@ -0,0 +1,569 @@
|
|||||||
|
#
|
||||||
|
# See unbound.conf(5) man page.
|
||||||
|
#
|
||||||
|
# this is a comment.
|
||||||
|
|
||||||
|
#Use this to include other text into the file.
|
||||||
|
#include: "otherfile.conf"
|
||||||
|
|
||||||
|
# The server clause sets the main parameters.
|
||||||
|
server:
|
||||||
|
# whitespace is not necessary, but looks cleaner.
|
||||||
|
|
||||||
|
# verbosity number, 0 is least verbose. 1 is default.
|
||||||
|
verbosity: 1
|
||||||
|
|
||||||
|
# print statistics to the log (for every thread) every N seconds.
|
||||||
|
# Set to "" or 0 to disable. Default is disabled.
|
||||||
|
# Needed for munin plugin
|
||||||
|
statistics-interval: 0
|
||||||
|
|
||||||
|
# enable cumulative statistics, without clearing them after printing.
|
||||||
|
# Needed for munin plugin
|
||||||
|
statistics-cumulative: yes
|
||||||
|
|
||||||
|
# enable extended statistics (query types, answer codes, status)
|
||||||
|
# printed from unbound-control. default off, because of speed.
|
||||||
|
# Needed for munin plugin
|
||||||
|
extended-statistics: yes
|
||||||
|
|
||||||
|
# number of threads to create. 1 disables threading.
|
||||||
|
num-threads: 2
|
||||||
|
|
||||||
|
# specify the interfaces to answer queries from by ip-address.
|
||||||
|
# The default is to listen to localhost (127.0.0.1 and ::1).
|
||||||
|
# specify 0.0.0.0 and ::0 to bind to all available interfaces.
|
||||||
|
# specify every interface on a new 'interface:' labelled line.
|
||||||
|
# The listen interfaces are not changed on reload, only on restart.
|
||||||
|
# interface: 0.0.0.0
|
||||||
|
# interface: ::0
|
||||||
|
# interface: 192.0.2.153
|
||||||
|
# interface: 192.0.2.154
|
||||||
|
# interface: 2001:DB8::5
|
||||||
|
#
|
||||||
|
# for dns over tls and raw dns over port 80
|
||||||
|
# interface: 0.0.0.0@443
|
||||||
|
# interface: ::0@443
|
||||||
|
# interface: 0.0.0.0@80
|
||||||
|
# interface: ::0@80
|
||||||
|
|
||||||
|
# enable this feature to copy the source address of queries to reply.
|
||||||
|
# Socket options are not supported on all platforms. experimental.
|
||||||
|
# interface-automatic: yes
|
||||||
|
#
|
||||||
|
# NOTE: Enable this option when specifying interface 0.0.0.0 or ::0
|
||||||
|
# NOTE: Disabled per Fedora policy not to listen to * on default install
|
||||||
|
# NOTE: If deploying on non-default port, eg 80/443, this needs to be disabled
|
||||||
|
interface: 192.168.0.66
|
||||||
|
interface-automatic: no
|
||||||
|
|
||||||
|
# port to answer queries from
|
||||||
|
port: 8455
|
||||||
|
|
||||||
|
# specify the interfaces to send outgoing queries to authoritative
|
||||||
|
# server from by ip-address. If none, the default (all) interface
|
||||||
|
# is used. Specify every interface on a 'outgoing-interface:' line.
|
||||||
|
# outgoing-interface: 192.0.2.153
|
||||||
|
# outgoing-interface: 2001:DB8::5
|
||||||
|
# outgoing-interface: 2001:DB8::6
|
||||||
|
|
||||||
|
# number of ports to allocate per thread, determines the size of the
|
||||||
|
# port range that can be open simultaneously.
|
||||||
|
# outgoing-range: 4096
|
||||||
|
|
||||||
|
# permit unbound to use this port number or port range for
|
||||||
|
# making outgoing queries, using an outgoing interface.
|
||||||
|
# Only ephemeral ports are allowed by SElinux
|
||||||
|
outgoing-port-permit: 32768-65535
|
||||||
|
|
||||||
|
# deny unbound the use this of port number or port range for
|
||||||
|
# making outgoing queries, using an outgoing interface.
|
||||||
|
# Use this to make sure unbound does not grab a UDP port that some
|
||||||
|
# other server on this computer needs. The default is to avoid
|
||||||
|
# IANA-assigned port numbers.
|
||||||
|
# Our SElinux policy does not allow non-ephemeral ports to be used
|
||||||
|
outgoing-port-avoid: 0-32767
|
||||||
|
|
||||||
|
# number of outgoing simultaneous tcp buffers to hold per thread.
|
||||||
|
# outgoing-num-tcp: 10
|
||||||
|
|
||||||
|
# number of incoming simultaneous tcp buffers to hold per thread.
|
||||||
|
# incoming-num-tcp: 10
|
||||||
|
|
||||||
|
# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
|
||||||
|
# 0 is system default. Use 4m to catch query spikes for busy servers.
|
||||||
|
# so-rcvbuf: 0
|
||||||
|
|
||||||
|
# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
|
||||||
|
# 0 is system default. Use 4m to handle spikes on very busy servers.
|
||||||
|
# so-sndbuf: 0
|
||||||
|
|
||||||
|
# EDNS reassembly buffer to advertise to UDP peers (the actual buffer
|
||||||
|
# is set with msg-buffer-size). 1480 can solve fragmentation (timeouts).
|
||||||
|
# edns-buffer-size: 4096
|
||||||
|
|
||||||
|
# Maximum UDP response size (not applied to TCP response).
|
||||||
|
# Suggested values are 512 to 4096. Default is 4096. 65536 disables it.
|
||||||
|
# 3072 causes +dnssec any isc.org queries to need TC=1. Helps mitigating DDOS
|
||||||
|
max-udp-size: 3072
|
||||||
|
|
||||||
|
# buffer size for handling DNS data. No messages larger than this
|
||||||
|
# size can be sent or received, by UDP or TCP. In bytes.
|
||||||
|
# msg-buffer-size: 65552
|
||||||
|
|
||||||
|
# the amount of memory to use for the message cache.
|
||||||
|
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
||||||
|
# msg-cache-size: 4m
|
||||||
|
|
||||||
|
# the number of slabs to use for the message cache.
|
||||||
|
# the number of slabs must be a power of 2.
|
||||||
|
# more slabs reduce lock contention, but fragment memory usage.
|
||||||
|
# msg-cache-slabs: 4
|
||||||
|
|
||||||
|
# the number of queries that a thread gets to service.
|
||||||
|
# num-queries-per-thread: 1024
|
||||||
|
|
||||||
|
# if very busy, 50% queries run to completion, 50% get timeout in msec
|
||||||
|
# jostle-timeout: 200
|
||||||
|
|
||||||
|
# the amount of memory to use for the RRset cache.
|
||||||
|
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
||||||
|
# rrset-cache-size: 4m
|
||||||
|
|
||||||
|
# the number of slabs to use for the RRset cache.
|
||||||
|
# the number of slabs must be a power of 2.
|
||||||
|
# more slabs reduce lock contention, but fragment memory usage.
|
||||||
|
# rrset-cache-slabs: 4
|
||||||
|
|
||||||
|
# the time to live (TTL) value lower bound, in seconds. Default 0.
|
||||||
|
# If more than an hour could easily give trouble due to stale data.
|
||||||
|
# cache-min-ttl: 0
|
||||||
|
|
||||||
|
# the time to live (TTL) value cap for RRsets and messages in the
|
||||||
|
# cache. Items are not cached for longer. In seconds.
|
||||||
|
# cache-max-ttl: 86400
|
||||||
|
|
||||||
|
# the time to live (TTL) value for cached roundtrip times, lameness
|
||||||
|
# and EDNS version information for hosts. In seconds.
|
||||||
|
# infra-host-ttl: 900
|
||||||
|
|
||||||
|
# the number of slabs to use for the Infrastructure cache.
|
||||||
|
# the number of slabs must be a power of 2.
|
||||||
|
# more slabs reduce lock contention, but fragment memory usage.
|
||||||
|
# infra-cache-slabs: 4
|
||||||
|
|
||||||
|
# the maximum number of hosts that are cached (roundtrip, EDNS, lame).
|
||||||
|
# infra-cache-numhosts: 10000
|
||||||
|
|
||||||
|
# Enable IPv4, "yes" or "no".
|
||||||
|
do-ip4: yes
|
||||||
|
|
||||||
|
# Enable IPv6, "yes" or "no".
|
||||||
|
do-ip6: no
|
||||||
|
|
||||||
|
# Enable UDP, "yes" or "no".
|
||||||
|
# NOTE: if setting up an unbound on tls443 for public use, you might want to
|
||||||
|
# disable UDP to avoid being used in DNS amplification attacks.
|
||||||
|
do-udp: yes
|
||||||
|
|
||||||
|
# Enable TCP, "yes" or "no".
|
||||||
|
do-tcp: yes
|
||||||
|
|
||||||
|
# upstream connections use TCP only (and no UDP), "yes" or "no"
|
||||||
|
# useful for tunneling scenarios, default no.
|
||||||
|
# tcp-upstream: no
|
||||||
|
|
||||||
|
# Detach from the terminal, run in background, "yes" or "no".
|
||||||
|
# do-daemonize: yes
|
||||||
|
|
||||||
|
# control which clients are allowed to make (recursive) queries
|
||||||
|
# to this server. Specify classless netblocks with /size and action.
|
||||||
|
# By default everything is refused, except for localhost.
|
||||||
|
# Choose deny (drop message), refuse (polite error reply),
|
||||||
|
# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
|
||||||
|
# access-control: 0.0.0.0/0 refuse
|
||||||
|
# access-control: 127.0.0.0/8 allow
|
||||||
|
# access-control: ::0/0 refuse
|
||||||
|
# access-control: ::1 allow
|
||||||
|
# access-control: ::ffff:127.0.0.1 allow
|
||||||
|
access-control: 192.168.0.0/24 allow
|
||||||
|
|
||||||
|
# if given, a chroot(2) is done to the given directory.
|
||||||
|
# i.e. you can chroot to the working directory, for example,
|
||||||
|
# for extra security, but make sure all files are in that directory.
|
||||||
|
#
|
||||||
|
# If chroot is enabled, you should pass the configfile (from the
|
||||||
|
# commandline) as a full path from the original root. After the
|
||||||
|
# chroot has been performed the now defunct portion of the config
|
||||||
|
# file path is removed to be able to reread the config after a reload.
|
||||||
|
#
|
||||||
|
# All other file paths (working dir, logfile, roothints, and
|
||||||
|
# key files) can be specified in several ways:
|
||||||
|
# o as an absolute path relative to the new root.
|
||||||
|
# o as a relative path to the working directory.
|
||||||
|
# o as an absolute path relative to the original root.
|
||||||
|
# In the last case the path is adjusted to remove the unused portion.
|
||||||
|
#
|
||||||
|
# The pid file can be absolute and outside of the chroot, it is
|
||||||
|
# written just prior to performing the chroot and dropping permissions.
|
||||||
|
#
|
||||||
|
# Additionally, unbound may need to access /dev/random (for entropy).
|
||||||
|
# How to do this is specific to your OS.
|
||||||
|
#
|
||||||
|
# If you give "" no chroot is performed. The path must not end in a /.
|
||||||
|
# chroot: "/var/lib/unbound"
|
||||||
|
chroot: ""
|
||||||
|
|
||||||
|
# if given, user privileges are dropped (after binding port),
|
||||||
|
# and the given username is assumed. Default is user "unbound".
|
||||||
|
# If you give "" no privileges are dropped.
|
||||||
|
username: "unbound"
|
||||||
|
|
||||||
|
# the working directory. The relative files in this config are
|
||||||
|
# relative to this directory. If you give "" the working directory
|
||||||
|
# is not changed.
|
||||||
|
directory: "/etc/unbound"
|
||||||
|
|
||||||
|
# the log file, "" means log to stderr.
|
||||||
|
# Use of this option sets use-syslog to "no".
|
||||||
|
# logfile: ""
|
||||||
|
|
||||||
|
# Log to syslog(3) if yes. The log facility LOG_DAEMON is used to
|
||||||
|
# log to, with identity "unbound". If yes, it overrides the logfile.
|
||||||
|
use-syslog: no
|
||||||
|
|
||||||
|
# print UTC timestamp in ascii to logfile, default is epoch in seconds.
|
||||||
|
log-time-ascii: yes
|
||||||
|
|
||||||
|
# print one line with time, IP, name, type, class for every query.
|
||||||
|
# log-queries: no
|
||||||
|
|
||||||
|
# the pid file. Can be an absolute path outside of chroot/work dir.
|
||||||
|
pidfile: "/var/run/unbound/unbound.pid"
|
||||||
|
|
||||||
|
# file to read root hints from.
|
||||||
|
# get one from ftp://FTP.INTERNIC.NET/domain/named.cache
|
||||||
|
# root-hints: ""
|
||||||
|
|
||||||
|
# enable to not answer id.server and hostname.bind queries.
|
||||||
|
# hide-identity: no
|
||||||
|
|
||||||
|
# enable to not answer version.server and version.bind queries.
|
||||||
|
# hide-version: no
|
||||||
|
|
||||||
|
# the identity to report. Leave "" or default to return hostname.
|
||||||
|
# identity: ""
|
||||||
|
|
||||||
|
# the version to report. Leave "" or default to return package version.
|
||||||
|
# version: ""
|
||||||
|
|
||||||
|
# the target fetch policy.
|
||||||
|
# series of integers describing the policy per dependency depth.
|
||||||
|
# The number of values in the list determines the maximum dependency
|
||||||
|
# depth the recursor will pursue before giving up. Each integer means:
|
||||||
|
# -1 : fetch all targets opportunistically,
|
||||||
|
# 0: fetch on demand,
|
||||||
|
# positive value: fetch that many targets opportunistically.
|
||||||
|
# Enclose the list of numbers between quotes ("").
|
||||||
|
# target-fetch-policy: "3 2 1 0 0"
|
||||||
|
|
||||||
|
# Harden against very small EDNS buffer sizes.
|
||||||
|
# harden-short-bufsize: no
|
||||||
|
|
||||||
|
# Harden against unseemly large queries.
|
||||||
|
# harden-large-queries: no
|
||||||
|
|
||||||
|
# Harden against out of zone rrsets, to avoid spoofing attempts.
|
||||||
|
harden-glue: yes
|
||||||
|
|
||||||
|
# Harden against receiving dnssec-stripped data. If you turn it
|
||||||
|
# off, failing to validate dnskey data for a trustanchor will
|
||||||
|
# trigger insecure mode for that zone (like without a trustanchor).
|
||||||
|
# Default on, which insists on dnssec data for trust-anchored zones.
|
||||||
|
harden-dnssec-stripped: yes
|
||||||
|
|
||||||
|
# Harden against queries that fall under dnssec-signed nxdomain names.
|
||||||
|
harden-below-nxdomain: yes
|
||||||
|
|
||||||
|
# Harden the referral path by performing additional queries for
|
||||||
|
# infrastructure data. Validates the replies (if possible).
|
||||||
|
# Default off, because the lookups burden the server. Experimental
|
||||||
|
# implementation of draft-wijngaards-dnsext-resolver-side-mitigation.
|
||||||
|
harden-referral-path: yes
|
||||||
|
|
||||||
|
# Use 0x20-encoded random bits in the query to foil spoof attempts.
|
||||||
|
# This feature is an experimental implementation of draft dns-0x20.
|
||||||
|
# (this now fails on all GoDaddy customer domains, so disabled)
|
||||||
|
use-caps-for-id: no
|
||||||
|
|
||||||
|
# Enforce privacy of these addresses. Strips them away from answers.
|
||||||
|
# It may cause DNSSEC validation to additionally mark it as bogus.
|
||||||
|
# Protects against 'DNS Rebinding' (uses browser as network proxy).
|
||||||
|
# Only 'private-domain' and 'local-data' names are allowed to have
|
||||||
|
# these private addresses. No default.
|
||||||
|
# private-address: 10.0.0.0/8
|
||||||
|
# private-address: 172.16.0.0/12
|
||||||
|
# private-address: 192.168.0.0/16
|
||||||
|
# private-address: 192.254.0.0/16
|
||||||
|
# private-address: fd00::/8
|
||||||
|
# private-address: fe80::/10
|
||||||
|
|
||||||
|
# Allow the domain (and its subdomains) to contain private addresses.
|
||||||
|
# local-data statements are allowed to contain private addresses too.
|
||||||
|
# private-domain: "example.com"
|
||||||
|
|
||||||
|
# If nonzero, unwanted replies are not only reported in statistics,
|
||||||
|
# but also a running total is kept per thread. If it reaches the
|
||||||
|
# threshold, a warning is printed and a defensive action is taken,
|
||||||
|
# the cache is cleared to flush potential poison out of it.
|
||||||
|
# A suggested value is 10000000, the default is 0 (turned off).
|
||||||
|
unwanted-reply-threshold: 10000000
|
||||||
|
|
||||||
|
# Do not query the following addresses. No DNS queries are sent there.
|
||||||
|
# List one address per entry. List classless netblocks with /size,
|
||||||
|
# do-not-query-address: 127.0.0.1/8
|
||||||
|
# do-not-query-address: ::1
|
||||||
|
|
||||||
|
# if yes, the above default do-not-query-address entries are present.
|
||||||
|
# if no, localhost can be queried (for testing and debugging).
|
||||||
|
# do-not-query-localhost: yes
|
||||||
|
|
||||||
|
# if yes, perform prefetching of almost expired message cache entries.
|
||||||
|
prefetch: yes
|
||||||
|
|
||||||
|
# if yes, perform key lookups adjacent to normal lookups.
|
||||||
|
prefetch-key: yes
|
||||||
|
|
||||||
|
# if yes, Unbound rotates RRSet order in response.
|
||||||
|
rrset-roundrobin: yes
|
||||||
|
|
||||||
|
# if yes, Unbound doesn't insert authority/additional sections
|
||||||
|
# into response messages when those sections are not required.
|
||||||
|
minimal-responses: yes
|
||||||
|
|
||||||
|
# module configuration of the server. A string with identifiers
|
||||||
|
# separated by spaces. "iterator" or "validator iterator"
|
||||||
|
# module-config: "validator iterator"
|
||||||
|
|
||||||
|
# File with DLV trusted keys. Same format as trust-anchor-file.
|
||||||
|
# There can be only one DLV configured, it is trusted from root down.
|
||||||
|
# Downloaded from https://secure.isc.org/ops/dlv/dlv.isc.org.key
|
||||||
|
# dlv-anchor-file: "/etc/unbound/dlv.isc.org.key"
|
||||||
|
|
||||||
|
# File with trusted keys for validation. Specify more than one file
|
||||||
|
# with several entries, one file per entry.
|
||||||
|
# Zone file format, with DS and DNSKEY entries.
|
||||||
|
# trust-anchor-file: ""
|
||||||
|
|
||||||
|
# File with trusted keys, kept uptodate using RFC5011 probes,
|
||||||
|
# initial file like trust-anchor-file, then it stores metadata.
|
||||||
|
# Use several entries, one per domain name, to track multiple zones.
|
||||||
|
# auto-trust-anchor-file: ""
|
||||||
|
|
||||||
|
# Trusted key for validation. DS or DNSKEY. specify the RR on a
|
||||||
|
# single line, surrounded by "". TTL is ignored. class is IN default.
|
||||||
|
# (These examples are from August 2007 and may not be valid anymore).
|
||||||
|
# trust-anchor: "nlnetlabs.nl. DNSKEY 257 3 5 AQPzzTWMz8qSWIQlfRnPckx2BiVmkVN6LPupO3mbz7FhLSnm26n6iG9N Lby97Ji453aWZY3M5/xJBSOS2vWtco2t8C0+xeO1bc/d6ZTy32DHchpW 6rDH1vp86Ll+ha0tmwyy9QP7y2bVw5zSbFCrefk8qCUBgfHm9bHzMG1U BYtEIQ=="
|
||||||
|
# trust-anchor: "jelte.nlnetlabs.nl. DS 42860 5 1 14D739EB566D2B1A5E216A0BA4D17FA9B038BE4A"
|
||||||
|
|
||||||
|
# File with trusted keys for validation. Specify more than one file
|
||||||
|
# with several entries, one file per entry. Like trust-anchor-file
|
||||||
|
# but has a different file format. Format is BIND-9 style format,
|
||||||
|
# the trusted-keys { name flag proto algo "key"; }; clauses are read.
|
||||||
|
# trusted-keys-file: ""
|
||||||
|
#
|
||||||
|
# trusted-keys-file: /etc/unbound/rootkey.bind
|
||||||
|
trusted-keys-file: /etc/unbound/keys.d/*.key
|
||||||
|
auto-trust-anchor-file: "/var/lib/unbound/root.key"
|
||||||
|
|
||||||
|
# Ignore chain of trust. Domain is treated as insecure.
|
||||||
|
# domain-insecure: "example.com"
|
||||||
|
|
||||||
|
# Override the date for validation with a specific fixed date.
|
||||||
|
# Do not set this unless you are debugging signature inception
|
||||||
|
# and expiration. "" or "0" turns the feature off.
|
||||||
|
# val-override-date: ""
|
||||||
|
|
||||||
|
# The time to live for bogus data, rrsets and messages. This avoids
|
||||||
|
# some of the revalidation, until the time interval expires. in secs.
|
||||||
|
# val-bogus-ttl: 60
|
||||||
|
|
||||||
|
# The signature inception and expiration dates are allowed to be off
|
||||||
|
# by 10% of the lifetime of the signature from our local clock.
|
||||||
|
# This leeway is capped with a minimum and a maximum. In seconds.
|
||||||
|
# val-sig-skew-min: 3600
|
||||||
|
# val-sig-skew-max: 86400
|
||||||
|
|
||||||
|
# Should additional section of secure message also be kept clean of
|
||||||
|
# unsecure data. Useful to shield the users of this validator from
|
||||||
|
# potential bogus data in the additional section. All unsigned data
|
||||||
|
# in the additional section is removed from secure messages.
|
||||||
|
val-clean-additional: yes
|
||||||
|
|
||||||
|
# Turn permissive mode on to permit bogus messages. Thus, messages
|
||||||
|
# for which security checks failed will be returned to clients,
|
||||||
|
# instead of SERVFAIL. It still performs the security checks, which
|
||||||
|
# result in interesting log files and possibly the AD bit in
|
||||||
|
# replies if the message is found secure. The default is off.
|
||||||
|
# NOTE: TURNING THIS ON DISABLES ALL DNSSEC SECURITY
|
||||||
|
val-permissive-mode: no
|
||||||
|
|
||||||
|
# Have the validator log failed validations for your diagnosis.
|
||||||
|
# 0: off. 1: A line per failed user query. 2: With reason and bad IP.
|
||||||
|
val-log-level: 1
|
||||||
|
|
||||||
|
# It is possible to configure NSEC3 maximum iteration counts per
|
||||||
|
# keysize. Keep this table very short, as linear search is done.
|
||||||
|
# A message with an NSEC3 with larger count is marked insecure.
|
||||||
|
# List in ascending order the keysize and count values.
|
||||||
|
# val-nsec3-keysize-iterations: "1024 150 2048 500 4096 2500"
|
||||||
|
|
||||||
|
# instruct the auto-trust-anchor-file probing to add anchors after ttl.
|
||||||
|
# add-holddown: 2592000 # 30 days
|
||||||
|
|
||||||
|
# instruct the auto-trust-anchor-file probing to del anchors after ttl.
|
||||||
|
# del-holddown: 2592000 # 30 days
|
||||||
|
|
||||||
|
# auto-trust-anchor-file probing removes missing anchors after ttl.
|
||||||
|
# If the value 0 is given, missing anchors are not removed.
|
||||||
|
# keep-missing: 31622400 # 366 days
|
||||||
|
|
||||||
|
# the amount of memory to use for the key cache.
|
||||||
|
# plain value in bytes or you can append k, m or G. default is "4Mb".
|
||||||
|
# key-cache-size: 4m
|
||||||
|
|
||||||
|
# the number of slabs to use for the key cache.
|
||||||
|
# the number of slabs must be a power of 2.
|
||||||
|
# more slabs reduce lock contention, but fragment memory usage.
|
||||||
|
# key-cache-slabs: 4
|
||||||
|
|
||||||
|
# the amount of memory to use for the negative cache (used for DLV).
|
||||||
|
# plain value in bytes or you can append k, m or G. default is "1Mb".
|
||||||
|
# neg-cache-size: 1m
|
||||||
|
|
||||||
|
# a number of locally served zones can be configured.
|
||||||
|
# local-zone: <zone> <type>
|
||||||
|
# local-data: "<resource record string>"
|
||||||
|
# o deny serves local data (if any), else, drops queries.
|
||||||
|
# o refuse serves local data (if any), else, replies with error.
|
||||||
|
# o static serves local data, else, nxdomain or nodata answer.
|
||||||
|
# o transparent serves local data, but resolves normally for other names
|
||||||
|
# o redirect serves the zone data for any subdomain in the zone.
|
||||||
|
# o nodefault can be used to normally resolve AS112 zones.
|
||||||
|
# o typetransparent resolves normally for other types and other names
|
||||||
|
#
|
||||||
|
# defaults are localhost address, reverse for 127.0.0.1 and ::1
|
||||||
|
# and nxdomain for AS112 zones. If you configure one of these zones
|
||||||
|
# the default content is omitted, or you can omit it with 'nodefault'.
|
||||||
|
#
|
||||||
|
# If you configure local-data without specifying local-zone, by
|
||||||
|
# default a transparent local-zone is created for the data.
|
||||||
|
#
|
||||||
|
# You can add locally served data with
|
||||||
|
# local-zone: "local." static
|
||||||
|
# local-data: "mycomputer.local. IN A 192.0.2.51"
|
||||||
|
# local-data: 'mytext.local TXT "content of text record"'
|
||||||
|
#
|
||||||
|
# You can override certain queries with
|
||||||
|
# local-data: "adserver.example.com A 127.0.0.1"
|
||||||
|
#
|
||||||
|
# You can redirect a domain to a fixed address with
|
||||||
|
# (this makes example.com, www.example.com, etc, all go to 192.0.2.3)
|
||||||
|
# local-zone: "example.com" redirect
|
||||||
|
# local-data: "example.com A 192.0.2.3"
|
||||||
|
#
|
||||||
|
# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
|
||||||
|
# You can also add PTR records using local-data directly, but then
|
||||||
|
# you need to do the reverse notation yourself.
|
||||||
|
# local-data-ptr: "192.0.2.3 www.example.com"
|
||||||
|
#
|
||||||
|
local-data: "pukeko.xyz A 192.168.0.66"
|
||||||
|
local-data: "*.pukeko.xyz A 192.168.0.66"
|
||||||
|
|
||||||
|
include: /etc/unbound/local.d/*.conf
|
||||||
|
|
||||||
|
# service clients over SSL (on the TCP sockets), with plain DNS inside
|
||||||
|
# the SSL stream. Give the certificate to use and private key.
|
||||||
|
# default is "" (disabled). requires restart to take effect.
|
||||||
|
# ssl-service-key: "/etc/unbound/unbound_server.key"
|
||||||
|
# ssl-service-pem: "/etc/unbound/unbound_server.pem"
|
||||||
|
# ssl-port: 443
|
||||||
|
|
||||||
|
# request upstream over SSL (with plain DNS inside the SSL stream).
|
||||||
|
# Default is no. Can be turned on and off with unbound-control.
|
||||||
|
# ssl-upstream: no
|
||||||
|
|
||||||
|
## Python config section. To enable:
|
||||||
|
## o use --with-pythonmodule to configure before compiling.
|
||||||
|
## o list python in the module-config string (above) to enable.
|
||||||
|
## o and give a python-script to run.
|
||||||
|
#python:
|
||||||
|
# # Script file to load
|
||||||
|
# # python-script: "/etc/unbound/ubmodule-tst.py"
|
||||||
|
|
||||||
|
|
||||||
|
# Remote control config section.
|
||||||
|
remote-control:
|
||||||
|
# Enable remote control with unbound-control(8) here.
|
||||||
|
# set up the keys and certificates with unbound-control-setup.
|
||||||
|
# Note: required for unbound-munin package
|
||||||
|
control-enable: no
|
||||||
|
|
||||||
|
# what interfaces are listened to for remote control.
|
||||||
|
# give 0.0.0.0 and ::0 to listen to all interfaces.
|
||||||
|
# control-interface: 127.0.0.1
|
||||||
|
# control-interface: ::1
|
||||||
|
|
||||||
|
# port number for remote control operations.
|
||||||
|
# control-port: 953
|
||||||
|
|
||||||
|
# unbound server key file.
|
||||||
|
server-key-file: "/etc/unbound/unbound_server.key"
|
||||||
|
|
||||||
|
# unbound server certificate file.
|
||||||
|
server-cert-file: "/etc/unbound/unbound_server.pem"
|
||||||
|
|
||||||
|
# unbound-control key file.
|
||||||
|
control-key-file: "/etc/unbound/unbound_control.key"
|
||||||
|
|
||||||
|
# unbound-control certificate file.
|
||||||
|
control-cert-file: "/etc/unbound/unbound_control.pem"
|
||||||
|
|
||||||
|
# Stub and Forward zones
|
||||||
|
|
||||||
|
include: /etc/unbound/conf.d/*.conf
|
||||||
|
|
||||||
|
# Stub zones.
|
||||||
|
# Create entries like below, to make all queries for 'example.com' and
|
||||||
|
# 'example.org' go to the given list of nameservers. list zero or more
|
||||||
|
# nameservers by hostname or by ipaddress. If you set stub-prime to yes,
|
||||||
|
# the list is treated as priming hints (default is no).
|
||||||
|
# stub-zone:
|
||||||
|
# name: "example.com"
|
||||||
|
# stub-addr: 192.0.2.68
|
||||||
|
# stub-prime: "no"
|
||||||
|
# stub-zone:
|
||||||
|
# name: "example.org"
|
||||||
|
# stub-host: ns.example.com.
|
||||||
|
# You can now also dynamically create and delete stub-zone's using
|
||||||
|
# unbound-control stub_add domain.com 1.2.3.4 5.6.7.8
|
||||||
|
# unbound-control stub_remove domain.com 1.2.3.4 5.6.7.8
|
||||||
|
|
||||||
|
# Forward zones
|
||||||
|
# Create entries like below, to make all queries for 'example.com' and
|
||||||
|
# 'example.org' go to the given list of servers. These servers have to handle
|
||||||
|
# recursion to other nameservers. List zero or more nameservers by hostname
|
||||||
|
# or by ipaddress. Use an entry with name "." to forward all queries.
|
||||||
|
# If you enable forward-first, it attempts without the forward if it fails.
|
||||||
|
# forward-zone:
|
||||||
|
# name: "example.com"
|
||||||
|
# forward-addr: 192.0.2.68
|
||||||
|
# forward-addr: 192.0.2.73@5355 # forward to port 5355.
|
||||||
|
# forward-first: no
|
||||||
|
# forward-zone:
|
||||||
|
# name: "example.org"
|
||||||
|
# forward-host: fwd.example.com
|
||||||
|
#
|
||||||
|
# You can now also dynamically create and delete forward-zone's using
|
||||||
|
# unbound-control forward_add domain.com 1.2.3.4 5.6.7.8
|
||||||
|
# unbound-control forward_remove domain.com 1.2.3.4 5.6.7.8
|
||||||
15
zprofile
Normal file
15
zprofile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
setopt nonomatch
|
||||||
|
source /etc/profile
|
||||||
|
unsetopt nonomatch
|
||||||
|
###BackBlaze B2###
|
||||||
|
export B2_ACCOUNT_ID=8582a42a3b99 #Master Key
|
||||||
|
export B2_ACCOUNT_KEY=00041845e8dd29d7e3d091d77bb8a631ee71332be7 #Master Application ID
|
||||||
|
#export B2_ACCOUNT_ID=0008582a42a3b990000000003
|
||||||
|
#export B2_ACCOUTN_KEY=K000Zlz7MtKzu2LG0VZlYkeUitGeuHM
|
||||||
|
export RESTIC_PASSWORD='f$774$#je4%U8vp8ov*UsZMHqL$m3Smh#fEbbt7hyULQxfnnWmSiS5MEndzVWT$$n^@s$P*o4vV*^rgv3jvvrv@y35VppU$$y*vnG5V@botU&4$39Y6t9HSb3Z548M!4'
|
||||||
|
#export RESTIC_REPOSITORY="b2:Gerbil-TK" #Seperate buckets so not neccesarily
|
||||||
|
### Shmick's Environment Variables
|
||||||
|
export SCRIPTS="/home/shmick/Scripts"
|
||||||
|
### Aliases ###
|
||||||
|
alias donnagurai="$SCRIPTS/Donnagurai"
|
||||||
|
alias uu="$SCRIPTS/UnboundUnbound"
|
||||||
Reference in New Issue
Block a user