Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-22-2017, 01:48 PM   #1
LQ Newbie
Registered: Nov 2017
Posts: 2

Rep: Reputation: Disabled
Proxy all traffic through proxy

Hey all
I have a web application (node) running on port x. I have a local proxy running on port y (for managing network speed and so on). I want all my traffic (in and outgoing traffic) to run through my proxy, so if you access the server from the outside, the requests will go through the proxy and proceed to the web server - also traffic from the server to the outside should go through this proxy. My application runs in a docker container.
By setting http_proxy I somehow get the behaviour I want, but thats only effective if the tools you are using uses this variable.
Old 11-23-2017, 12:43 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,373

Rep: Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418Reputation: 3418
a better explanation would be nice here.
You cannot force any application to use that proxy, in general you need to configure them one by one.
Some of them may honor the variable http_proxy (lower case), others will recognize HTTP_PROXY (upper case), a few may try to use something else like their own config files - and probably some cannot be set at all.
Old 11-26-2017, 03:23 AM   #3
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,483

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
You could put the proxy on the firewall.
Old 12-03-2017, 07:29 AM   #4
LQ Newbie
Registered: Nov 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled


Thanks for your replies. I solved my problem by using wondershaper (which can be installed using apt) and tc for managing the latency.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
proxy server that accepts PARENT PROXY as a SOCKS PROXY shadyabhi Linux - Server 1 08-10-2010 03:09 PM
Forwarding all traffic to the proxy to another proxy (transparent proxy/redirection) lakshithaww Linux - Networking 1 10-28-2009 12:54 AM
All traffic showed as proxy after installing nginx proxy to apache centosfan Linux - Server 0 10-25-2008 08:41 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration