You are not logged in.

#1 2017-01-09 14:36:11

areuz
Member
Registered: 2016-09-16
Posts: 60

Chromium proxy doesn't work with --user-data-dir=/tmp/

Simple as the title, I'm trying to run

chromium --incognito --proxy-server="socks5://myproxy:8080" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE myproxy" --user-data-dir=/tmp

It works until I add the user directory (to use a separate session and bypass saved cookies), then It wont work until I remove the proxy parameters... so It seems like only these two arguments are incompatible.

Why and what can I do to achieve something similar to this? (Excluding a VM or a system wide proxy)


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

#2 2017-01-09 14:37:11

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: Chromium proxy doesn't work with --user-data-dir=/tmp/

Didn't read your post too carefully but would firejail help?

Offline

#3 2017-01-09 14:38:06

areuz
Member
Registered: 2016-09-16
Posts: 60

Re: Chromium proxy doesn't work with --user-data-dir=/tmp/

No Idea what that is, but I'll look into it, thanks smile


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

#4 2017-01-09 14:41:45

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,794
Website

Re: Chromium proxy doesn't work with --user-data-dir=/tmp/

You could try running chromium through proxychains


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#5 2017-01-09 14:49:29

areuz
Member
Registered: 2016-09-16
Posts: 60

Re: Chromium proxy doesn't work with --user-data-dir=/tmp/

ugjka wrote:

You could try running chromium through proxychains

Yeah, that works, though It does take a while to start up big_smile I know, I'm picky.
Thanks!

P.S.: Still welcoming another suggestion without the use of (external) programs smile

Last edited by areuz (2017-01-09 14:49:50)


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

#6 2017-01-15 11:58:52

areuz
Member
Registered: 2016-09-16
Posts: 60

Re: Chromium proxy doesn't work with --user-data-dir=/tmp/

Okay, last post for others that have a similar problem.

I got tired of proxychains, they are absolutely atrocious - really slow, and can freeze the browser for more than 10 seconds if loading an image...
I later tried tsocks, but that wouldn't work with Chromium because I didn't know how to force it to SOCKS mode (I just always got the screen "Tor is not a HTTP proxy".
At this point, I uninstalled them and started playing with the IPs I was feeding Chromium as arguments and found that 127.0.0.1:9050 works!

Here is the full working command:

chromium --incognito --user-data-dir=/tmp/ --proxy-server="socks5://127.0.0.1:9050" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE myproxy"

If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

Board footer

Powered by FluxBB