This commit is contained in:
Gilles Mouchet 2025-09-17 14:02:10 +02:00
parent 15f86cafb4
commit c3ce50d058
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,8 @@ Server proxy
## Installation ## Installation
N/A N/A
## Usage ## Usage
./stop-output-traffic-http-https.sh sudo ./stop-output-traffic-http-https.sh
The script takes a few minutes to apply the rules
### Changelog ### Changelog
### [1.0.0] - 2025-09-17 ### [1.0.0] - 2025-09-17

View File

@ -22,6 +22,11 @@ version="1.0.0"
set -euo pipefail set -euo pipefail
# check if the effective user ID is 0 (root)
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root or with sudo."
exit 1
fi
# ---------------------- CONFIG ---------------------- # ---------------------- CONFIG ----------------------
PROXY_NAME="proxy.ville-geneve.ch" PROXY_NAME="proxy.ville-geneve.ch"
PROXY_PORT="8080" PROXY_PORT="8080"