Skip to content

Instantly share code, notes, and snippets.

View mobagenie's full-sized avatar
🎯
Focusing

mobagenie

🎯
Focusing
View GitHub Profile
@mobagenie
mobagenie / via-ssh.sh
Created January 8, 2023 10:30 — forked from vitex/via-ssh.sh
A script that uses redsocks to build a system-wide OpenSSH SOCKS proxy.
#!/bin/sh
########################################################################
#
# Usage: via-ssh.sh [-v] [-d] [USER@]SERVER[:PORT]
#
# -v Provide verbose output.
# -d Send all UDP on the DNS port 53 to 127.0.0.1.
# USER User name to use for SSH; default is current user.
# SERVER Server to use for SSH.