GithubHelp home page GithubHelp logo

Socks5 auth with Firefox? about psocksd HOT 7 CLOSED

 avatar commented on August 23, 2024
Socks5 auth with Firefox?

from psocksd.

Comments (7)

frm1001xplrr avatar frm1001xplrr commented on August 23, 2024 1

Socks5 proxy with authentication is now possible with the Proxy Toggle addon for Firefox 57+

https://addons.mozilla.org/en-US/firefox/addon/proxy-toggle/

Easy config: Server, port, username, password - done!
Easy use: Toolbar button on/off

from psocksd.

clue avatar clue commented on August 23, 2024

Unfortunately Firefox does not support authentication when using a SOCKS server, see related ticket:

https://bugzilla.mozilla.org/show_bug.cgi?id=122752

I'm afraid there's not much we can do here, sorry.

As an alternative, you may set up an additional (anonymous) SOCKS server locally on the PC where Firefox is being used and then configure it to forward all connections using authentication to a remote SOCKS server. Would that help in your use case?

from psocksd.

 avatar commented on August 23, 2024

Thank your for the quick response. I stumbled upon this bug on my search on this topic. But i could not believe it...
It looks that only Opera and Arora support socks5 authentication.

I will try a local proxy server. Do you have any suggestion which one? And, maybe a running configuration?

from psocksd.

clue avatar clue commented on August 23, 2024

I will try a local proxy server. Do you have any suggestion which one? And, maybe a running configuration?

Sure, just use psocksd locally to forward it to a remote psocksd instance:

  • Run your remote SOCKS server as usual:

    remote $ psocksd user:pass@*:9050
  • Run SOCKS server on localhost and configure it to forward all requests to the remote SOCKS server:

    localhost $ psocksd 9050
    via * user:pass@remote:9050
    via list

    Admittedly, this configuration is largely undocumented at the moment :) Just type the commands as above in to psocksd window. You can also use the ping command to tests the connection to a given other SOCKS server like this:

    ping user:pass@remote:9050
  • Configure firefox to use SOCKS on localhost:9050

Feel free to report back if this works for you. And we should probably include these instructions in the README sometime soon :)

from psocksd.

 avatar commented on August 23, 2024

Thanks a lot. I will try this next week. Now i am going into weekend :D

from psocksd.

 avatar commented on August 23, 2024

Ok. I installed php on my router and i am running psocksd php-fcgi psocksd.phar socks5://192.168.1.1:9050 on it. But it crashes when i try to connect:

root@OpenWrt:~# php-cgi psocksd.phar socks5://192.168.1.1:9050
X-Powered-By: PHP/5.4.5
Content-type: text/html

use direct connection to target
SOCKS proxy server listening on 192.168.1.1:9050
<br />
<b>Warning</b>:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in <b>/tmp/pharextract/psocksd/src/Clue/Psocksd/Option/Log.php</b> on line <b>12</b><br />
<br />
<b>Fatal error</b>:  date(): Timezone database is corrupt - this should *never* happen! in <b>/tmp/pharextract/psocksd/src/Clue/Psocksd/Option/Log.php</b> on line <b>12</b><br />

from psocksd.

clue avatar clue commented on August 23, 2024

psocksd is a CLI program (and not a CGI script) and as such should be run with your CLI php binary like this:

$ php psocksd.phar socks5://192.168.1.1:9050

The remaining errors look unrelated to the above. Apparently, your setup is somehow corrupted? I suppose fixing this is out of scope here. In the meantime, you can also run both psocksd instances on the same host by using different ports like this:

# firefox ---SOCKS4---> localhost:9050 ---SOCKS5+auth--> localhost:9051
$ php psocksd.phar user:pass@*:9051
$ php psocksd.phar *:9050
via user:pass@localhost:9051

from psocksd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.