# CONFIG
username=yourusername
password=yourpassword
hostname=domain.tld
port=22
sockport=80
vpnsource=https://www.vpnjantit.com/
# SETTING BROWSER PROXY USING SOCK4
IP : 127.0.0.1
PORT: 80
$ cat `which sshtunneling`
# Content of sshtunneling custom-command
export `cat /tmp/sshtunneling.conf`
echo "username : $username"
echo "password : $password"
echo "server : $server"
echo "port : $port"
echo "sockport : $sockport"
param=$1
if [[ "$1" == "connect" ]]; then
ssh -f -N -M -S /tmp/sshtunnel_$username -D $sockport $username@$server -p$port
elif [[ "$1" == "quit" ]]; then
ssh -S /tmp/sshtunnel -O exit $server -p$port
elif [[ "$1" == "config" ]]; then
su `whoami` -c 'subl /tmp/sshtunneling.conf'
else
echo "====== help ========"
echo "sshtunneling connect"
echo "sshtunneling quit"
echo "sshtunneling config"
fi
# Connecting
$ sshtunneling connect
# prompted for remote password (paste from password in the config)
Tidak ada komentar:
Posting Komentar