Standalone wrapper for Firefox Secure Proxy
Project description
firefox-secure-proxy
Standalone wrapper for Firefox Secure Proxy. Offers plain HTTP proxy interface for all compatible applications.
Walkthrough
- Install
firefox-secure-proxy
package. Within source directory run:pip3 install .
. Python 3.5+ required. - Login into Firefox Accounts. Run
fxsp-login
and follow instructions on screen. It's OK if OAuth2 redirected URL is dead, just copy its address into console. - Update proxy token with command
fxsp-getproxytoken
. - Run HTTP stub proxy server based on haproxy. There is docker-compose recipe in
stub-server
directory. Get into it, copy file~/.config/haproxy_maps
into it and rundocker-compose up
. Local proxy will be running on port 8080, wrapping and authenticating connections to Firefox Secure Proxy.
Updating proxy access token
Proxy access tokens requested by firefox-secure-proxy are valid for 24 hours. In order to update it run in following commands in stub-server
directory:
cp -v ~/.config/fxsp/haproxy_map .
docker-compose kill -s HUP haproxy
These actions can be scheduled to be performed automatically. Running haproxy server will be reloaded with no downtime.
See also
- transocks - transparent proxy adapter which can be used to redirect network traffic into HTTP/SOCKS5 proxy on gateway or a single Linux host. Compatible with firefox-secure-proxy.
- python-proxy - HTTP/Socks4/Socks5/Shadowsocks/ShadowsocksR/SSH/Redirect/Pf TCP/UDP asynchronous tunnel proxy implemented in Python3 asyncio. Can be used to wrap firefox-secure-proxy to SOCKS5 and other protocols.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for firefox_secure_proxy-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef44b5a1ef5494429b6db7f278ca579e15b43ed9648335835ed9483ba9c2471d |
|
MD5 | 9aebbeab22b763ef2b5881e1bb2e381c |
|
BLAKE2b-256 | 9598e624024332a3b8c3ecd3981241b5ab6a93c10c614c3aa2a683776c23fe75 |
Close
Hashes for firefox_secure_proxy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6208784df97f06723702aadc306aef999664951820bdcc7e551e27cc5257f636 |
|
MD5 | 3b5f8064aa2e6a71ee977b7a8b595507 |
|
BLAKE2b-256 | 7f2605b094a283e46aea22f7610a2caed0b212817ed96ee898182d280c8a3160 |