⬆️ ⬇️

How to make friends with Google Сhrome portable and proxy on the example of ssh-tunnel

I took Google Chrome portable and was faced with the need to wrap traffic in an ssh tunnel.

So much so that no one knows about it ... well, except for Google, of course.

However, how to get portabl- lame to go through a proxy under a corporate Windows file ?



These tips helped:

1) Edit the PortableApps lancher rule

Copy to the directory to the lancher from the folder. \ Other \ Source \ GoogleChromePortable.ini file

And we edit the AdditionalParameters = line by adding chrome launch keys, like this:



AdditionalParameters=--proxy-server="socks5://127.0.0.1:port"

; port - , , , localhost




2) Proksya is not simple, but SOCKS5 (as some have already guessed), because this is the usual PyTTY Portable



It remains only to deal with the inversion of DNS queries into the tunnel :

It seems that to do this, it is enough to disable DNS prefetching ( DNS pre-fetching) in the advanced settings of Google Chrome or by adding another starting option.

"-dns-prefetch-disable".

Arming tcpdump or wireshark and sniffing UDP 53 ... everything seems to be clean.

')

Correct me if I'm wrong, maybe it already works with the prefetch or is there a more beautiful way?

In my purely personal opinion, the removal of proxy settings from the browser is not very clever, but in the “great and terrible” they seem to think otherwise.



Sources of inspiration aka "list of references"

portableapps.com/node/22329#comment-140386

code.google.com/p/chromium/issues/detail?id=469#c51

code.google.com/p/chromium/issues/detail?id=29914



PS: If you liked the topic, let me know, and, inspired, I will write how to raise the ssh-tunnel home without having to leave the home PC on.

Good luck in anonymous (?) Surfing.



UPD : I did get inspired and wrote .

Source: https://habr.com/ru/post/110587/



All Articles