These are chat archives for Nithmr/ProxyHelper

27th
Jun 2016
Akarshit Wal
@Akarshit
Jun 27 2016 06:29 UTC
The next thing we need to do for ProxyHelper is setting proxy in softwares that require to manually set the proxy.
Let us start with git first.
So the steps would be ->
  1. Is git installed
  2. Set/unset proxy in it.
See if these work
Then we will start with other softwares.
Akarshit Wal
@Akarshit
Jun 27 2016 06:44 UTC
@clearnote01 Hey wait I got a better thing to do first.
I think we are not setting the proxy in firefox accordin to if tor is connected or not.
We should do that first.
Utkarsh Raj
@clearnote01
Jun 27 2016 09:43 UTC
@Akarshit @akshendra I deliberately left that that for later because it was design decision which I felt needed more consultation from you guys.
Actually the issue is... ProxyHelper still cannot identify whether tor is active or not... it stems from the fact that if you have tor (command-line) installed then auto-starts on boot, and it might not be that the user really wants to use tor, they might have just installed it and forgot.
Utkarsh Raj
@clearnote01
Jun 27 2016 09:50 UTC
in torpinger script I decided to make a list of sockets [9050,9150] with priorities assigned to them, 9150(which is for tor-browser) has higher priority that 9050(which is for command-line tor). So this helped me solve the mentioned issue without losing genericity(and it can be easily configured). Suppose you have tor cli installed, it will be always active in the backg, but then you activated tor browser, i made an assumption that people will want to use tor-browser in such cas e, and so torping selected prioritised 9150 port.
Akshendra Pratap Singh
@akshendra
Jun 27 2016 09:50 UTC
That is fine
Utkarsh Raj
@clearnote01
Jun 27 2016 09:51 UTC
Now... coming back to the new issue....
This message was deleted
suppose someone has tor cli active... why would he want a slower socks for firefox when it is not really needed, nor intentioned...
there is no way to differerntiate... if the person really is using tor cli or not... and this is why... i don't know what direction to take
what do you suggest ?
One solution can be to make tor cli completely optional... as I feel the share of tor browser users are much more...
If a person uses tor cli than I'll assume they want socks proxy for firefox, and we can set that
Akshendra Pratap Singh
@akshendra
Jun 27 2016 09:56 UTC
We have to change the proxy for firefox even if someone is using tor browser
Because a lot of people use tor browser to just connect tor
Utkarsh Raj
@clearnote01
Jun 27 2016 09:57 UTC
yeah, i missed that, if a person is using tor browser then there is no confusion
what about tor cli
which auto-start on boot
Akshendra Pratap Singh
@akshendra
Jun 27 2016 09:58 UTC
Since you have prioritized topping, if we find that tor browser is running, we don't have to worry about tor cli
Utkarsh Raj
@clearnote01
Jun 27 2016 09:58 UTC
i know... that much is already handled
the problem is when, they are using tor cli
and not tor browser
Akshendra Pratap Singh
@akshendra
Jun 27 2016 09:59 UTC
Okay so we set the tor cli socks proxy in Firefox
Utkarsh Raj
@clearnote01
Jun 27 2016 10:04 UTC
But it runs automatically, and in the background... there is big chance user is not even aware of it.
I believe a newbie would be confused by this behaviour. But say someone is using cli tor...
they can assumed to be more advanced, and so we can give them an option to turn this feature in ProxyHelper
Actually.... I don't really know, it's confusing 0_0
Akshendra Pratap Singh
@akshendra
Jun 27 2016 10:06 UTC
Okay so you are saying that a person might not want to use tor, but he has installed the cli version. And we might force him to use tor.
Utkarsh Raj
@clearnote01
Jun 27 2016 10:06 UTC
exactly...
also, another thing
can we socks5 proxy in /etc/environment?
Akshendra Pratap Singh
@akshendra
Jun 27 2016 10:08 UTC
I think we can
Utkarsh Raj
@clearnote01
Jun 27 2016 10:08 UTC
it it respected by system utilites? I will imagine it doesn't work for git
I doubt it works for apt..
Akshendra Pratap Singh
@akshendra
Jun 27 2016 10:09 UTC
Yes, most of the applications don’t use socks
Utkarsh Raj
@clearnote01
Jun 27 2016 10:10 UTC
something like `apt-get --socks5'127.0.0.1:9050' might be needed for most things, imo
okay... nvm apt respects socks5
that is cool
Akarshit Wal
@Akarshit
Jun 27 2016 10:13 UTC
OK a solution is this
In the installation script detect if tor-cli is installed. Now if it give the user a option that, we should set the firefox proxy for him or not?(Default will be we should set the proxy). If the tor-cli is not there then no need to show anything.
Also most of the softwares now support socks proxy(Those that don't will be dealt with later).
Utkarsh Raj
@clearnote01
Jun 27 2016 10:16 UTC
i get what you are trying to say... but i'm really apprehnsive of letting it set socks5 in environment, firefox, etc
Akarshit Wal
@Akarshit
Jun 27 2016 10:16 UTC
For now the first task is to simply put the tor proxy in firefox when the system is connected to tor. And also to put the HTTP proxy when the sytem is connected to a network and not to Tor.
Utkarsh Raj
@clearnote01
Jun 27 2016 10:16 UTC
mainly because it will not go well with any other proxyifier-esque thing they are using
Akarshit Wal
@Akarshit
Jun 27 2016 10:16 UTC
Also are we testing the no-proxy case?
Utkarsh Raj
@clearnote01
Jun 27 2016 10:17 UTC
are we making a torify/proxifier alternative?
no-proxy is a one line change, which i have not added yet because i'm i don't have proxy in my place... currently in no-proxy situation, it adds bing.com in /etc/env i'll change that later...
Akarshit Wal
@Akarshit
Jun 27 2016 10:19 UTC
Proxifier sends the traffic from SOCKS port to HTTP port. We are no doing that we are automating the process of setting proxy variables in some softwares.
Utkarsh Raj
@clearnote01
Jun 27 2016 10:19 UTC
it already does that btw... when it is non-tor non-tor-b condition it sets HTTP proxy
Akarshit Wal
@Akarshit
Jun 27 2016 10:19 UTC
OK I am going to open some issues now.
Utkarsh Raj
@clearnote01
Jun 27 2016 10:20 UTC
yes... but the result is basically same, no?
and i doubt it would be compatible behaviour
I still believe our default behaviour should be, to not set proxy for tor cli : P
Akarshit Wal
@Akarshit
Jun 27 2016 10:21 UTC
The result is the same but proxifier is a software in itself that moves the traffic around. We are just configuring the softwares to work behind a proxy server.
We can change that later. First the work is to implement the architecture.
Utkarsh Raj
@clearnote01
Jun 27 2016 10:24 UTC
kay, for now, tor-browser will set socks by default and tor cli will not, but i'll add the infrasture for both anyway
Akarshit Wal
@Akarshit
Jun 27 2016 10:26 UTC
Yes exactly
left a comment for you on #17
Utkarsh Raj
@clearnote01
Jun 27 2016 10:33 UTC
seen and replied
i need some time to experiment --amend. i'm afraid it might corrupt the code
i'll try with a new branch
Akarshit Wal
@Akarshit
Jun 27 2016 10:37 UTC
Git will always get you your code back
But new brach would be good for experimentation
Utkarsh Raj
@clearnote01
Jun 27 2016 10:41 UTC
nice
i'll make submit a new PR then
Akarshit Wal
@Akarshit
Jun 27 2016 10:42 UTC
Not a new PR
modify this one only.
Utkarsh Raj
@clearnote01
Jun 27 2016 11:52 UTC
i'm not sure how to do in the same PR...
btw thanks for telling about rebase... i'm re-writing history right now (from the start)... i hope it doesn't mess with compatibility on main repo
Akarshit Wal
@Akarshit
Jun 27 2016 11:57 UTC
Just rebase and then do a force push.
I wrote the command for force push on github in a comment.
Utkarsh Raj
@clearnote01
Jun 27 2016 12:00 UTC
git push --force origin master ?
git push origin +HEAD, found it
Utkarsh Raj
@clearnote01
Jun 27 2016 12:26 UTC
okay... accidently i did rebase of commits even of those that were merged last time
and it shows PR is not compatible
due to think there will be some issue with this?
Utkarsh Raj
@clearnote01
Jun 27 2016 12:31 UTC
I did something brave (and insanely stupid) and did it all on master branch and push --force
I'll send a PR now (with finger crossed it works)
Akarshit Wal
@Akarshit
Jun 27 2016 12:37 UTC
W
Utkarsh Raj
@clearnote01
Jun 27 2016 12:37 UTC
umm, yeah?
did it work?
something like git pull --force is needed, i guess
Utkarsh Raj
@clearnote01
Jun 27 2016 12:59 UTC
This message was deleted
git remote add upstream https://github.com/clearnote01/ProxyHelper.git
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
^ looks like the only way, and it sucks
Akarshit Wal
@Akarshit
Jun 27 2016 13:52 UTC
Why are you resetting the branch?
Utkarsh Raj
@clearnote01
Jun 27 2016 14:16 UTC
... wait a second
i changed history before last commit, so it is in-compatible with current Nithmr/master
but i can get back with reflog(as i found later)
what do you suggest now? We could start again with repo on Nithmr/Proxyhelper (by above steps) it has benifit of a more readable history
or just use reflog and make changes in the latest PR and not with the older commit history
Akarshit Wal
@Akarshit
Jun 27 2016 14:31 UTC
Just let me get home and see the PR
Utkarsh Raj
@clearnote01
Jun 27 2016 14:34 UTC
kay. i'll see ep 10 sit-back and relax for now
Utkarsh Raj
@clearnote01
Jun 27 2016 14:57 UTC
only... i couldn't... just forget whatever I said above, it was all completely moronic. just see the PR. it is all fixed up.
Akarshit Wal
@Akarshit
Jun 27 2016 15:37 UTC
You didn't see episode 10 till now? Dude you need to fix your priorities.
Utkarsh Raj
@clearnote01
Jun 27 2016 16:44 UTC
how the hell did varys came on danerys ship so fast
but damn... they did nothing in the whole season, yet ended in the most epic way possible ; )
Akarshit Wal
@Akarshit
Jun 27 2016 16:47 UTC
They did many things this season.
Perhaps the coolest one.
Utkarsh Raj
@clearnote01
Jun 27 2016 17:22 UTC
Coolest season for you... not me -_-. Many things didn't make sense, ex - Arya Stark's silly adventures (though it ended cool), no good explaination for John's revival, Brianna's pointless travels, Ramsay being defeated too easily ( how he didn't see the huge army of vale coming, this is so not ramsay), Sam Tarly making a long trip to home, only to run back away (he did steal a valeryian sword, but it wasn't planned anyway)
But I guess the ending balanced most things up, it was an epic ending. ; )