dig +short txt ch whoami.cloudflare @1.0.0.1
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
sudo service transmission-daemon stop
sudo nano /var/lib/transmission-daemon/info/settings.json
sudo service transmission-daemon start
settings for Wireguard traffic VPN (wg1):
echo "2 gia" >> /etc/iproute2/rt_tables
Enable critical parameters in sysctl.conf (edit the file and change if needed):
net.ipv4.conf.all.rp_filter = 2
net.ipv4.ip_forward = 1
PostUp = ip route add default via ChangeMeWithDefaultGateway dev ens18 table gia
PostUp = ip rule add fwmark 0x2 table gia
PostUp = /sbin/iptables -A OUTPUT -t mangle -o wg1 -p tcp –sport 9091 -j MARK –set-mark 2
PostUp = /sbin/iptables -A OUTPUT -t mangle -o wg1 -p tcp –sport 22 -j MARK –set-mark 2
PreDown = /sbin/iptables -D OUTPUT -t mangle -o wg1 -p tcp –sport 22 -j MARK –set-mark 2
PreDown = /sbin/iptables -D OUTPUT -t mangle -o wg1 -p tcp –sport 9091 -j MARK –set-mark 2
PreDown = ip rule del fwmark 0x2 table gia
PreDown = ip route del default via ChangeMeWithDefaultGateway dev ens18 table gia
Mount SMB share at boot:
sudo apt install cifs-utils
sudo nano /root/.examplecredentials
Insert credentials in this format:
username=example_username
password=example_password
sudo chmod 400 /root/.examplecredentials
sudo nano /etc/fstab
//address/of/smb/share /path/to/downloads/directory cifs credentials=/root/.examplecredentials,uid=debian-transmission,gid=debian-transmission 0 0