Skip to content

Instantly share code, notes, and snippets.

@dgoguerra
dgoguerra / proxy-toggle.sh
Last active September 7, 2023 02:55 — forked from mnewt/proxy-toggle.sh
Script to toggle Mac OS X SOCKS proxy, and setup a SOCKS server with SSH
#!/bin/sh
PROXY_INTERFACE="Wi-Fi"
PROXY_HOST=127.0.0.1
PROXY_PORT=1080
# A host where ssh can login without interaction, with a key-based
# authentication.
SOCKS_PROC_USER="username"
SOCKS_PROC_HOST="example.com"