Skip to content

Let any application be able to access external web site without configuring proxy settings for various applications

License

Notifications You must be signed in to change notification settings

jjqq2013/local-transparent-proxy-forwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-transparent-proxy-forwarder

Without configure various proxy settings, just let any process be able to access external web site which actually actually via a real proxy server

In a private environment with HTTP/HTTPS proxy server, you might have been sick of that a lot of program does not respect global proxy settings(such as http_proxy/https_proxy environment variable).

I managed to integrate iptables and some http tunnel tool to make any program be able to access external web site as if they are already directly connected to internet.

Currently only works in Linux

Diagram

resources

Note

Please please replace these words in each file and command line with yours:

words meaning
eth0 the real network interface for outgoing.
100.99.88.0/24 the IP ranges where you do not want be affected by this tool
100.88.77.66 real proxy server
9999 real proxy server port

Install

  1. prepare your proxy env and ensure that you can run sudo
http_proxy=http://100.88.77.66:9999
https_proxy=http://100.88.77.66:9999
  1. download relative tools
./tp-install.sh

Init

start http forwarder and https tunnel tool to listen :10080 and :10081 port.

./tp-init.sh 100.88.77.66 9999

This just need be done once unless you restart your machine.

Enable

set iptables to redirect outward packages back to :10080 and :10081

./tp-enable.sh 100.88.77.66 100.99.88.0/24 eth0

Disable

./tp-disable.sh

About

Let any application be able to access external web site without configuring proxy settings for various applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages