bekh6ex / firefox-container-proxy

[Firefox extension] Assign a proxy to a Firefox container
https://addons.mozilla.org/en-US/firefox/addon/container-proxy/
BSD 2-Clause "Simplified" License
137 stars 14 forks source link

[Request] Add SSH Tunnel in proxy #26

Closed thienha1 closed 3 years ago

thienha1 commented 4 years ago

Can you make it work with SSH Tunnel, also test it after save?

nobody43 commented 4 years ago

But why? You want to rely on browser extension for your encryption? It's a complete overkill, what's wrong with $ ssh and putty?

nobody43 commented 4 years ago

connect:

local_port="3001"
remote_port="22"
user="socksuser"
host="192.168.1.1"
key_file="${HOME}/.ssh/id_ed25519"
sock_file="~/${local_port}_${host}.sock"

cmd_up="ssh -f -N -M -S ${sock_file} -p ${remote_port} -D ${local_port} -i ${key_file} ${user}@${host}"

disconnect:

cmd_down="ssh -S ${sock_file} -O exit ${host}"

Resulting SOCKS5 proxy address: 127.0.0.1:3001

thienha1 commented 4 years ago

But I can't using SSH per tab like this, multiple running ssh just to run proxy SOCKS5

nobody43 commented 4 years ago

? This scheme supports multiple instances - just change the local port [and socks file].

bekh6ex commented 3 years ago

To be honest I'm not 100% sure what is meant here. If you want FF to establish SSH tunnel as another "proxy type" then it is not possible to do in web extension. It can only support what FF supports by itself: SOCKS5, SOCKS4, HTTP, HTTPS.