Skip to content

Instantly share code, notes, and snippets.

@Ne00n
Last active December 23, 2022 22:34
Show Gist options
  • Save Ne00n/e1759e129e8eab89ed14be7087cb3024 to your computer and use it in GitHub Desktop.
Save Ne00n/e1759e129e8eab89ed14be7087cb3024 to your computer and use it in GitHub Desktop.
apt-get update
echo -e "Explanation: tor meta, always run latest version of obfs4proxy
Package: obfs4proxy
Pin: release a=bullseye-backports
Pin-Priority: 500" > /etc/apt/preferences.d/obfs4proxy.pref
apt-get install obfs4proxy tor -y
sudo setcap cap_net_bind_service=+ep /usr/bin/obfs4proxy
sed -i 's/NoNewPrivileges=yes/NoNewPrivileges=no/' /lib/systemd/system/[email protected]
sed -i 's/NoNewPrivileges=yes/NoNewPrivileges=no/' /lib/systemd/system/[email protected]
systemctl daemon-reload
systemctl enable --now tor.service
systemctl restart tor.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment