2022-05-08 11:54:07 +02:00
|
|
|
#!/usr/bin/env bash
|
2016-06-19 17:24:06 +02:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
|
|
|
|
|
|
|
SOCKS_PORT="1080"
|
2020-12-16 18:34:32 +01:00
|
|
|
SOCKS_HOST="tiana"
|
2016-06-19 17:24:06 +02:00
|
|
|
|
|
|
|
pgrep -f "$SOCKS_PORT $SOCKS_HOST" >/dev/null || ssh -f -N -D "$SOCKS_PORT" "$SOCKS_HOST" >/dev/null 2>&1 &
|
|
|
|
chromium --proxy-server="socks://localhost:$SOCKS_PORT" >/dev/null 2>&1 &
|