mkdir -p /usr/share/nftables.d/chain-pre/mangle_postrouting/
echo "ip ttl set 65" > /usr/share/nftables.d/chain-pre/mangle_postrouting/01-set-ttl.nft
fw4 reload
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 | |
# GitHub user/repo | |
GITHUB_REPO="xmrig/xmrig" | |
# Use GitHub API to fetch the latest release information | |
LATEST_RELEASE_INFO=$(curl -s https://api.github.com/repos/$GITHUB_REPO/releases/latest) | |
# Parse version and tarball URL from the release information | |
XMRIG_VERSION=$(echo "$LATEST_RELEASE_INFO" | jq -r '.tag_name') |
apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
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 | |
# Function to download file | |
download_file() { | |
url=$1 | |
file_name=$2 | |
if command -v wget > /dev/null; then | |
wget "$url" -O "$file_name" | |
elif command -v curl > /dev/null; then |
iptables -t mangle -I POSTROUTING 1 -j TTL --ttl-set 65
References
NewerOlder