SysAdmin 101
  • About Me
  • SSH
    • quick notes
    • socks tunneling
  • Tmux
    • quick notes
  • Kubernetes
    • quick notes
    • Setting up a K8S cluster
      • kubespray
      • metalLB
      • Nginx-Ingress
    • Storage
      • Persistent Storage
      • Persistent Storage Claim
  • Ansible
    • quick notes
    • ansible in a container
    • setup Ansible AWX
  • Docker
    • quick notes
    • docker compose
Powered by GitBook
On this page
  1. SSH

socks tunneling

Previousquick notesNextTmux

Last updated 1 year ago

The following script can help simplify the socks tunnel process:

#!/bin/bash

# filename: ssh-tunnel.sh

if [[ $# -eq 0 ]]
then
  echo "usage: ssh-tunnel <username@server> or ssh-tunnel exit"
elif [ $1 == "exit" ] || [ $1 == "stop" ]
then
  ssh -S /tmp/ssh-tunnel -O exit exit
else
  ssh -fCNMS /tmp/ssh-tunnel -D1080 $1 -p22
fi

Using Firefox, go to Settings, scroll down to Network Settings, click on Settings and configure like: