Skip to content

Instantly share code, notes, and snippets.

View anowacki's full-sized avatar

Andy Nowacki anowacki

View GitHub Profile
@anowacki
anowacki / tunnel-web.bash
Last active July 1, 2021 08:52
Tunnel web traffic via ssh on macOS with automatic network location switching
#!/bin/bash
#
# tunnel-web.bash
#
# Forward all HTTP traffic over a proxy, by switching to a custom
# network location, sshing to a machine of choice, then upon
# disconnect, resetting to the old location.
#
# Works with macOS.
#